Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
zealog
on April 27, 2008
|
parent
|
context
|
favorite
| on:
5 little-known Rails methods
I knew that I could do something like [:admin, @record] and the path would know where to go, but I didn't know I could do something like an edit path with edit_polymorphic_path[:admin,@record]. Very handy indeed.
Consider applying for YC's Winter 2027 batch!
Applications
are open till November 2.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: