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

Configuration


Listings
There are 5 listings in this category. Add your listing here
How to Use Configuration Files
The database.yml file has a hidden option for those whose mysql.sock file does not reside at the default /tmp/mysql.sock location. To change the socket, add the following line (for example) to each of the configurations in database.yml:

production:
  socket: /var/run/mysqld/mysqld.sock

The config directory can also be used for application configuration.
(Hits: 228 | Votes: 0 | Visited: 62 | Added: 2006-05-30 13:21:08)
How to Add Your Own Config Info

This page covers three different approaches for storing configuration data:

  1. Use one of the Rails configuration files
  2. Use your very own file (be in YAML or Ruby)
  3. Use the database
(Hits: 229 | Votes: 0 | Visited: 73 | Added: 2006-05-30 13:22:04)
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)
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)