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:



[image: 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.

Search Discussions

  • Dheeraj Kumar at Aug 9, 2013 at 10:38 am
    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:







    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 (mailto:rubyonrails-talk+unsubscribe@googlegroups.com).
    To post to this group, send email to rubyonrails-talk@googlegroups.com (mailto: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.
  • Colin Law at Aug 9, 2013 at 2:36 pm

    On 9 August 2013 11:38, Dheeraj Kumar wrote:
    Why don't you do what the error says?

    run "rake db:migrate RAILS_ENV=development"
    Though you won't normally need RAILS_ENV=development as it should
    default to that. First have a look in db/migrate and see if you have
    accidentally created a new migration.

    Colin


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







    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.
    --
    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/CAL%3D0gLvGq8mbCC5hRAfo%3DFrKO1swHd8UgaPaKt%3Do%2BHag%3D82OUg%40mail.gmail.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Tamara Temple at Aug 9, 2013 at 3:53 pm

    On Aug 7, 2013, at 11:28 AM, 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:
    How should I go resolve this issue?

    I'm currently using ruby 2.0.0 and Rails 4.0.0
    At this stage of the game, it's hard to hear "yer doin it rong" but something did go wrong. You should not have received that message if you were following the getting started tutorial from the beginning. If you were doing other things, you may have created a migration which the system is complaining about. My suggestion at this point is to start the Getting Started tutorial from scratch with a brand new rails app in a brand new directory.


    --
    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/4661BD2F-3232-43A2-953F-3D92566B1E7E%40gmail.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Jordon Bedwell at Aug 9, 2013 at 4:30 pm

    On Fri, Aug 9, 2013 at 10:53 AM, Tamara Temple wrote:
    At this stage of the game, it's hard to hear "yer doin it rong" but something did go wrong. You should not have received that message if you were following the getting started tutorial from the beginning. If you were doing other things, you may have created a migration which the system is complaining about. My suggestion at this point is to start the Getting Started tutorial from scratch with a brand new rails app in a brand new directory.
    WAT? Why would you start over when you could just rake db:migrate?
    It's quite easy to miss that when it tells you to run it, and missing
    it is a far better in how to correctly build migrations than being
    told to do it, because now you've learned the hard way to always
    migrate. I find it ignorant that anybody would tell somebody to start
    over again rather than tell them how they broke it and to fix it and
    the simple solution is: "You forgot to run a migration like they told
    you to, lesson: run `rake db:migrate` after every migration.

    --
    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/CAM5XQnxo8e0g7rV7rc7M2dg7nDnhZOn%2BMBNOb6Zf5bi5p%3DE_yA%40mail.gmail.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Tamara Temple at Aug 9, 2013 at 9:32 pm

    On Aug 9, 2013, at 11:30 AM, Jordon Bedwell wrote:
    On Fri, Aug 9, 2013 at 10:53 AM, Tamara Temple wrote:
    At this stage of the game, it's hard to hear "yer doin it rong" but something did go wrong. You should not have received that message if you were following the getting started tutorial from the beginning. If you were doing other things, you may have created a migration which the system is complaining about. My suggestion at this point is to start the Getting Started tutorial from scratch with a brand new rails app in a brand new directory.
    WAT? Why would you start over when you could just rake db:migrate?
    It's quite easy to miss that when it tells you to run it, and missing
    it is a far better in how to correctly build migrations than being
    told to do it, because now you've learned the hard way to always
    migrate. I find it ignorant that anybody would tell somebody to start
    over again rather than tell them how they broke it and to fix it and
    the simple solution is: "You forgot to run a migration like they told
    you to, lesson: run `rake db:migrate` after every migration.
    Up to that point in the tutorial, there should not have been any migrations created.

    --
    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/98AC5744-B7B1-45CF-80CD-9069C22E81A8%40gmail.com?hl=en-US.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Colin Law at Aug 10, 2013 at 8:44 am

    On 9 August 2013 22:32, Tamara Temple wrote:
    On Aug 9, 2013, at 11:30 AM, Jordon Bedwell wrote:
    On Fri, Aug 9, 2013 at 10:53 AM, Tamara Temple wrote:
    At this stage of the game, it's hard to hear "yer doin it rong" but something did go wrong. You should not have received that message if you were following the getting started tutorial from the beginning. If you were doing other things, you may have created a migration which the system is complaining about. My suggestion at this point is to start the Getting Started tutorial from scratch with a brand new rails app in a brand new directory.
    WAT? Why would you start over when you could just rake db:migrate?
    It's quite easy to miss that when it tells you to run it, and missing
    it is a far better in how to correctly build migrations than being
    told to do it, because now you've learned the hard way to always
    migrate. I find it ignorant that anybody would tell somebody to start
    over again rather than tell them how they broke it and to fix it and
    the simple solution is: "You forgot to run a migration like they told
    you to, lesson: run `rake db:migrate` after every migration.
    Up to that point in the tutorial, there should not have been any migrations created.
    Its all a bit irrelevant anyway since the OP has shown no further
    interest. Perhaps he worked out what he was doing wrong and is too
    embarrassed to reply.

    Colin

    --
    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/CAL%3D0gLtZOc2Vhqdx3_e%2B5WpD7TPrud0dLoi%2B%2B8dmsaJSc4X3zg%40mail.gmail.com?hl=en-US.
    For more options, visit https://groups.google.com/groups/opt_out.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedAug 9, '13 at 10:34a
activeAug 10, '13 at 8:44a
posts7
users5
websiterubyonrails.org
irc#RubyOnRails

People

Translate

site design / logo © 2021 Grokbase