example.rdoc in table-for-3.2.0 vs example.rdoc in table-for-3.3.0
- old
+ new
@@ -25,10 +25,21 @@
rails g nifty:scaffold Admin::User email:string first_name:string last_name:string
rails generate bootstrap:install less
rake db:create && rake db:migrate && rake db:seed && rake db:seed && rake db:seed && rake db:seed
rails s
+NOTE:
+It does not appear that nifty-generators has been ported over to Rails 4. If you are using Rails 4, you will
+need to remove this gem from the Gemfile, and run the following commands from the console instead of the preceding
+commands:
+ bundle install
+ rails generate controller admin/users index
+ rails generate model user email:string first_name:string last_name:string
+ rails generate bootstrap:install less
+ rake db:create && rake db:migrate && rake db:seed && rake db:seed && rake db:seed && rake db:seed
+ rails s
+
In routes.rb:
namespace :admin do
resources :users do
collection do
match :sort, :to => :index, :via => [:get, :post]
@@ -133,6 +144,6 @@
<% table.footer do %>
<div class="pull-right">
<%= will_paginate @users %>
</div>
<% end %>
- <% end %>
\ No newline at end of file
+ <% end %>