SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Oct 2010
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Simply Rails 2 - looking for a good overview on routing config

    Hi all,

    First - let me say thanks to those of you who volunteer to help answer questions in the forums!

    I'm trying to get up to speed on RoR -- not an advanced programmer, last language I really had a grasp on was ASP (original, not .NET edition) and as a system administrator I've done my share of vbscript for automating management tasks. So, I'm going through Simply Rails 2 and building the Shovell app.

    But, it seems as though we're up to Rails 3 already, and that some of the variances between Rails 2 and Rails 3 are pretty impactful. Some have been easy to sort out and build a translation for (i.e.: "ruby script/server" is now "rails server") ... but others seem like much more significant structural changes. Would I be correct in assuming that config/routes.rb is one of those instances?

    When it came time to build a view and controller for adding a new story to shovell ... is where things started to break for me, and I got the impression that sorting out the differences was not going to be simply looking up a syntax change. Are there any good tutorials on understanding the routing configuration in RoR, above and beyond the book? I'm hoping if I can get the general grasp of the concepts, I can adapt around where the book does things differently.

    Thanks in advance...

  2. #2
    Team ********* Louis Simoneau's Avatar
    Join Date
    Sep 2009
    Location
    Melbourne, Australia
    Posts
    228
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Yep, routing got a pretty major overhaul in Rails 3, but trust me, it's much better now!

    Check out the official Rails Guide to routing, it has a breakdown of pretty much everything you could want to know:

    http://edgeguides.rubyonrails.org/routing.html

    Hope that helps!

  3. #3
    SitePoint Member
    Join Date
    Oct 2010
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Should the routing in Rails 3 be backwards compatible to accommodate the structure/syntax from Rails 2? In other words -- should what is described in Simply Rails 2 still work correctly under Rails 3?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •