To get started with a new Rails project
Added to Gemfile
gem 'active_scaffold'
gem 'active_scaffold', github: 'activescaffold/active_scaffold', branch: 'master'
Run the following commands
bundle install
rails g active_scaffold:install
bundle exec rake db:create
rails g active_scaffold:resource User name:string
bundle exec rake db:migrate
Nb. In Rails5, you can use rails db:create and db:migrate
Run the app and visit localhost:3000/users
See also https://vhochstein.wordpress.com/2010/08/28/setup-activescaffold-rails-3/
and http://vinsol.com/blog/2010/04/09/introduction-to-active-scaffold-part-i/
Run the app and visit localhost:3000/users
See also https://vhochstein.wordpress.com/2010/08/28/setup-activescaffold-rails-3/
and http://vinsol.com/blog/2010/04/09/introduction-to-active-scaffold-part-i/
No comments:
Post a Comment