I read this one , but I'm new to RoR, so it's hard for me to understand it. I use the form to create a new request record, and all the variables that I need to submit already exist. Here is the data I need to send (this is in the do loop):
:user_id => w[:requesteeID] :requesteeName => current_user.name :requesteeEmail => current_user.email :info => e
Here is my form that still works, but only sends NULL values ββfor everything:
<% form_for(:request, :url => requests_path) do |f| %> <div class="actions"> <%= f.submit e %> </div> <% end %>
How to use hidden_fields to send data that I already have? Thanks for reading.
ruby-on-rails forms hidden-field
ben Jun 28 2018-10-10T00: 00-06
source share