ruby on rails - undefined local variable or method `createaddress_hotel_users_path' -
i have:
<%addr.each_with_index |addr,index|%> <%if addr==''%> <%= index+1%> <%= form_tag createaddress_hotel_users_path, method: :get %> <div style="display:none"> <input name="utf8" type="hidden" value="✓" /> </div> <textarea cols="67" id="address<%= index+1%>" name="hoteluser[address<%= index+1%>]" rows="3"> </textarea> <p style="text-align: center;width: 50%;"> <a href="#" id="example-hide" class="btn-orange3" onclick="showhide('example');return false;">back</a> <%= submit_tag("proceed payment")%>
in routes:
resources :hotel_users
in controller have action createaddress
. want submit form action hoteluserscontroller
.but getting above error. add together need textarea
value in url after submitting form, can params value.
you've not set route it
resources :hotel_users 'createaddress', on: :collection end
ruby-on-rails ruby-on-rails-4
No comments:
Post a Comment