Skip to content

Commit 245d0ba

Browse files
committed
Better instructions for rails >= 5.1
[skip CI]
1 parent c33f70c commit 245d0ba

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

Diff for: README.md

+8-6
Original file line numberDiff line numberDiff line change
@@ -25,28 +25,30 @@ Added to Gemfile
2525

2626
gem 'active_scaffold'
2727

28-
For rails >= 5.1, add
28+
For rails >= 5.1, add jquery to application.js before rails-ujs (with jquery-rails), or load jquery in your layout before application.js using CDN (e.g. jquery-rails-cdn). You can replace rails-ujs with jquery_ujs, although rails-ujs should work (never load both).
29+
30+
//= require jquery
2931

3032
gem 'jquery-rails'
3133

32-
Run the following commands
34+
Run the following commands, for rails 4.2
3335

3436
bundle install
3537
rails g active_scaffold:install
3638
bundle exec rake db:create
37-
rails g active_scaffold:resource User name:string
39+
rails g active_scaffold:resource Model [attrs]
3840
bundle exec rake db:migrate
3941

40-
Commands for Rails 5
42+
Or run the following commands, for rails 5
4143

4244
bundle install
4345
rails g active_scaffold:install
4446
rails db:create
45-
rails g active_scaffold:resource User name:string
47+
rails g active_scaffold:resource Model [attrs]
4648
rails db:migrate
4749

4850

49-
Run the app and visit localhost:3000/users
51+
Run the app and visit localhost:3000/<plural_model>
5052

5153
Threadsafe
5254
----------

0 commit comments

Comments
 (0)