search for: model_name_from_record_or_class

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

2012 Sep 03
0
undefined method `singular_route_key' for "User":ActiveModel::Name
In ActionDispatch::PolymorphicRoutes, there is a call to build_named_route_call an on line 172 (of latest rails code from github), there is a call to singular_route_key: model_name_from_record_or_class(parent).singular_route_key Now model_name_from_record_or_class returns an ActiveModel::Name object, which is a wrapper to the string class, that returns a string name of the class of an activerecord model. I launch the console and try to invoke singular_route_key, and it gives me undefined method...