#1 ✓resolved
Brian Pokosh

extending object_path for custom controller actions

Reported by Brian Pokosh | April 23rd, 2009 @ 10:14 PM

I use object_path religiously in my views because I have two different sets of routes. In this example, object_path resolves to either: admin_videos_path

or

account_video_path

For this controller I'd like to make a slight deviation from restful conventions and have a convert action in the controller. I'd like to be able to use the path object_path(object, :action => :convert) or something similar.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Adds context into the RESTful development style.

People watching this ticket

Pages