Railswizard.org is great!
Saturday, June 9, 2012 5:50:59 PM
1) Use Railswizards.org to generate url, e.g.
rails new app_abc -m http://railswizard.org/96f851e02348436c1ae4.rb -J -T
2) Execute script in local terminal window.
paste into terminal and press [Return]
Select db: mysql
Create db? y
jquery ui? n
Bundle works ok
Database create fails:
rake db:create:all rake aborted! You have already activated rake 0.9.3.beta.1, but your Gemfile requires rake 0.9.2.2. Using bundle exec may solve this.
Devise install is ok but create devise user fails
jquery may show an error but it's ok, the rails install method is deprecated as jQuery is already the default.
rspec may show an error but it's ok.
3) Add mysql2 to the Gemfile
5) Edit config/database.yml
Add mysql details for development, e.g.
development: adapter: mysql2 encoding: utf8 reconnect: false database: app_abc_development pool: 5 username: root socket: /var/run/mysqld/mysqld.sock
6) Create Database
bundle exec rake db:create:all
7) Create Devise user migration.
rails generate devise user
8) Run Devise user migration to create Devise user.
bundle exec rake db:migrate