views:

27

answers:

1

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 %>
+2  A: 

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.

Alex Reisner
Oh, I knew I needed to do that too... just wasn't thinking... Thanks
Max Schmeling