Forum: Ruby on Rails remote form not rendering

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Chris O. (Guest)
on 2007-04-02 07:37
(Received via mailing list)
I am making a todo list application for learning purposes, but am
having problems with getting the ajax buttons to show up.

The below code does not render out any text.  I did check the
category.name value and it works fine when not within the
form_remote_tag.

I do have the javascript libraries within the head tag.

In the final rendered output all I get is a bunch of li elements.

Thanks for any help.

<li>
<% form_remote_tag :url => {:action => :show_tasks, :id => category}
do %>
  <%= submit_tag category.name %>
<% end %>
</li>
Chris O. (Guest)
on 2007-04-03 06:23
(Received via mailing list)
Well it seems the issue was in the form_remote_tag.  I used an older,
deprecated, form tag and it then worked as it should.

I have looked over the syntax in comparison to a number of examples a
book I have, and I can't see anything wrong with it, but there must be
something.

'The one that works
<li>
<%= form_remote_tag :url => {:action => :show_tasks, :id => category}
%>
  <%= submit_tag category.name %>
<%= end_form_tag %>
</li>
This topic is locked and can not be replied to.