Ruby on Rails Tuesday, July 1, 2014

Samson Oak wrote in post #1151218:
> Oops, I meant Foo.all.each {|foo| foo.bar } for the second one.

Yes, second one should work as your method is a instance method
Thanks.
Manoj Menon,

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/71d79b308bcf1ff35033c3b924d16a6f%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment