How does RoR scaffolding work with compound words?
This is what I still开发者_运维知识库 don't understand (but probably should)... if I run this command:
script/generate scaffold FooFoo name:string submitted_on:datetime
How do I link to a the page that lets you view the list of FooFoo?
This doesn't seem to work, and every variant of it that I've tried doesn't work either:
<%= link_to "Mylink", foo_foos_path %>
This looks right to me. The foo_foos_path
helper is generated by this line in config/routes.rb
:
map.resources :foo_foos
Make sure that line was added by your scaffold generator.
精彩评论