background preloader

Rubyonrails

Facebook Twitter

Documentation

31 Fascinating Ruby on Rails Tutorials & Guides - Nettuts+ Ruby on Rails is an excellent framework to learn not only because it's a great web application framework, but also because it has a large and helpful community. In fact, chances are you can learn how to use Rails in a multitude of ways, just by searching the web. We've taken it upon ourselves to compile some excellent tutorials that Rails beginner's and zealots alike can use while working in the popular web app framework and continue exploring the endless possibilities of Rails. 1. How to Install Rails A getting started guide on how to set up Rails in multiple environments, from the official Ruby on Rails site. 2.

Apple has an official guide on how to get started with Rails on a Mac. 3. Extensive documentation on how to get this great cocktail of software working for Rails. 4. Four Days on Rails is an impressive 40-page eBook that provides a handy toolbox for Rails development. 5. Rails Envy gives an argument in favor of the Rails framework. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 5 Tips to Scale Your Ruby on Rails Application | Union Station. There are lots of resources on the web that explain how to scale web applications and how to scale Rails. Here's a quick summary of just five of the basic strategies for a scalable Ruby on Rails web application. Some of them are specific to Ruby on Rails; others generalize to any shared-nothing application server architecture. 1) Cache, cache, cache and more cache.

Cache at the client and use Ajax libraries like JQuery to stream in data to the browser on demand. Use gateway /reverse proxy caches to cache HTTP responses at your website, and learn how to use expiration and etags. Take full advantage of Rails' built-in action, page and fragment caching. Use memcache to cache results that you'd otherwise pull from your database. 2) Segregate data and data serving Don't munge all your data storage into a single database "for convenience.

" 3) Minimize & handle external dependencies Watch for dependencies on external services like ad serving networks or RSS feeds. Tagged: Ferret. Ferret is a high-performance, full-featured text search engine library written for Ruby. It is inspired by Apache Lucene Java project. Apologies to everyone who has been following along with the development in the subversion repository.

We've recently moved development to github and I've been having some trouble keeping everything in sync. I never worked out exactly what the problem was but it may have had something to do with conflicting version of git that I've been using. Anyway, everything seems to be working now and you should be able to read the full history of commits in the timeline rather than just the git merge messages that were occasionally appearing before.

You can now check the coverage reports from gcov here . Ferret 0.11.6 released. Note: You will need to rebuild your index if it was built with or modified by version 0.11.5. Or you can download the PDF from O'Reilly. This Short Cut will show you how to quickly get up and running with Ferret. Tips for writing your own Rails engine — GIANT ROBOTS SMASHING I. While converting Clearance to a Rails engine was easy, once we were there, we found it wasn’t Valhalla. We fixed the bugs while using the engine internally on a few apps. Here are the lessons we learned. Keep them in mind if you’re thinking of writing your own engine. Routes precedence As developers, we want routes in our app to take precedence over routes in the engine. To get around that, we came up with this hack. Class ActionController::Routing::RouteSet def load_routes_with_clearance!

Rather than using the Rails engine convention of naming the routes file vendor/gems/clearance/config/routes.rb, we named it vendor/gems/clearance/config/clearance_routes.rb so it won’t be automatically loaded. Ugly stuff, but effective and solved a blocker for releasing as an engine. Cached classes in development In development, all your classes are constantly reloaded. We added unloadable to our Clearance module to fix this. Class Clearance::SessionsController < ApplicationController unloadableend. Top 50 Ruby on Rails Websites. Rails Boost: Rails Template Generator. #haml. 10 Useful Tips For Ruby On Rails Developers | How-To | Smashing.

Advertisement By Greg Borenstein and Michael ‘MJFreshyFresh’ Jones Rails is an model-view-controller Web framework written in the Ruby programming language. One of its great appeals is being able to quickly crank out CRUD-based Web applications. A big advantage of Rails over other frameworks is that it values convention over configuration.

If you follow the correct conventions, you can avoid lengthy configuration of files, and things just work! Therefore, you spend less time writing boring config files and more time focusing on business logic. Now, we love Rails. In the overview below we present 10 useful tips, ideas and resources for Ruby on Rails-developers (both newbies and professionals). 1. Rails has a well defined plug-in structure that enables you to easily install and use plug-ins in your application. There’s an old nugget of developer wisdom that “the best code is no code at all.” There are a few ways to install a plug-in in Rails, however the most common is using script: 2. 3. Data on Rails - Google Data APIs - Google Code.

Eric Bidelman, Google Data APIs Team February 2009 Introduction "Where's Ruby on the list of client libraries? " Motivated by the ferocious appetite of our developers and the enduring popularity of Ruby on Rails (RoR), my colleague Jeff Fisher has forged a Ruby utility library from the fiery depths of Mount Doom. Mind you, it's not a full-blown client library, but it does handle the fundamentals like authentication and basic XML manipulation. It also requires you to work directly with the Atom feed using the REXML module and XPath. Audience This article is intended for developers interested in accessing the Google Data APIs using Ruby, specifically Ruby on Rails. Getting Started Requirements Ruby 1.8.6 patch level 114+ downloadRubyGems 1.3.1+ downloadRails 2.2.2+ download Installing the Google Data Ruby Utility Library To obtain the library, you can either download the library source directly from project hosting or install the gem: Authentication ClientLogin The YouTube Data API would be: AuthSub.

Launching Ruby on Rails projects, a checklist. Since publishing this article, I have given a talk on this topic at Rails Underground 2009. I invite you to checkout the slides . As mentioned in a recent post , I’m hoping to share some lessons that were learned throughout the process of launching a client project. Over the past few years, we’ve been part of several dozen client projects and the big launch date is always an anxiety-filled, yet exciting point for the client and our team.

I wanted to provide a quick list of a few the things that our team considers vital before launching that next big project. While most of these things might seem obvious, it’s still good to cover the basics and I hope a few people find it helpful. Hosting Our company has been offering Ruby on Rails hosting for nearly four years and a few years longer with the PHP5 and PostgreSQL world. The basic process that our team is to get a deployment environment setup as early in the design and development process as possible.

A few things to consider here: Reminder: Twitter4R - Open Source Ruby Project for Twitter REST API [Rubyf. Play! TuneUp | Runs.