depassion
asked on
rails 3 scaffold showing strange links
after generating a post scaffold the normal "New post" and "Edit" links have the path included in the link
so
<%= link_to 'New post', new_post_path %> actually outputs this on the screen:
New post (/posts/new)
the html is normal
<a href="/posts/new">New post</a>
i've never seen this before
so
<%= link_to 'New post', new_post_path %> actually outputs this on the screen:
New post (/posts/new)
the html is normal
<a href="/posts/new">New post</a>
i've never seen this before
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.