Monday, December 17, 2012

Bootstrap + ActiveAdmin + Devise in Heroku in seconds


1. git clone git@github.com:fzuppa/bootstrap-devise-activeadmin-in-heroku.git
2. git remote rm origin
3. rm -Rf .git
4. rm -Rf .gitignore
(Instead of the previous 4 steps, you could also download the application in Github)
5. git init
6. rails g scaffold Interview name:string
7. rake db:migrate
8. rake db:seed
9. rails g bootstrap:themed Interviews (Y for everything)




There you go, you got your application running in a few seconds.
You should change the name of the app for yours
You could also change the default locale, as spanish translations are included (in application.rb)

The url for active admin is localhost:3000/admin with admin@example.com/password

Gems included
https://github.com/seyhunak/twitter-bootstrap-rails
https://github.com/ryanb/nested_form
https://github.com/amatsuda/kaminari
http://activeadmin.info/documentation.html

A better way to do this is to use Rails Composer, but I had the openssl problem