문제

I want to remove the "Create New" link (the one with the green '+' icon) from the top of a listing in ActiveScaffold. I tried config.create.link=false and config.list.create.link=false but they don't work. This must be terribly simple but I can't find it!

도움이 되었습니까?

해결책

Figured it out. Just add

config.actions.exclude :create

to the configuration section. I had tried this already but was getting errors because of later references to "create" such as

config.create.link=false

Since create has been excluded as an action, AS does not want to see a config.create later on!

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top