#285 ✓resolved
Obie

Altering Path Names

Reported by Obie | April 29th, 2010 @ 10:54 PM | in The Rails 3 Way

You can define a different path name for a particular REST action. This helps you customize your RESTful routes. This code will route /projects/1/cambiar to the edit action.

resources :projects, :path_names => { :edit => 'cambiar' }

Comments and changes to this ticket

  • Obie

    Obie May 3rd, 2010 @ 06:33 PM

    • Tag changed from chapter02, chapter03 to chapter03
    • State changed from “new” to “resolved”

    Added to Chapter 3.

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 ยป

Shared Ticket Bins

People watching this ticket

Tags

Pages