praveenkumar
praveenkumar

Reputation: 345

Rails:Is it possible to use active_scoffold gem in rails 4.2.6

I installed that gem,when I run

rails g active_scaffold:install

It says

Running via Spring preloader in process 6001

Could not find generator 'scoffold'. Maybe you meant 'scaffold', 'css:scaffold' or 'erb:scaffold'

Run rails generate --help for more options.

gemfile

gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 0.4.0', group: :doc
gem 'active_scaffold', github: 'activescaffold/active_scaffold', branch: 'master'

Upvotes: 1

Views: 98

Answers (1)

praveenkumar
praveenkumar

Reputation: 345

I found the solution

I changed the steps to install the gem, that steps are

1.Insert the gem in gem file, gem 'active_scaffold' and run bundle install.

2.Run the command "rails g active_scaffold User name:string".

3.In gemfile change gem 'active_scaffold' to "gem 'active_scaffold', github: 'activescaffold/active_scaffold', branch: 'master' " and install the bundle once again.

4.Create a DB by "bundle exec rake db:create".

5.Run "rails g active_scaffold:install".

6.Finally migrate it "rake db:migrate"

Upvotes: 1

Related Questions