Hi everyone!

I'm a little bit new to Rails development and I am looking for a solution
for this issue.

Let's say that I have a model called Person and the person has an attribute
name. But I want to put a surname with this name. Something like this:

class Unit < ActiveRecord::Base

  def name= name
    @name = name + 'bla bla'
  end

end

In Ruby I could do this, but this doesn't affect my object at all...

How can I do that?

Thanks in advance
--
Marco Antonio

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to