Forum: Ruby on Rails form_remote_tag

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Adam A. (Guest)
on 2009-02-26 13:52
i cant figure out how my syntax is wrong. Ive looked at various apis but
they dotn give examples using paths but a book im using does for a
simple case. Whats wrong with this

<% form_remote_tag  :url => multi_complete_project_tasks_path(@project),
:method => :put,
                :html => multi_complete_project_tasks_path(@project),
:method => :put do %>
Adam A. (Guest)
on 2009-02-27 13:56
can anyone help?:
vimal (Guest)
on 2009-02-27 14:01
(Received via mailing list)
do |form|
Adam A. (Guest)
on 2009-03-03 13:04
hi vimal thanks but i dont think thats right. could you or someone show
a call to form
_remote_tag that will degrade if javascript is enabled in the browser?

if youd like something to work on how about his from railscasts

<% form_tag complete_tasks_path, :method => :put do %>
  <% for task in @incomplete_tasks %>
      <%= check_box_tag "task_ids[]", %>
      <%= %>
  <% end %>
  <%= submit_tag "Mark as Complete" %>
<% end %>
This topic is locked and can not be replied to.