To have AR support back after creating project with --skip-active-record option in rails 3 -


i have created rails 3 project mentioned option. can somehow "revert" option , have active record in default, or must create new project?


edit

ok, have activerecord support had to:

  1. delete separate require calls in application.rb , replace require 'rails/all' (or uncomment # require "active_record/railtie")
  2. uncomment # gem 'sqlite3-ruby', :require => 'sqlite3' line in gemfile (for sqlite)
  3. create database.yml file , fill options
  4. invoke rake db:create task

after seems can continue work ar usual.

make new project activerecord, , pairwise diff config/application.rb , config/environments/*.rb determine if there default settings should add project.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -