Posts Tagged ‘ruby’
DRier database.yml
When we create a new Rails project a database.yml is created for us, and it looks like this one:
development:
adapter: mysql
encoding: utf8
database: project_development
username: root
password: password
socket: /var/run/mysqld/mysqld.sock
test:
adapter: mysql
encoding: utf8
database: project_test
username: root
password: password
socket: /var/run/mysqld/mysqld.sock
production:
[...]
Filed under: Ruby on Rails | Leave a Comment
Tags: dry, rails, ruby, rubyonrails, yml
DRier database.yml
Ao criar um novo projeto rails é criado juntamente com o projeto um arquivo database.yml parecido com este:
development:
adapter: mysql
encoding: utf8
database: project_development
username: root
password: password
socket: /var/run/mysqld/mysqld.sock
test:
adapter: mysql
encoding: utf8
database: project_test
username: root
password: password
socket: /var/run/mysqld/mysqld.sock
production:
[...]
Filed under: Ruby on Rails | Leave a Comment
Tags: dry, rails, ruby, rubyonrails, yml
Rubygems execution error
When I am trying to use rubygems on Ubuntu 7.10 I took this error:
“rubygems/custom_require.rb:27:in `gem_original_require’:
no such file to load — sources (LoadError)”
This error occurs when GEM_HOME system variable is unset. To solve that first check your gems directory:
# locale will find occurrences of gems on the system
# look for the one that points to gems [...]
Filed under: errors | Leave a Comment
Tags: gems, rails, ruby, rubygems, rubyonrails