3 ms·
That is it, I had not heard of Ruby until I started seeing a lot of postings about Ruby on Rails. I never got past the part where you have to make a configura
by gscott 19y ago
That is it, I had not heard of Ruby until I started seeing a lot of postings about Ruby on Rails.
I never got past the part where you have to make a configuration file or something to generate the code for your page. That just seems to me a bad idea. I realize now that is just the RoR part to make getting into Ruby easier.
- palish 19y agoYou probably know this already, but I'd like to clarify for future readers: The one configuration file you have to set up when you first start a Rails project is database.yml. It tells Rails how to talk to your database. There are two fields for you to fill in, "database" and "password". The rest of the fields are filled in automatically. Here's an example database.yml file. Notice that it has three environments (development, production, and test), and that different databases are used for each. If you're developing your application, you're using yourapp_dev. Rails uses yourapp_test during unit testing: common: &common adapter: mysql host: localhost username: root password: somepassword development: database: yourapp_dev <<: *common production: database: yourapp_prod <<: *common test: database: yourapp_test <<: *common