开发者

How does RoR scaffolding work with compound words?

开发者 https://www.devze.com 2022-12-15 23:53 出处:网络
This is what I still开发者_运维知识库 don\'t understand (but probably should)... if I run this command:

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消