Ruby on Rails Wednesday, April 25, 2012

On 25 April 2012 20:15, Dave Castellano <lists@ruby-forum.com> wrote:
> So why the = sign in the first example?

Do you mean in
u.attributes = {:name =>"Fred", :color => "green"}

Because that is assigning the hash to the variable u.attributes.

Please quote the previous message when replying in order to avoid the
necessity of looking back at previous emails to work out what the
message is referring to.

Colin

--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment