Forum: Ruby on Rails form_remote_tag

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.
803ad415efcdcbf09b1addeb319650d7?d=identicon&s=25 Adam Akhtar (thegeezer3)
on 2009-02-26 12: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 %>
803ad415efcdcbf09b1addeb319650d7?d=identicon&s=25 Adam Akhtar (thegeezer3)
on 2009-02-27 12:56
can anyone help?:
6b46f4eed76df33a3ffacf87bc9f1079?d=identicon&s=25 vimal (Guest)
on 2009-02-27 13:01
(Received via mailing list)
do |form|
803ad415efcdcbf09b1addeb319650d7?d=identicon&s=25 Adam Akhtar (thegeezer3)
on 2009-03-03 12: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 %>
  <ul>
  <% for task in @incomplete_tasks %>
    <li>
      <%= check_box_tag "task_ids[]", task.id %>
      <%= task.name %>
    </li>
  <% end %>
  </ul>
  <%= submit_tag "Mark as Complete" %>
<% end %>
This topic is locked and can not be replied to.