Sunday, July 15, 2012

[Rails] Re: How can I connect to existing database

I also use Linux and Windows. My project is on Windows and the path you
gave me was correct thanks.

I deleted my file and tried again from start just to drill in the steps.
I did modifications in the below order before running into an error:


1. rails new example
2. cd example
3. rails generate controller Customer index
4. yml file
development:
adapter: sqlite3
database: db/C:\database\testdatabase.db
pool: 5
timeout: 5000
5. rake db:create
6. rails generate model Customer firstName:string middleName:string
lastName:string email:string
7. rails server

I receive the below error:

Started GET "/assets/rails.png" for 127.0.0.1 at 2012-07-15 17:25:00
-0500 Served asset /rails.png - 304 Not Modified (0ms) [2012-07-15
17:25:00] WARN Could not determine content-length of response body. Set
content-length of the response or set Response#chunked = true

My SQLite sample database consist of a (CustomerID(Text),
firstName(Text), middleName(Text), lastName(Text), email(Text))

I do not know what he error means but sounds like it does not know where
my strings end.

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate