
Rails
Get flash to fully experience Pearltrees
Objects on Rails
The Joke Is On Us: How Ruby 1.9 Supports the Goto Statement
The goto statement is one of the most infamous and troublesome features of old, archaic languages like Fortran. It allowed programmers to quickly create spaghetti code that was confusing and impossible to understand. Thankfully when structured programming came into use in the late 1960s and 1970s with Algol, Pascal and later C, goto was no longer necessary. This is all ancient history: why am I bringing it up? Well, I just discovered this week that Ruby, one of the most beautiful and expressive languages in use today, includes support for the goto statement!We all know Sinatra as a lightweight alternative to Rails. I find using it is a real pleasure. Sinatra’s helper methods, template support and routing provide just enough to get a simple web site running quickly, but then immediately get out of your way. Years after it was introduced Sinatra remains one of the most popular Ruby web frameworks out there.
Exploring the Elegance of Sinatra: A Lightweight Alternative to Rails
The Pragmatic Bookshelf
March 28, 2012 Modern web development involves a lot of moving parts and a lot of different technologies, and it can be hard to get them all just right. In the heat of development, it’s particularly easy to neglect the presentation layer until it grows to become an unmanageable mess. But you can fix that Broken Window with The Rails View, now in print and shipping from pragprog.com/book/warv .Ruby on Rails Tutorial: Learn Rails by Example book and screencasts by Michael Hartl
1 The Purpose of the Rails Router The Rails router recognizes URLs and dispatches them to a controller’s action. It can also generate paths and URLs, avoiding the need to hardcode strings in your views. 1.1 Connecting URLs to Code When your Rails application receives an incoming request
Rails Routing from the Outside In
Best way to learn Ruby & Rails - @AstonJ's Blog
That’s no typo, I really did mean Ruby and Rails – but before you run off (those looking to learn only Rails) read on… I started off wanting to learn just Rails too, but I quickly realised two things: Rails will only get you so far – to be anything close to a Rails ninja, you need to learn Ruby (Rails is Ruby underneath it all). While Rails goes out of its way to simplify a lot, once you begin to do more complex stuff you’re going to need to know Ruby – and because Ruby is so easy to pick up anyway it makes sense to learn it from the outset. It will not only save you time in the long run, but will also help you learn Rails as well, because you’ll have a better understanding of what’s going on. Even if you came for Rails, most likely you will stay for Ruby – like so many of us! The more you’re exposed to Ruby the more you’ll want to learn it.Ruby on Rails 3 Testing with RSpec 2 | Jonathan Hui
I come from a PHP background, but these days, I’m a full-time Rails developer. The difficulty for most people who make the switch lies in the learning curve that’s involved. Once you’ve become proficient in a language or framework, switching to a new one feels like an unnecessary (and time-consuming) challenge. However, learning Ruby and Rails is actually pretty easy! It’s an incredibly powerful framework, and has a huge community pushing it along.

