On Fri, Jul 9, 2010 at 13:42, RailsFan Radha <[email protected]> wrote:
> To get a clear pic, is the .all here truely a syntax error or typo or
> is it correct?
>
> "self.questions.reject{|q| q.nil?}.all"
Again, without more context, I can't tell, but it looks like an
ActiveRecord thing to me. It's very common to have a
WhateverController's index method do something like "@whatevers =
Whatever.all(:order => :name)", when class Whatever inherits from
ActiveRecord::Base.
-Dave
--
Specialization is for insects. | Professional: http://davearonson.com
-Robert Anson Heinlein | Programming: http://codosaur.us
-------------------------------+ Leadership: http://dare2xl.com
Have Pun, Will Babble! -me | Other: http://davearonson.net
--
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.