diff options
author | Henare Degan <henare.degan@gmail.com> | 2013-03-03 13:37:34 +1100 |
---|---|---|
committer | Henare Degan <henare.degan@gmail.com> | 2013-03-03 13:37:34 +1100 |
commit | 3cdf8791ea004c4254b5eb5bef9fdff3c9a99a7b (patch) | |
tree | ea5bb08b3f936c3e40fc2ce6f4aa1e0dd8a705dd | |
parent | 7e94b14ba2d9336fa3228bbfd9a0387791b60de1 (diff) |
Update form_for syntax in describe request forms
-rw-r--r-- | app/views/request/_describe_state.html.erb | 2 | ||||
-rw-r--r-- | app/views/request/_other_describe_state.html.erb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/request/_describe_state.html.erb b/app/views/request/_describe_state.html.erb index 23eddabb4..0441dd4ce 100644 --- a/app/views/request/_describe_state.html.erb +++ b/app/views/request/_describe_state.html.erb @@ -1,6 +1,6 @@ <% if @is_owning_user %> - <%= form_for(:incoming_message, @info_request, :url => describe_state_url(:id => @info_request.id)) do |f| %> + <%= form_for(@info_request, :as => :incoming_message, :url => describe_state_url(:id => @info_request.id), :html => {:id => "describe_form_#{id_suffix}"}) do |f| %> <h2><%= _('What best describes the status of this request now?') %></h2> <hr> <!------------------------------------------------> diff --git a/app/views/request/_other_describe_state.html.erb b/app/views/request/_other_describe_state.html.erb index 735353e86..a20851282 100644 --- a/app/views/request/_other_describe_state.html.erb +++ b/app/views/request/_other_describe_state.html.erb @@ -1,6 +1,6 @@ -<%= form_for(:incoming_message, @info_request, :url => describe_state_url(:id => @info_request.id)) do |f| %> +<%= form_for(@info_request, :as => :incoming_message, :url => describe_state_url(:id => @info_request.id), :html => {:id => "describe_form_#{id_suffix}"}) do |f| %> <h2><%= _('Hi! We need your help. The person who made the following request hasn\'t told us whether or not it was successful. Would you mind taking a moment to read it and help us keep the place tidy for everyone? |