@this = Post.all

On 19 Dec 2008, at 08:11, Brett Nelson wrote:

>
> Ian,
>  You are welcome, I have struggled as well in particular for the
> exact case you are asking for.  Managed to work around it.
>
> The problem is, generating a context for a model.
>
> It is easy to do from another model.
>
> @posts = @user.posts
>
> But what if you want all of the posts, not just a particular users
> posts.
>
> So far I have yet to discover what does this.
>
> Something like User.give_me_a_context would be nice.
>
> Brett
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Hobo 
Users" 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/hobousers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to