RailsFan Radha wrote:
> I come from a db world.
> Can someone interpret this please, "self.questions.reject{|q|
> q.nil?}.all"
> I'm overwhelmed by the syntax in the second line,
> "self.questions.reject{|q| q.nil?}.all"
>
Go look up the relevant functions (especially reject) in the
documentation. Also read the section on blocks in Programming Ruby or
other similar book. If you still have questions after reading those,
please ask. This is fairly basic Ruby stuff, and you need to know it to
be able to work with Rails.
--
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 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.