Jenson Lu
2013-Aug-07 16:28 UTC
Getting started with rails guide: Encountering problems at Section 5.1
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.
Dheeraj Kumar
2013-Aug-09 10:38 UTC
Re: Getting started with rails guide: Encountering problems at Section 5.1
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org (mailto:rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org). > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org (mailto:rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org). > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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
2013-Aug-09 14:35 UTC
Re: Getting started with rails guide: Encountering problems at Section 5.1
On 9 August 2013 11:38, Dheeraj Kumar <a.dheeraj.kumar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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
2013-Aug-09 15:53 UTC
Re: Getting started with rails guide: Encountering problems at Section 5.1
On Aug 7, 2013, at 11:28 AM, Jenson Lu <jenson.lrj-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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.0At 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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
2013-Aug-09 16:30 UTC
Re: Getting started with rails guide: Encountering problems at Section 5.1
On Fri, Aug 9, 2013 at 10:53 AM, Tamara Temple <tamouse.lists-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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
2013-Aug-09 21:32 UTC
Re: Getting started with rails guide: Encountering problems at Section 5.1
On Aug 9, 2013, at 11:30 AM, Jordon Bedwell <envygeeks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Fri, Aug 9, 2013 at 10:53 AM, Tamara Temple <tamouse.lists-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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
2013-Aug-10 08:43 UTC
Re: Getting started with rails guide: Encountering problems at Section 5.1
On 9 August 2013 22:32, Tamara Temple <tamouse.lists-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > On Aug 9, 2013, at 11:30 AM, Jordon Bedwell <envygeeks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> On Fri, Aug 9, 2013 at 10:53 AM, Tamara Temple <tamouse.lists-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.