Ruby on Rails Sunday, August 4, 2019

Thank you all...  I got the drag and drop working but ran into many other complications from the drag and drop and decided it was too complicated for what I was trying to achieve...

Snap to positions, alignment of objects, and on and on.  Looked cool but not worth the extra code...  :-) 

John

On Friday, July 19, 2019 at 10:48:56 AM UTC-4, John Sanderbeck wrote:
I have an app in production that I am adding a module to for Lunch Ordering

What I have is a Menu, which has Meals, and the Meals have Meal Items in Categories like Entree, Vegetable, Fruit, and Drink

What I would like to do it allow Drag and Drop to build meals, and Drag and Drop to build Menus

I made a standard Rails form with a Drag and Drop area for the meal with the items as draggable and sorted in groups on the right....

I don't think I need an Ajax call as I am building or editing the meal. What I need to be able to do is manipulate the array that gets passed back for the Meal Items...

Any suggestions or links I can look at to do this?

John Sanderbeck

Untitled picture.png


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/81861b3d-1aa3-4051-b1c3-d3fc479bbada%40googlegroups.com.

No comments:

Post a Comment