On Thu, Sep 16, 2010 at 5:11 PM, Mauro <[email protected]> wrote:

> post[:title] and post.title?
>

It allows you to access the attribute value without going through a getter
method. Not really a good idea most of the time, but it can be necessary,
like if you're calling it from within the getter method itself.

Adam Stegman

-- 
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