New to Ruby on Rails? Spread the Word!: DIGG This | Add to del.icio.us
Rails411 is your one stop Ruby on Rails resource directory. Here you will find Ruby on Rails tutorials, Conference & Workshop Listings, Forums, and Hosting. We are the definitive guide for Ruby on Rails web applications, components, gems, scripts, and other related resources for Ruby on Rails. Accomplishing more with your Ruby on Rails website is easy with the help of these tested, pre-packaged, and ready-to-run resources.

Click any category to add your site for free.

Friday, May 16 2008

Tutorials & Code Snips

Categories




Listings
There are 69 listings in this category. Add your listing here
The Joy of Migrations
Migrations are one of the more exciting features in Rails today. I think they’re wonderful and that they should be used. I’ll go over how any why you should use these gems...
(Hits: 229 | Votes: 0 | Visited: 74 | Added: 2006-05-22 13:47:31)
rake, rake, rake your boat
On the latest Rails Podcast I spoke with Jim Weirich. Jim is a great person and a fantastic programmer. One of his contributions to the Ruby community is the rake build system.

You can use rake to automate all kinds of tasks. And of course, Rails takes advantage of it in a big way. Last summer I automated a few tasks by adding files to the ‘script’ directory. I thought I was being clever by doing a ‘require’ on ‘environment.rb’ and accessing my mode ...
(Hits: 229 | Votes: 0 | Visited: 76 | Added: 2006-05-22 13:12:36)
The Complete Guide to Rails Plugins: Part II
Plugins are self-contained libraries made specially for Rails. They are a great way to reuse someone else’s code or to package your own code for reuse.

This is the second of a three part tutorial on writing plugins for Ruby on Rails.
(Hits: 229 | Votes: 0 | Visited: 17 | Added: 2006-05-22 13:21:26)
Surviving Rails 1.1 With Server Monitoring
Between 9pm and 10pm PST last night, Dreamhost (and reportedly TextDrive) decided to upgrade to Rails 1.1, resulting in mass havoc, confusion, and probably a few tears. Typo isn’t compatible yet, so bloggers all across the Rails-o-sphere cried out in silence.

Personally, I was hoping for such a world-ending event so I could try my new server monitoring tool. It worked!

But first….
(Hits: 229 | Votes: 0 | Visited: 73 | Added: 2006-05-22 13:15:41)
Disable Foreign Key Checks Under MySql
When you’ve built a database that includes foreign key constraints between parent and child tables, loading fixtures using rake load_fixtures and unit testing can fail with errors such as:

Mysql::Error: #23000Cannot add or update a child row: a foreign key constraint fails (`depot_development/line_items`, CONSTRAINT `fk_items_product` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE): INSERT INTO line_items (`quantity`, `product_id`, `id`, `unit_price`) ...
(Hits: 229 | Votes: 1 | Visited: 81 | Added: 2006-05-30 13:15:25)
How to Configure Logging
This howto shows how to modify some of the defaults in rails’ logging configuration. You can control some aspects of the logger through the config object in either config/environment.rb for a change in all environments or in one of the specific environment config files (e.g. config/environments/development.rb).
(Hits: 230 | Votes: 1 | Visited: 74 | Added: 2006-05-30 13:23:50)
Starting with Ruby and Oracle
In this post i’ll explore some ways of using Ruby with an Oracle database. I’ve installed ruby on my windows laptop and i’m using Oracle Express Edition running on CentOS using vmware.
(Hits: 230 | Votes: 0 | Visited: 102 | Added: 2006-07-16 00:45:41)
Ruby/OCI8 (Oracle Call Interface)
 A library that provides an interface between Ruby and Oracle 8.
(Hits: 230 | Votes: 0 | Visited: 66 | Added: 2006-07-16 00:46:41)
Setting up Ruby and Ruby's Oracle bindings
A basic tutorial to setting up Ruby and Ruby's Oracle bindings on a Hewlett Packard UNIX based machine.
(Hits: 230 | Votes: 0 | Visited: 79 | Added: 2006-07-16 00:48:34)

Results 19 - 27 of 69
<< Start < Prev 1 2 3 4 5 6 7 8 Next > End >>