hello,
ive just switched to a linux environment and i tried creating a project
from scratch after setting up and im getting strange results. When i try
and view my simple controllers index (which is nothing more that what
the generate script creates) it works one one access but when i refresh
it creates the error listed below with some funkyk characters.
Too check if i had everything installed ok i created a seperate project
and created a scaffold
like so ruby script/generate scaffold Story name:string link:string
and it works fine everytime. I checked the database.yml for both
projects and theres nothing different apart from the names of the
databases themselves. I also ensured i setup routes. i cant fingrue out
why its complaining. can anyone help
(im using mysql)
MySQL. Versions 4.1 and 5.0 are recommended.
Install the MySQL driver:
gem install mysql
On Mac OS X:
sudo gem install mysql – --with-mysql-dir=/usr/local/mysql
On Mac OS X Leopard:
sudo env ARCHFLAGS=“-arch i386” gem install mysql –
–with-mysql-config=/usr/local/mysql/bin/mysql_config
This sets the ARCHFLAGS environment variable to your native
architecture
On Windows:
gem install mysql
Choose the win32 build.
Install MySQL and put its /bin directory on your path.
And be sure to use new-style password hashing:
http://dev.mysql.com/doc/refman/5.0/en/old-client.html
development:
adapter: mysql
encoding: utf8
reconnect: false
database: linuxhamster_development
pool: 5
username: root
password: ******
socket: /var/run/mysqld/mysqld.sock
and the error code with interesting characters
ï£