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
当我们用“漂亮的”来生成一个脚手架时;它不提供“set_post”& “post_params”方法。但后一种情况提供了那些“set_post”& “post_params”方法。
这两个命令之间有任何具体的原因/区别吗?