Tuesday, May 29, 2012

Re: [Rails] no record or else error:disk image is malformed

On 29 May 2012 21:16, Prajwal B. <lists@ruby-forum.com> wrote:
> i have database file name tel-directory.sqlite and its text file in db
> folder so i went to config/database.yaml changed it to

The config file is .yml not .yaml

> db/tel-directory.sqlite in development then create a model
> telephone_records skipping migration then i configured controller and
> its view but i get something no table found telephone_records i used
> sqlite manager i get records tough when i go and check tel-directory
> file.sqlite with 0kb is created what is going wrong i am not getting it.
> so i decided to copy th contents from old datbase to new datbase file it
> display disk image is malformed can you suggest me what are changes i
> must do to display all the record in the browser.
>
>        development:
>        adapter: sqlite3
>        database: db/tel-directory.sqlite3

That says .sqlite3, you say above that it is actually .sqlite

Colin

--
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.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate