Ideias e pensamentos sobre este mundinho e algo mais …

Rails - I

July 23rd, 2007 Posted in Uncategorized

Quando tiverem este erro:

error Before updating scaffolding from new DB schema, try creating a table for your model (tabela)

Vejam lá se tem a tabela no plural, se não lá vão ter de editar o config/envoriment.rb e colocar:

ActiveRecord::Base.pluralize_table_names = falsesocket:

Se estiverem a usar o MySQl do XAMPP ou algum outro package, e se o o Rails disserm que não consegue aceder ao socket, é só editar o config/database.yml e colocar o caminho para o socket (ex: para xampp no OS X)

development:
adapter: mysql
database: (base de dados)_development
username: root
password:
host: localhost
socket: /Applications/xampp/xamppfiles/var/mysql/mysql.sock

Srs e Sras por hoje é tudo.

Sorry, comments for this entry are closed at this time.