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

SAP Web Service from .NET via WCF -

Optimized Line drawing in QT -

datetime - str to time in python -