Tutorials & Code Snips |
Categories |
|
Best Practices (3)
Components (1)
Configuration (5)
Database (13)
Deployment (6)
Design (1)
Gems (1)
Getting Started (11)
Miscellaneous (2)
Plugins (2)
Scripting (2)
Server (3)
Templates (2)
Testing (8)
Web Services (2)
XML (1)
|
| Listings |
| There are 69 listings in this category. Add your listing here |
|
An Even Better Way to Build Ruby, Rails, Lighttpd, and MySQL on Tiger
Basic tutorial on building Rails on Tiger
(Hits: 231 | Votes: 0 | Visited: 64 | Added: 2006-05-22 13:06:05)
|
|
Test Your Helpers
A glaring hole in the Test Driven Development aspirations of Rails is helper tests. And also view tests, which Eric Hodel is working on.
But back to helper tests….you can test them somewhat through your functional tests, but how can you test them individually? Ryan Davis figured out a solution and I made it into a plugin!..
(Hits: 231 | Votes: 0 | Visited: 65 | Added: 2006-05-22 13:17:22)
|
|
The Complete Guide to Rails Plugins: Part I
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 first of a three part tutorial on writing plugins for Ruby on Rails...
(Hits: 231 | Votes: 0 | Visited: 85 | Added: 2006-05-22 13:19:51)
|
|
Creating a New Rails App with SVN
Here's how I create a new Rails app and start version control using SVN. I keep my repositories in a directory called source and I develop in a directory called rails (under the default sites folder), both in my home directory. For the purposes of this tutorial, I will be creating a new Rails project for development of this site.
(Hits: 231 | Votes: 0 | Visited: 67 | Added: 2006-05-30 13:01:12)
|
|
How to Change Session Options
This article introduces how to change session options, both globally(for your entire application) and per controller/per action.
(Hits: 232 | Votes: 0 | Visited: 66 | Added: 2006-05-30 13:23:04)
|
|
How To Use Unicode Strings
While you can’t use Unicode strings with ruby, you can store UTF-8 encoded data in your 8-bit strings. However some of the String methods assume a single byte encoding and therefore return wrong results. Besides, without proper settings you will get output and input as sequences of bytes and you might get parse errors in literals.
(Hits: 232 | Votes: 0 | Visited: 66 | Added: 2006-05-30 13:24:26)
|
|
Using Capistrano with Perl (or PHP)
Theoretically, you can use the Switchtower Capistrano deployment system with Perl, PHP, or any other system. I haven’t seen a tutorial for doing it with non-Rails systems, so here is how I did it tonight...
(Hits: 232 | Votes: 0 | Visited: 61 | Added: 2006-05-22 13:13:24)
|
|
How To Use Fixtures With HABTM
If you need to test an application that uses a has_and_belongs_to_many (habtm) relationship, you’ll need to do a few extra things to your testing setup. Since it took me a bit of poking to 1. figure out that the habtm relationship wasn’t happening automagically in the tests, and 2. figure out how to make it happen, I thought I would jot down a few notes that may help others.
(Hits: 232 | Votes: 0 | Visited: 95 | Added: 2006-05-30 13:12:55)
|
|
Freeze Other Gems to Rails' ./lib Directory
If you have any Rails apps on shared hosts, you know that you have to copy your own libraries into the ./lib folder of your app.
I thought that the new “rake freeze_gems” would do that, but it only freezes the Rails-relevant gems (ActiveRecord, ActionMailer, etc.). If you use any other libraries (like Gruff), you’re on your own.
(Hits: 233 | Votes: 0 | Visited: 61 | Added: 2006-05-22 12:49:02)
|
|
<< Start < Prev 1 2 3 4 5 6 7 8 Next > End >> |