This project is archived and is in readonly mode.
ActiveRecord::Base#path function
Reported by Bryce | June 20th, 2008 @ 08:36 AM
I had an idea for a helper function in ActiveRecord::Base, the #path function.
It could be used in tags like link_to, to assert the RESTful path for the model. ie:
Comments and changes to this ticket
-
Bryce June 20th, 2008 @ 08:37 AM
Well, for some reason the example didn't come up:
link_to job.title, job.path
-
Cheah Chu Yeow June 23rd, 2008 @ 04:26 PM
Actually, you should already be able to do:
link_to job.title, job_path # uses named route # OR link_to job.title, job # /jobs/[id]
-
Bryce June 23rd, 2008 @ 10:25 PM
Duh! Feel free to close this idiotic ticket
On Tue, Jun 24, 2008 at 1:26 AM, Lighthouse
wrote:
-
Jeremy Kemper June 23rd, 2008 @ 11:09 PM
- State changed from new to invalid
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>