Hi guys, I've come across what I think is a bug in form_for in Rails 3 beta 3, and just wanted to run it by you before I needlessly created a ticket. Here's the situation:
Named route: resources :thread, :class_name => "forum_thread" Controller name: forum_thread_controller Model object: forum_thread The following throws an exception when rendering the view: <%= form_for @thread, :as => :thread do |f| %> .... <% end %> Exception: undefined method `forum_threads_path' for #<#<Class:0x00000103a45098>: 0x000001039575a0> Running the same form through an edit action gives this exception: undefined method `forum_thread_path' for #<#<Class:0x00000103b6c750>: 0x00000103b5f870> Shouldn't form_for be keying off of ":as => :thread" and using threads_path/thread_path instead of forum_threads_path/ forum_thread_path ? -J -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-c...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.