What I am trying to do is fill in a form in Rails 4 with data being received from a JSON object.
#_form.html.erb
<%= simple_form_for(@tournament) do |f| %>
<%= f.input :url %>
<%= f.input :name %>
<%= f.input :location %>
<%= f.input :start_time, :as => :hidden %>
<%= f.input :end_time, :as => :hidden %>
<%= f.input :entrants, :as => :hidden %>
<%= f.input :t_id, :as => :hidden %>
<%= f.input :type, :as => :hidden %>
<%= f.button :submit %>
<% end %>
How do I take the input URL and use the received JSON object to populate the rest of the fields?