Description:
This gem adds basic ajax functionality to generated scaffold.
## Usage
rails g scajax [RESOURCE_NAME]
Example:
add scajax to your application’s Gemfile:
gem 'scajax'
or for latest version of the gem add:
gem 'scajax', git: 'git@github.com:menuitem/scajax.git'
and run ‘bundle’ to install this gem in your project.
$ bundle
Generate new scaffold called e.g posts:
$ rails generate scaffold post title body:text published:boolean
Don’t forget to run migration:
$ rake db:migrate
Generate ajax for posts scaffold with scajax generator
$ rails g scajax post