#203 Routing in Rails 3
Rails 3 sports a new routing interface. In this episode I show how to translate the old interface into the new one and show off a few new features.
- source codeProject Files in Zip (89 KB)
- mp4Full Size H.264 Video (21.1 MB)
- m4vSmaller H.264 Video (14.3 MB)
- webmFull Size VP8 Video (41.3 MB)
- ogvFull Size Theora Video (28.9 MB)
Another great episode! I like Monday mornings ;-)
One question to the :year, :month, :day variables. Is it possible to set standard values for those that were not provided - or do you have to do this in the controller method itself?
Thanks and keep up the great work!
Good screencast as usual...
I'm new to rails, and now I can understand about this great framework coz your screencast.
Since I watch and followed your screencast, I didn't see screencast about Chat Application with Rails. Would you please to make screencast about it (e.g. with XMPP4R or Juggernaut) correct me if I'm wrong)...
The new routing is looking really sexy, like everything I've seen of Rails 3 so far.
It's gonna be another good year for us rubyists ^^
The API is not complete though. Shallow routes are missing, for instance.
@Tobias, I heard of a :defaults option you can supply for default values, but I could not get this to work. If nothing else it's pretty easy to handle default values on the controller side.
@Jose, right, shallow routes are in the works I believe.
Great screen-cast, very helpful details on what's to come from Rails 3 in terms of routing. You got a very clear voice, looking forward to more screen-casts.
Thank you for a great tutorial. Keep it up.
p.s. I noticed what I think might be a typo in the episode description.
"Rails 3 sports" should be "Rails 3 supports".
@George: I'll take the liberty of saving Ryan a response. "To sport" is a verb used for precisely this purpose. It means "to wear or display" (something) and is often used as a synonym for "have" when the writer wishes to make the writing feel more active. It also has a positive, energetic connotation, making it well-suited to describing new features of a product, service, or fashion.
Hi, i'd like to know.. is it possible to use the new rails router in non rails apps?
And if how?
Hello, I am interesting in routes translations with i18n..
Do you know something about that?
Hilarious cite: " ... and that works, because it does ...".
Thanks for this great screencast!
What's the browser just you used、so easy to switch IE or firefox