Understanding routing in Ruby on rails

If you want to understand how to use routing in your own Rails applications, start here.

  1. article Completed

    Resourceful routing with Rails

    Resource routing in Rails is most often used for nesting related ActiveRecord objects, such as a post having many comments: The resource method of the router hooks up the "RESTful" urls with a set of standard set of controller methods and HTTP verb: post_comments GET /posts/:post_id/comments(.:format) {:action=>"index", :controller=>"comments"} POST /posts/:post_id/comments(.:format)

    Edit Remove Move
  2. video Completed

    Ruby on Rails Tutorial Part 3 - Routing

    In this Ruby on Rails Tutorial we'll learn the basics of resource routing in rails for the seven restful routes, actions, and their named routes. In this video I'm using Rails 3.1 and Ruby 1.9.2 on Linux.

    Edit Remove Move
  3. article Completed

    Understanding Rails' Routes

    While there are a ton of books to learn about the ins and outs of Rails, let’s take a look at one small, but extremely important piece: routes.

    Edit Remove Move
  4. article Completed

    Rails Dispatch

    In this week's post, we'll be looking at the new Routing API in Rails 3. Other than handling all the basic routes efficiently, the new DSL also has some nice advanced features baked in that every developer will sure appreciate. I have written about basic routing in Rails 3 over on the EngineYard blog before.

    Edit Remove Move
  5. article Completed

    Single Resource REST Rails routes

    REST principles by default is a fantastic convention within Rails applications. The documentation for how to route HTTP requests are comprehensive and give examples about photo resources within an application. If you've got photo and tag as first class resources of your application, Rails has you covered.

    Edit Remove Move
  6. link Completed

    RESTful Routing in Rails 3 - Jaco Pretorius

    This post deals with generating RESTful routes in Rails 3. If you want to look at the basics of routing (which also helps in understanding RESTful routes), take a look at Routing in Rails 3. RESTful routes is quite a large topic and it's quite possible to write quite a few posts (or even a whole book) about it.

    Edit Remove Move

Continue learning by following more paths or create your own. Join for FREE

By clicking 'Get Started Free' you agree to our Terms of Service and Privacy Policy