search for: thread_new

Displaying 1 result from an estimated 1 matches for "thread_new".

Did you mean: read_new
2010 May 23
1
[Rails 3] Trouble with named routes and form_for
...rm_for @thread, :as => :thread, :url => threads_path(@thread) do |f| %> .... <% end > This doesn''t work for edit, and sorta works for new except it outputs the following HTML, which makes the respond_to block unhappy: <form action="/thread?format=" class="thread_new" id="thread_new" method="post">.... 4.) So then I tried: <%= form_for @thread, :as => :thread, :url => threads_path do |f| %> .... <% end > Now everything works for new, but not for edit! (Because the ID of the element being edited isn''t...