This is how you can use them:
Edit you Gemfile (in root of your project) and add
gem "nifty-generators", :group => :development
after that, you can run
bundle installto install gem
After that, you can do
rails g nifty:scaffold ModelNameand after that we must create layout:
rails g nifty:layoutThat will successfully create controller and view from your ActiveRecord.
Nema komentara:
Objavi komentar