search for: form_parti

Displaying 3 results from an estimated 3 matches for "form_parti".

Did you mean: form_partial
2008 Jul 26
1
Dropdown selected value not reflecting in edit view
...tions_for_select([[less_than_1_year, [0,1]],[between_1_and_3_years, [1,3]],[between_3_and_5_years, [3,5]],[between_5_and_7_years,[5,7]], [between_7_and_10_years,[7,10]], [above_10_years,[10,50]]]) The selected value of the user is not getting reflected in the Edit view of the entry. I am using the Form_partial. Edit View: <% form_for(@defaultrate) do |f| %> <%= render :partial =>"form", :locals => { :f => f, :button => "Update" } %> <% end %> New view: <% form_for(@defaultrate) do |f| %> <%= render :partial =>"form", :loc...
2013 Sep 19
0
CRUD model in a bootstrap modal with jquery, ajax - best practice
...troller#update <form accept-charset="UTF-8" action="/en/people/32" class="form-horizontal" data-remote="true" data-type="json" id="edit_person_32" method="post"> if there is an error in the form, i do render_to_string(form_partial) inside the controller and respond with this inside of the json response. Now i have the partial html inside of the json object. I do this, to get the rails error messages and fields_with_errors. Is there a better way to do it? all the mix between script and json format and the partial ht...
2005 May 03
2
How to put a form for one controller in another controlers view
Hello, If anyone could help me out with this problem I''d appreciate it... I''m making a database of event bookings, I have an events table and a clients table. I''d like to include a form to create a new client in the form for creating a new event. This would update the parent form with the new client_id using AJAX methods (see previous e-mail) so you''d