On 24 Apr 2008, at 07:37, Karthikragunath Bhavani wrote:
>
>
>
> hi all,
>
> while goign thro a projects code i saw a line like:
>
>
> @projects = User.find(params[:id]).projects.find(:all)
>
It finds all the projects for the specified user. (In this particular
case it''s almost equivalent to User.find(params[:id]).projects, but
more generally it''s useful to limit your find to a specific user.)
Fred>
> what this line means and what it w''ll return.how to see the
content
> in @projects object.
> --
> 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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> For more options, visit this group at http://groups.google.com/group/ruby
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---