Quantcast
Channel: Active questions tagged ruby - Stack Overflow
Viewing all articles
Browse latest Browse all 4627

How to add an item to a form? [closed]

$
0
0

I'm new to Ruby on Rails. I need to add an item to a form without entering any information. The information will be taken from the seeds.rb file. Is there any way that can happen? I'm aware of the update method but is there an add method of the sort?

I've tried using the update method in replace of it, but it didn't work. I cannot add pictures but here are links for them. I'm basically trying to add a button that will add the item to the form. Kind of like a 'add to cart' function but using ruby on rails.

https://i.sstatic.net/9QMcyZmK.png // seeds.rb

[https://i.sstatic.net/tEZrnDyf.png][1] // form that needs the item added to

https://i.sstatic.net/OlE73VB1.png // page that features a button to new form with added item


Viewing all articles
Browse latest Browse all 4627

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>