search for: threads_path

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

2010 May 23
1
[Rails 3] Trouble with named routes and form_for
...ks for edit actions, but not for new actions. On new I get the following error: No route matches {:action=>"destroy", :controller=>"forum_thread", :id=>#<ForumThread id: nil, .....>} 3.) So then I tried: <%= form_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="po...