Displaying 3 results from an estimated 3 matches for "update_form".
2006 Apr 19
1
AJAX - update item forms problem
...kout'' %>
</div>
</div>
<%= form_remote_tag :url => { :action => ''update'', :id => workout },
:html => { :id => "workout_form_#{workout.id.to_s}" } %>
<% @workout = workout %>
<%= render :partial => ''update_form'' %>
<%= end_form_tag %>
</td>
</tr>
workouts_controller.rb
----------------------
def show_workout_update_form
@workout_id = params[:id]
end
def hide_workout_update_form
@workout_id = params[:id]
end
def update
@workout = Workout.find(par...
2006 Jan 08
0
link_to_remote(image_url url_for_file_column(product, "image
...me =
''product_hover''",
"onMouseOut" => "this.className =
''small_product''"},
:complete => "eval(request.responseText)",
:url => { :action => :update_form }) %>
If I remove the html options it works fine, but I need them. Here is a
working sample without the html options.
<%= link_to_remote(image_tag url_for_file_column(product, "image_url"),
:complete => "eval(request.responseText)",...
2006 Jul 14
3
Rails newbie: How does the submit_tag work?
I would appreciate any and all input. The Agile book is not useful in
this context. :o(
As near as I can tell, it doesn''t work at all.
I would expect that clicking on the [Next Question] button in the
browser would fire the next_question method in the current controller.
Instead, it (apparently) does nothing.
The tag in question
<%= submit_tag ''Next