Skip to content

xionon/rails-crud-ajax

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demonstrates one possible method of doing CRUD operations in a single page.

  • pulled index table into a partial view called _list.html.erb.

  • created controller method “list”

  • created route for “list”

  • included _form partial in index, added remote: true

  • on ajax success, jquery .load the list again. rebind show/destroy behaviors

  • added a div to load /show in-page

  • changed destroy to remote: true with row fade-out in the callback

About

Example of a Rails CRUD controller in a single page

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 87.1%
  • CSS 8.3%
  • JavaScript 2.7%
  • CoffeeScript 1.9%