i think i had a similar problem. if you are using sqlite3 on your system then you'll want to use the sqlite3 adapter, not the sqlite adapter.<br><br>give that a shot and see if it does anything. I could be way off base.<br>
<br><div><span class="gmail_quote">On 3/31/06, <b class="gmail_sendername">Bolo Michelin</b> <<a href="mailto:malavoi@gmail.com">malavoi@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello All,<br><br>Yesterday i put RoR with Locomotive. I am very happy :p.<br>So I follow this tuto<br>(<a href="http://developer.apple.com/tools/rubyonrails.html">http://developer.apple.com/tools/rubyonrails.html</a>). I used Sqlite.
<br><br>my database.yml<br># MySQL (default setup). Versions 4.1 and 5.0 are recommended.<br>#<br># Get the fast C bindings:<br># gem install mysql<br># (on OS X: gem install mysql -- --include=/usr/local/lib)<br># And be sure to use new-style password hashing:
<br># <a href="http://dev.mysql.com/doc/refman/5.0/en/old-client.html">http://dev.mysql.com/doc/refman/5.0/en/old-client.html</a><br>development:<br> adapter: sqlite<br> dbfile: db/expense_developement<br><br> # Connect on a TCP socket. If omitted, the adapter will connect on the
<br> # domain socket given by socket instead.<br> #host: localhost<br> #port: 3306<br><br># Warning: The database defined as 'test' will be erased and<br># re-generated from your development database when you run 'rake'.
<br># Do not set this db to the same as development or production.<br>test:<br> adapter: mysql<br> database: expenses_test<br> username: root<br> password:<br> socket: /tmp/mysql.sock<br><br>production:<br> adapter: mysql
<br> database: expenses_production<br> username: root<br> password:<br> socket: /tmp/mysql.sock<br><br><br># PostgreSQL versions 7.4 - 8.1<br>#<br># Get the C bindings:<br># gem install postgres<br># or use the pure-Ruby bindings on Windows:
<br># gem install postgres-pr<br>postgresql_example:<br> adapter: postgresql<br> database: expenses_development<br> username: expenses<br> password:<br><br> # Connect on a TCP socket. Omitted by default since the client uses a
<br> # domain socket that doesn't need configuration.<br> #host: remote-database<br> #port: 5432<br><br> # Schema search path. The server defaults to $user,public<br> #schema_search_path: myapp,sharedapp,public<br><br>
# Character set encoding. The server defaults to sql_ascii.<br> #encoding: UTF8<br><br> # Minimum log levels, in increasing order:<br> # debug5, debug4, debug3, debug2, debug1,<br> # info, notice, warning, error, log, fatal, or panic
<br> # The server defaults to notice.<br> #min_messages: warning<br><br><br># SQLite version 2.x<br># gem install sqlite-ruby<br>sqlite_example:<br> adapter: sqlite<br> database: db/development.sqlite2<br><br><br># SQLite version
3.x<br># gem install sqlite3-ruby<br>sqlite3_example:<br> adapter: sqlite3<br> database: db/development.sqlite3<br><br><br># In-memory SQLite 3 database. Useful for tests.<br>sqlite3_in_memory_example:<br> adapter: sqlite3
<br> database: ":memory:"<br><br>When i tabe this line in Terminal<br>$ script/generate Model Expense<br><br>I show only that<br> exists app/models/<br> exists test/unit/<br> exists test/fixtures/
<br> create app/models/expense.rb<br> create test/unit/expense_test.rb<br> create test/fixtures/expenses.yml<br><br>i didn't see this commands<br>create db/migrate<br>create db/migrate/001_create_expenses.rb
<br><br>I don't have this folder and this file<br><br><br>Thanks<br><br>Bolo<br>_______________________________________________<br>Rails mailing list<br><a href="mailto:Rails@lists.rubyonrails.org">Rails@lists.rubyonrails.org
</a><br><a href="http://lists.rubyonrails.org/mailman/listinfo/rails">http://lists.rubyonrails.org/mailman/listinfo/rails</a><br></blockquote></div><br>