Ruby Weekly is a weekly newsletter covering the latest Ruby and Rails news.

RESTful Rails Development PDF Released

By Peter Cooper / February 20, 2007

Restfulrails

A month ago I reported on the release of a PDF (in German) covering Rails' REST abilities by Ralf Wirdemann and Thomas Baustert (the authors of the first German Rails book, "Rapid Web Development mit Ruby on Rails"). With the help of Florian Görsdorf and Adam Groves, they've produced a fine English translation titled "RESTful Rails Development". It's still free (although donations are accepted).

It's only about thirty pages long, but in that space it packs in a lot of information about Rails and REST, including REST routing, URLs, view techniques, path methods, and how to nest resources. If, like me, you're a Rails developer who's pretty savvy at the 1.0 level but haven't made the leap into the world of REST, it's a great primer.

Comments

  1. Jesse Grosjean says:

    Does anyone know if source code is available for the "ontrack" application discussed in the article?

  2. AkitaOnRails says:

    This is really a fine tutorial. I am a brazilian Railer and I published the first portuguese RoR book in Brazil. I already managed the Getting Real book translation to portuguese and I am willing to translate this tutorial into portuguese as well, maintaining it as creative commons or whatever open source license the authors agree with. Do you know how can I contact them to obtain permission?

  3. Anatol Pomozov says:

    [OT] What are you using for drawing such fancy schemes?

  4. Martijn says:

    I'm just like that. Getting it.

  5. Jeroen8 says:

    sometimes I see some PHP errors in the menu (like php_network_getaddresses:).
    Is it time to rewrite this site in Rails :-)

  6. Sandro Paganotti says:

    Thank you for this amazing document. Now it's time for me to create my first RESTful application !

  7. Peter Cooper says:

    I can't answer for them, but it looks like an Omnigraffle diagram to me.

  8. Ralf Wirdemann says:

    Yes, it was OmniGraffle.

  9. Ralf Wirdemann says:

    @AkitaOnRails: It would be great if could translate the tutorial into portuguese. Please keep it under creative commons. Many thanks.

  10. jennifer lindner says:

    i have a question, kind of a newbie question. i'm using a join table, a model that belongs_to two models. it seems to me the analogy to the code in your work would be if iterations belonged to projects and bulletins. so i'd like to make a url helper for the path:

    iteration_path(:project_id => iteration.project, :bulletin_id => iteration.bulletin, :id => iteration)

    instead of the example given in your tutorial:
    iteration_path(:project_id => iteration.project, :id => iteration)

    but i don't even know where to put such code. in the iterations_helper.rb file? sort of like this?:

    def iterations_path

    iteration_path(:project_id => iteration.project, :bulletin_id => iteration.bulletin, :id => iteration)
    end

    or, should this be part of the resource mapping in the routes.rb file?

    help with this would be very very greatly appreciated.

    thank you

Other Posts to Enjoy

Twitter Mentions