Typo on helper name?

1 view
Skip to first unread message

peterpunk

unread,
May 7, 2008, 10:49:19 PM5/7/08
to resource_controller
self.helper_method :object_url, :edit_object_url, :new_object_url, :collection_url, :object, :collection,
:parent, :parent_type, :parent_object, :model_name, :model, :object_path, :edit_object_path,
:new_object_path, :collection_path, :hash_for_collection_path, :hash_for_object_path,
:hash_for_edit_object_path, :hash_for_new_object_path, :hash_for_collection_url,
:hash_for_object_url, :hash_for_edit_object_url, :hash_for_new_object_url, :parent?,
:collection_url_options, :object_url_options, :new_object_url_options

I need to use parent_objects but is not exposed and parent_object is
an unexistent method, I think is a typo on the declaration

Bests

P

Pedro Visintin . I T S o l u t i o n s A r c h i t e c t
Ruby On Rails Argentina. http://blogs.onrails.com.ar
Personal page:
http://www.p-e-t-e-r-p-u-n-k.com.ar

"Todo descontento por aquello que no tenemos parece provenir solamente
de nuestra falta de gratitud por aquello que tenemos"

James Golick

unread,
May 17, 2008, 11:26:33 AM5/17/08
to resource_...@googlegroups.com
You're right... good catch.

Should be plural in the deep nesting branch, and singular elsewhere.

J.
Reply all
Reply to author
Forward
0 new messages