I am facing a similar problem. Does anyone knows how to make this REST-
y?
On Sep 22, 3:28 pm, max <m...-jsXXHfX3oBpBDgjK7y7TUQ@public.gmane.org>
wrote:> Hey, I''m trying to give this problem the best solution possible:
>
> I have a posts and an events model
> both have categories, tags and belong both to users and groups
>
> Now I need to filter results by any of the above, let it be category,
> tag, user or group. What is the best way to do this?
>
> I''m thinking of passing a variable in params[:whatever] and then
have
> a case in the controller and rendering the apropiate view. But it
> doesnt feel right or very REST-y
>
> Can anyone help with this? thanx.
--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---