A Sample application for Setting up Device gem along with Nify Generator Plugin
Added the following gems in the Gemfile:
-
gem "nifty-generators", :group => :development
-
gem 'devise'
-
gem 'tlsmail' (This is used by Device for sending mails)
-
gem 'pg' (Added this gem for PostgreSQL support)
You can clone it by and start the application by the following steps:
- git clone git://github.com/csaurav/tutorial-device-nifty-generator.git your-direcotry
- cd your-direcotry
- bundle install
- rake db:create (Change the database parameters according to your system)
- rake db:migrate
- rails server
If you want to deploy the application in Heroku, then inside the application.rb, you have to make the following changes:
config.assets.initialize_on_precompile = false