1. Relearning routes in Rails Routes in Rails 3 Juliana M. de Lucena @julianalucenaa (Yes, it has two ‘a’)
2. “I love URLs. I dream about them at night. I think about them before I think about anything else.” Adrian Holovaty, co-creator of Django From Webstock 2009
4. Our Path Good perceptions Block declaration Let’s see some routes Root Resource Default Using constraints Redirect Namespace on route Translating Let’s MAKE some routes
7. Let’s see some routing Root route Old one New one Concise
8. Let’s see some routing Resource route Nested resources “Resources should never be nested more than 1 level deep.” Rails Guides Old one New one Clean
9. Let’s see some routing Resource route Adding some routes Old one New one or Rubyish
10. Let’s see some routing Default route Old one New one And you can name it like below It generates show_tag_type_path
11. Tired of showing Rails 2 examples Sorry Let’s move on without them
12. Let’s see some routing Using constraints On HTTP method On some fragment
13. Let’s see some routing Redirect route Namespace on route Admin::LibrariesController
14. Let’s see some routing Translating routes (it can be useful for us?)
15. Enough! <O> Let’s MAKE some routing You can see more surfing through the web
16. Let’s MAKE some routing Some advises In a DOJO way We are interest just on routes, forget about view, models and controllers things Do not be scared with specification, it will be very simple Control your anxiety, it is on next page
17. Let’s MAKE some routing Exists a library That has many books, employees and students A book Can be created, edited, updated, deleted by any employee Can be seen, borrowed and returned by everyone Is identified by a five characters code All employees Can access some library private informationsthrough a special URL that begins with ‘admin’ Post method
18. Let’s MAKE some routing The library changed the name: When somebody access /my_old_library should redirect to /my_new_library With ‘/library/branchs’ we can see all libraries physical addresses (static page) Do not forget the root path All routes should be translated to portuguese