background preloader

Rails

Facebook Twitter

Ruby on Rails Screencasts. 74 Quality Ruby on Rails Resources and Tutorials. Learning Rails from scratch can be a pain.

74 Quality Ruby on Rails Resources and Tutorials

But don't fret, this guide provides the best Rails resources the Web has to offer. Ruby on Rails is quickly becoming one of the most popular modern programming language framework combinations. Specifically, Ruby is a programming language that has been around for a few years and Rails is a framework for Ruby that is a bit newer and is just about the hottest thing in application and web development right now. Rails' seamless integration into web servers and databases and its elegant framework make it the ideal candidate for every programmer wishing to develop the latest and greatest web application. However, as is the case with any language or framework, learning Rails from scratch can be quite a pain. Related Articles: Fortunately for you, we've compiled a list of the best Rails resources the Web has to offer.

Installation Manual Installation If you're interested in getting Rails to work on your own, you'll need to follow the following steps: Books. Rake Tutorial. If you’re developing with Rails you’ve probably encountered rake once or twice.

Rake Tutorial

This blog post aims to walk you through where rake came from and an introduction on how to use it effectively in your Rails apps. A Little Bit of History Rake is the project of Jim Weirich. It’s a build tool. For a good laugh and an even more in depth history check out the "rational.rdoc" from the Rake documentation. What’s the need for an automated build system at all? Historically, developers used build automation to call compilers and linkers from inside a build script versus attempting to make the compiler calls from the command line. It’s about Dependencies This may be a bit of a stretch to say but build tools are about dependencies. What we’re saying here is that the file named “hello.tmp” depends on the directory "tmp". If you were to look at the "hello.tmp" file you would see the phrase "Hello".

Now if you were to run it twice you would see something like this: Running Other Tasks Namespaces Refactoring. 19 Rails Tricks Most Rails Coders Don’t Know. New to Rails 3?

19 Rails Tricks Most Rails Coders Don’t Know

Check out the Ruby on Rails 3 Tutorial book and screencast. A book and screencast series showing you how to develop and deploy industrial-strength Rails apps in a direct, step by step way. The screencast series includes 12 lessons over more than 15 hours! Get the best "over the shoulder" experience of following what a top Rails 3 developer does when building an app today. Click here to learn more. Please note that this post is over four years old - it's from 2006! When looking at my own Rails code and that of the community as a whole, I often see places where certain Rails techniques could have been used, but weren't. Benchmark logic in your controller actions - It's really easy.

User.benchmark("adding and deleting 1000 users") do 1000.times do User.create(:name => 'something') x = User.find_by_name('something') x.destroy endend Of course, your code would be a lot better ;-) The regular SQL logs are not shown when within the benchmark sections.