Note that there are some explanatory texts on larger screens.

plurals
  1. POSubmit button not saving/updating changes Ruby on Rails
    primarykey
    data
    text
    <p>I have this form:</p> <pre><code> &lt;fieldset data-model="idea-art" class="idea-edit"&gt; &lt;h2&gt;Artwork Specs&lt;/h2&gt; &lt;%= form_for @idea do |f| %&gt; &lt;div data-attribute="art_status" class="edit-field"&gt; &lt;%= f.label :art_status, "Art Status" %&gt; &lt;%= f.select :art_status, Idea::ART_STATUSES %&gt; &lt;/div&gt; &lt;div data-attribute="artist" class="edit-field"&gt; &lt;%= f.label :artist_id, "Artist" %&gt; &lt;%= f.select :artist_id, User.artists.collect{|x|[x.full_name, x.id]}, :include_blank =&gt; true %&gt; &lt;/div&gt; &lt;div data-attribute="default_size" class="edit-field"&gt; &lt;%= f.label :default_artwork_id, "Default Artwork" %&gt; &lt;%= f.select :default_artwork_id, @idea.artworks.collect{|x|[x.dimensions, x.id]}, :include_blank =&gt; true %&gt; &lt;/div&gt; &lt;div data-attribute="colors_offered" class="edit-field"&gt; &lt;%= f.label :colors, 'Colors Offered' %&gt; &lt;%= f.collection_select :color_ids, Color.master_colors.order(:name), :id, :name, {}, {multiple: true}%&gt; &lt;/div&gt; &lt;div data-attribute="base" class="edit-field"&gt; &lt;%= f.label :base, "Base" %&gt; &lt;%= f.check_box :base %&gt; &lt;/div&gt; &lt;div data-attribute="special_instructions" class="edit-field"&gt; &lt;%= f.label :special_instructions, "Special Instructions" %&gt; &lt;%= f.text_area :special_instructions %&gt; &lt;/div&gt; &lt;div data-attribute="artwork" class="edit-field"&gt; &lt;%= f.fields_for :artworks do |artworks_f| %&gt; &lt;%= render 'artwork_fields', f: artworks_f %&gt; &lt;% end %&gt; &lt;p&gt; &lt;%= link_to_add_fields "Click To Add Artwork", f, :artworks %&gt; &lt;/p&gt; &lt;/div&gt; &lt;%= f.submit %&gt; &lt;%end%&gt; &lt;/fieldset&gt; </code></pre> <p>when I click submit my changes are not updated. I have tried many things and nothing seems to work. I am new to ruby and have read the RailsGuide to form helpers and I still can't quite figure it out.</p> <p>Is there something I am missing?</p> <p>Thanks</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload