Quantcast
Channel: Code Snippets – Chris Bloom
Viewing all articles
Browse latest Browse all 10

Named redirect routes in Rails 3

$
0
0
I didn’t see this mentioned anywhere in the Rails Guide or in my admittedly cursory Google searches, but apparently it’s possible to create named redirect routes in Rails 3. For example: [gist id=1024213 file=routes.rb] Then you can use those in your layouts like so: [gist id=1024213 file=application.html.erb]

Viewing all articles
Browse latest Browse all 10

Trending Articles