Windows rails problem
I just installed ruby on rails on windows.
install mysql and create a new project. Then I changed database.yml to use my own mysql server by following
development: adapter: mysql database: mytools username: test password: test
when i try to access the history controller ( http: // localhost: 3000 / stories ) the error shows
"SQLite3 :: SQLException: no such table: stories: SELECT * FROM" stories ""
Why am I getting this error? I am not using mysql ...
a source to share
By default, Rails creates and uses a SQLite database, not MySQL.
You can specify the database to use with the -d flag when building your Rails application. For example, to create a rails application called "sample" using mysql as the database:
rails sample -d mysql
Taken from the Rails Getting Started Guide .
You can also see the section Configuring the MySQL Database in the same document.
a source to share