Ruby on Rails Friday, August 9, 2013

Why don't you do what the error says?

run "rake db:migrate RAILS_ENV=development"

-- 
Dheeraj Kumar

On Wednesday 7 August 2013 at 9:58 PM, Jenson Lu wrote:

Hi people,

I need some help here. I'm new to ROR, and is following the guideline on "Getting started with rails". The inputs have been accurate and are running well until section:

"5.1 Laying down the ground word"

While navigating to http://localhost:3000/posts/new  the error message display were:




ActiveRecord::PendingMigrationError

Migrations are pending; run 'rake db:migrate RAILS_ENV=development' to resolve this issue.

 





instead of what was suggested in the guide which is suppose to be:



Another routing error, uninitialized constant PostsController



How should I go resolve this issue? 

I'm currently using ruby 2.0.0 and Rails 4.0.0

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/f0ac2345-380b-4471-8c51-1193060f531b%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/B863061C9BD74218BBCDAC03727B20F1%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment