<%= link_to 'View the item', items_url(@item, :only_path => false) %>
Which is generating:
http://0.0.0.0:3000/items.124/
This is no good as it has a period where it should have a forward slash like:
http://0.0.0.0:3000/items/124/
Anyone know y? thanks
拍摄,应该是item_url
而不是items_url
I had a similar problem with my form_for
generated URL. I had accidentally put resource my_resource
instead of resources my_resources
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.