Skip to main content

Posts

Showing posts with the label drag and drop functionality

How to create Drag and Drop functionality in Ruby On Rails?

I have seen many developers that are looking for creating "Drag and Drop" functionality in Ruby On Rails technology. So I'm going to brief about a sample to create and implement this functionality using JQuery Rails, JQuery UI Rails and Rails Sortable gems. Given below are simple steps required to create the rails application: Ruby On Rails Programming How to create Drag and Drop functionality in Ruby on Rails? First of all we will create a simple application first to create the products. The first Step we required to create the Rails Application. $ rails new SampleSortRails By using the scaffold we will generate the the MVC components needed for Simple Products application form $ cd SampleSortRails $ rails g scaffold Product name:string description:text quantity:integer price:integer sort:integer Create the Products database table: $ rake db:create $ rake db:migrate Rails uses rake commands to run migrations. Migrations are Ruby clas...