0
 I have added  'nifty-generators' to my gem file. 
then executed following : 
rails g nifty:layout
case -1 
rails g  nifty:scaffold Post title:string content:text
case -2 
rails g scaffold Blog title:string content:text
rake db:migrate

When we genrate a scaffold with "nifty:" ; it does not provide "set_post" & "post_params" methods. but the later case provides those "set_post" & "post_params" methods.

Do we have any specific reason/difference between these two commands ?

4

1 回答 1

0

https://github.com/ryanb/nifty-generators

转到上述页面中的故障排除和常见问题解答部分。!

于 2013-09-10T09:26:17.467 回答