Andy Jeffries wrote:
>>
>> > http://www.example.com/products/category/5
>> >
>> > Then it would work - the 5 would become 5.html in a folder called
>> > category
>> > in a folder called products.
>>
>> Thank you Andy for you explanation.
>> How do you do to make your urls look like this?
>>
> 
> config/routes.rb
> 
> map.category "/products/category/:id", :controller => "categories", 
> :action
> => "show"


Does the link_tag will still look like this: link_to "my link", 
products_path(:category_id => 3) ?
-- 
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.

Reply via email to