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
Shouldn't form_for be keying off of :as = :thread and using
threads_path/thread_path instead of forum_threads_path/
forum_thread_path ?
No, not as currently designed and implemented. The mapping from
instance to route helper name is done without consulting the routing
definitions at all, it's
I don't get why you're doing :class_name in the routes. I think the :as
should be there. :class_name is more an ARec thing.
On 24 May 2010 08:16, Michael Koziarski mich...@koziarski.com wrote:
Shouldn't form_for be keying off of :as = :thread and using
threads_path/thread_path instead of