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
Post a Comment