Re: [Rails] how to create routes for user
On Feb 14, 2011, at 1:04 AM, Mitchell Gould wrote:
> I have a user. They have could have many products
>
> The typical link in rails would be
> www.somesite.com/controller/action/id
>
> what I want is it to look like
>
> www.somesite.com/user_name/product_name
>
> How can I do this using routes.rb
You might want to look at friendly_id, that's right up its alley.
Walter
>
>
> Thank
>
> Mitch
>
> --
> 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@googlegroups.com.
> 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
> .
>
--
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@googlegroups.com.
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home