rails

TwitterFacebook
Get flash to fully experience Pearltrees
twitter

scoping

caching

heroku

Rails in a Nutshell

You are reading the text of an O'Reilly book that's under development. The authors are publishing the book to this site as it's being written, and we're putting it here to get feedback from you. This book uses the Open Feedback Publishing System (OFPS) , an O'Reilly experiment that tries to bridge the gap between private manuscripts and public blogs. Rails in a Nutshell is a concise introduction to Rails, an overview of commands and configurations, and a guide to the parts of Rails you’ll be using every day. Full of examples and explanations, this book kicks your skills into high-gear by showing you how to take advantage of the Model-View-Controller concept with tiny but expressive bits of Ruby that power some of the world’s biggest and fastest web services. Fast to launch and a pleasure to get there are hallmarks of working with Rails. http://ofps.oreilly.com/titles/9780596521424/
http://hivelogic.com/articles/compiling-ruby-rubygems-and-rails-on-snow-leopard/

Compiling Ruby, RubyGems, and Rails on Snow Leopard

The first thing we’ll do is set your shell’s PATH variable. The PATH variable determines where your system searches for command-line programs. You’ll need to set it so that it can find the new apps you’re about to install. Using the editor of your choice, create and edit a file in your home directory named .profile (note the “.” preceding the filename). If you’re using TextMate like you should be and have installed the UNIX mate command , then you can create and start editing the file like this: We’re going to create a folder to contain the files we’re about to download and compile.
http://m.onkey.org/thread-safety-for-your-rails Rails 2.2 marks the first release of thread safe Rails. But “thread safety” alone, without any context, doesn’t mean shit. When people say Rails is “thread safe” ( or otherwise ), they usually refer to the dispatching process of Rails. Before 2.2, Rails dispatching looked like : Long story short, Rails can now serve multiple requests in more than one ruby threads ( or native threads if you’re on JRuby ) parallelly.

Thread safety for your Rails

In a World of Middleware, Who Needs Monolithic Applications?

With Rack emerging as the standard for composing web applications and services, most recently with Rails adoption, an architectural shift is taking place. Learn how to create next generation web services by reusing existing Rack middleware and supplementing with your own components and micro-frameworks like Sinatra. http://www.softdevtube.com/2009/06/04/in-a-world-of-middleware-who-needs-monolithic-applications/
http://martinfowler.com/bliki/SmutOnRails.html

SmutOnRails

A couple of weeks ago there was a Ruby conference in San Francisco called GoGaRuCo (Golden Gate Ruby Conference). This conference has grabbed attention due to a talk at which the presenter illustrated a discussion of CouchDB by using sexually suggestive pictures of women. Unsurprisingly the result has been a fair bit of heated, and occasionally offensive, debate. The main lines of the debate are familiar.
http://fairleads.blogspot.com/2008/01/this-is-second-part-of-my-series.html I think one of the most important comments came from enklare who pointed out that with Rails 2.0 you should explicitly set the database when you create a new Rails app by using the -d flag. The Model View Controller(MVC) design pattern was first described in 1979 by Trygve Reenskaug while working at Xerox on Smalltalk. MVC is not a new syntax construct like an if statement or a data type like an array or int but more a way of looking at how to structure programs and divide the parts up in a logical and useful way.

Rails 2.0 Step by Step (part 2)

Rails 2.0 and Scaffolding Step by Step

Rails 2.0 step by step. Ruby on Rails 2.0 was released by the Rails core team on Friday, December 7th . There were quite a few changes in the 2.0 release, including the way that Rails generates scaffolding code. http://fairleads.blogspot.com/2007/12/rails-20-and-scaffolding-step-by-step.html
Chad Fowler and Rich Kilmer are well-known Ruby programmers, authors, and leaders. Along with David A. Black , they were co-chairs of the recently concluded RailsConf Europe 2008 . In this interview with O'Reilly, Chad and Rich discuss where Ruby and Rails have gone in the past year, whether RESTful composition obviates the need for ORM, what's interesting in the upcoming world of Ruby and Rails, and how Maglev, Rubinius, and other new Ruby implementations contribute to the world of dynamic languages. RailsConf Europe is coming up shortly and I thought it would be good to give our readers and listeners a sense of what's going on and not just with Rails and Ruby but with the Conference, especially for people who can't make it this year or who might think about making it next year either to the American version or European version. Let me start out by asking what's new in the world of Rails this year. http://broadcast.oreilly.com/2008/09/the-present-and-future-of-ruby.html

The Present and Future of Ruby and Rails

REST With Rails Part 1

http://css.dzone.com/news/rest-with-rails-part-1 We Recommend These Resources In this first part I will show you how to build RESTful services using Rails. REST is an architectural style modeled after the Web. Basically, it codifies the principles and methods behind Web servers that lead to the creation of the largest distributed system ever built. For some people "distributed" is about the plumbing – sending messages to remote servers – we're also thinking of the way large scale systems emerge from smaller services, built independently by different groups of people—distributed in design and in implementation.
In it Chad says that the Ruby community has a good tradition of weird because for years this wasn't something you could get a day job doing. Today it is. Keeping the weirdness that flourished during that time is hard. He also says "a lot of people" have complained about RubyConf being on a weekend.

Fear And Loathing At RailsConf

http://gilesbowkett.blogspot.com/2008/06/fear-and-loathing-at-railsconf.html
In essence, using ARAX, Ruby developers would not have to go through the machinations of using something like the RJS (Ruby JavaScript) utility, where they write Ruby code and RJS generates JavaScript code to run on the client, Lam said. "Sure, you could do it that way, but then at some point you might have to add some JavaScript code that adds some custom functionality on the client yourself," he said. "So there's always that sense of, 'Now I'm in another world. And wouldn't it be nice if I have this utility class I wrote in Ruby…' Today if I want to use it in the browser I have to port it to JavaScript.

Move Over, AJAX, ARAX Is Here

Rolling with Rails 2.1 - The First Full Tutorial - Part 1

Notice that most of the gems changed from the [I]nstalled status to [F]rozen. But, the HAML gems was copied but for some reason it still shows up as [I] instead of [F], probably a small bug in the Edge version. I would expect all gems to show as [F]. Anyway. Let’s say we required another gem that by itself requires native compilation, for instance, RMagick, so let’s add another line in the environment.rb file: Particularly, we have to ‘know’ that the gem is named ‘rmagick’ but it is required as ‘RMagick2’.

Stone: Dead-Simple Data Persistence

For small applications, a database can be overkill for storing your data in a consistent and organized manner. Therefore, Stone was built to provide plug-and-play data persistence for any application or framework. It is fast, and it is easy… therefore it is good.
If you already know why I write these tutorials, if you already have /usr/local in your path, if you’ve installed XCode installed already … in other words, if you’re an old-school Hivelogic reader, just click here to jump right to the instructions . The FAQ (Sort Of) Below I’ll walk you through getting your system ready for building and compiling open source software.

Installing Ruby, Rubygems, Rails, and Mongrel on Mac OS X 10.5 (