My partial code: view/clubs_registration/clubs/_dropzone_pictures.html.erb <%= hidden_field_tag :club_id, name: :club_id, value: club_id %>
My initial view code: view/clubs_registration/clubs/test_dropzone_pictures.html.erb <%= render partial: 'dropzone_pictures', :locals => { :club_id => @club.id } %> What I really want to do is retrieve the value of club_id from my jquery: console.log($("#club_id").val()); //-> {:name=>:club_id, :value=>11500} I just want the value 11500. How should I do that please? -- Posted via http://www.ruby-forum.com/. -- 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+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/9cfe4163f8e02e0c182f385d947a1768%40ruby-forum.com. For more options, visit https://groups.google.com/d/optout.