|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Form_remote_tag not displaying button
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 Code:
<% 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 Code:
<%= javascript_include_tag :defaults %> Any ideas why the button wouldn't show up? Thanks, Clem Edit/Delete Message Last edited by CLEM_C_ROCK : December 20th, 2006 at 04:10 AM. |
|
#2
|
|||
|
|||
|
Ok Problem solved - it must be just the version of rails I was running:
this the the version that worked for me: Code:
<%= form_remote_tag :url => { :action => :add_to_cart, :id => product }
%>
<%= submit_tag "Add to Cart" %>
<%= end_form_tag %>
Quote:
|
|
#3
|
|||
|
|||
|
Ok Problem solved - it must be just the version of rails I was running:
this the the version that worked for me: Code:
<%= form_remote_tag :url => { :action => :add_to_cart, :id => product }
%>
<%= submit_tag "Add to Cart" %>
<%= end_form_tag %>
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Ruby Programming > Form_remote_tag not displaying button |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|