search for: thread_edit

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

Did you mean: pthread_exit
2010 May 23
1
[Rails 3] Trouble with named routes and form_for
...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 emitted as part of the action): <form action="/thread" class="thread_edit" id="thread_edit" method="post"> So: 1. Is there some way to use a named route that uses a custom class name and still be able to reuse my form partial for both new and edit actions? Or am I stuck writing two forms? 2. Is the error I received in #2 a bug in Rails 3...