Rails, link_to is using a period and not a / in the URL? -


<%= link_to 'view item', items_url(@item, :only_path => false) %> 

which generating:

http://0.0.0.0:3000/items.124/ 

this no has period should have forward slash like:

http://0.0.0.0:3000/items/124/ 

anyone know y? thanks

shoot, should item_url not items_url


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -