[Rails] Where to keep static arrays of data

2009-11-05 Thread Zovar
Hello, I was wondering if there is a right way to keep some static arrays of data inside the application. I want to be able to access them globally. (it's not for setting vars, just simple arrays, i.e. ['ICQ', 'AIM', 'GTALK'] etc). Also I don't wan't to use a database for that, need a hardcoded

[Rails] Re: Where to keep static arrays of data

2009-11-05 Thread Zovar
, On Thu, 2009-11-05 at 17:55 -0800, Zovar wrote: Hello, I was wondering if there is a right way to keep some static arrays of data inside the application. I'd consider storing them in the models to which they relate.  If they need their own models, that's easy too.  The models don't have

[Rails] Re: Mysql::Error: query: not connected

2009-11-04 Thread Zovar
MySQL 5.1.37 On Nov 4, 8:59 am, Frederick Cheung frederick.che...@gmail.com wrote: On Nov 4, 12:58 am, Zovar peter.zavor...@gmail.com wrote: Hi Dhruva, thanks for your reply. This is exactly what I am talking about. The problem is, that this recommendation to copy mysql dll file won't

[Rails] Re: Mysql::Error: query: not connected

2009-11-04 Thread Zovar
Also, it is possible to do development in many PHP frameworks without really understanding the system you're working with. It is perhaps a bit less possible in Rails. On balance, that's probably a good thing. Is it possible to understand the system without even starting to use it? The good

[Rails] Mysql::Error: query: not connected

2009-11-03 Thread Zovar
Hi there! I am PHP developer and trying to learn ROR. Currently I am building my first Rails website (OS X Snow Leopard, TextMate) and decided to switch from sqlite to mysql. After many-many hours of searching the internet I managed to install mysql gem. Now I get this error when I try to run

[Rails] Re: Mysql::Error: query: not connected

2009-11-03 Thread Zovar
Hi Dhruva, thanks for your reply. This is exactly what I am talking about. The problem is, that this recommendation to copy mysql dll file won't work on OS X. That's why I am stuck. I followed Rails tutorials to install mysql gem and now it turns out that Rails doesn't work with it's own gem.

[Rails] Re: Mysql::Error: query: not connected

2009-11-03 Thread Zovar
Hi Fred, thanks for you reply. My database.yml: development: adapter: mysql encoding: utf8 database: dom pool: 5 username: my_username password: my_password socket: /tmp/mysql.sock (same settings both for test and production environments just for now) if I run ruby