MySQL Forums
Forum List  »  Ruby

Form_remote_tag not displaying button
Posted by: clem c rock
Date: December 20, 2006 04:11AM

Hello - I'm trying to use a form_remote_tag to make a submit button to fire off an Ajax call. When I add this form_remote_tag code I don't see a submit button where there should be one.

I'm following the example given in the Agile Web Development book starting on page 122.

The code I'm using as follows

<% form_remote_tag :url => { :action => :add_to_cart, :id => product } do %>
<%= submit_tag "Add to Cart" %>
<% end %>

I also have enabled the javascript_include_tag :defaults like this

<%= javascript_include_tag :defaults %>
Any ideas why the button wouldn't show up?

Thanks,
Clem
Edit/Delete Message

Options: ReplyQuote


Subject
Written By
Posted
Form_remote_tag not displaying button
December 20, 2006 04:11AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.