Forum: Ruby on Rails Problem with rake db:populate on chapter 10.3.2

4f7966e6ef38383a72cb23208866144b?d=identicon&s=25 Ben Pines (Guest)
on 2013-08-12 08:04
(Received via mailing list)
Hi. I am having problems populating my db.

I created a sample_data.rake file/

When I run rake db:populate it shows exactly what it should show- no
errors. But when I go to localhost and try to login the db has not been
populated.
5f94b9b346c2aa648a80bc259978e5bc?d=identicon&s=25 Colin Law (Guest)
on 2013-08-12 09:33
(Received via mailing list)
On 11 August 2013 05:17, Ben Pines <bpines@gmail.com> wrote:
> Hi. I am having problems populating my db.
>
> I created a sample_data.rake file/
>
> When I run rake db:populate it shows exactly what it should show- no errors.
> But when I go to localhost and try to login the db has not been populated.

Are you sure you are populating the same database that you are using
at run time?  Use mysql (or whatever db you are using) command line or
other utility to check whether the db has the correct data.

Colin
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.