I'm running Rubymine EAP 95.314 on Ubuntu and developing with Rails 3. I noticed that this code...
field :first_name, :type => String
field :middle_names, :type => String
field :last_name, :type => String
first_name + ' ' +
(!middle_names.blank? ? middle_names + ' ' : '') +
(!last_name.blank? ? last_name : '')
... gives 'cannot find' warnings for first_name, middle_names and last_name in the full_name method, however the code seems to work. I'n new to all this so I'm wondering if I'm writing this in a non-standard way that just happens to work or if there's a problem with the RubyMine parser.