chromaticsites-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2008-Apr-15 06:21 UTC
ActiveRecord::StatementInvalid in BlogController#index
Hello. I''m trying to do the video tutorial "how to build a blog engine in 15 minutes with ruby on rails" from the main rubyonrails website, and I''m getting an error when I try to use scaffold :post after editing my config file for the mysql database. Here is the exact error I''m getting: ActiveRecord::StatementInvalid in BlogController#index ActiveRecord::StatementInvalid RAILS_ROOT: ./script/../config/.. Application Trace | Framework Trace | Full Trace Request Parameters: None Show session dump Response Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"} If anyone can help me I would greatly appreciate it. I''m really stumped here. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Julian Leviston
2008-Apr-15 06:47 UTC
Re: ActiveRecord::StatementInvalid in BlogController#index
Heya That video is REALLY out of date, so it won''t work - it''s a pre- release version of Rails that was being used. Try out some of my videos... they''re free (for a limited time) ;-) See below! Julian. Learn Ruby on Rails! Check out the FREE VIDS (for a limited time) VIDEO #4 coming soon! http://sensei.zenunit.com/ On 15/04/2008, at 4:21 PM, chromaticsites-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:> > Hello. I''m trying to do the video tutorial "how to build a blog engine > in 15 minutes with ruby on rails" from the main rubyonrails website, > and I''m getting an error when I try to use scaffold :post after > editing my config file for the mysql database. > > Here is the exact error I''m getting: > > ActiveRecord::StatementInvalid in BlogController#index > > ActiveRecord::StatementInvalid > RAILS_ROOT: ./script/../config/.. > > Application Trace | Framework Trace | Full Trace > Request > > Parameters: None > > Show session dump > > Response > > Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"} > > If anyone can help me I would greatly appreciate it. I''m really > stumped here. > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Frederick Cheung
2008-Apr-15 07:10 UTC
Re: ActiveRecord::StatementInvalid in BlogController#index
On Apr 15, 7:47 am, Julian Leviston <jul...-AfxEtdRqmE/tt0EhB6fy4g@public.gmane.org> wrote:> Heya > > That video is REALLY out of date, so it won''t work - it''s a pre- > release version of Rails that was being used. > > Try out some of my videos... they''re free (for a limited time) ;-) >Although according to the first video you''re using rails 1.2.4, so hardly latest and greatest. Fred> See below! > > Julian. > > Learn Ruby on Rails! Check out the FREE VIDS (for a limited time) > VIDEO #4 coming soon!http://sensei.zenunit.com/ > > On 15/04/2008, at 4:21 PM, chromaticsi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote: > > > > > Hello. I''m trying to do the video tutorial "how to build a blog engine > > in 15 minutes with ruby on rails" from the main rubyonrails website, > > and I''m getting an error when I try to use scaffold :post after > > editing my config file for the mysql database. > > > Here is the exact error I''m getting: > > > ActiveRecord::StatementInvalid in BlogController#index > > > ActiveRecord::StatementInvalid > > RAILS_ROOT: ./script/../config/.. > > > Application Trace | Framework Trace | Full Trace > > Request > > > Parameters: None > > > Show session dump > > > Response > > > Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"} > > > If anyone can help me I would greatly appreciate it. I''m really > > stumped here.--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org 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 -~----------~----~----~----~------~----~------~--~---
dogdayafternoon
2008-Apr-15 14:51 UTC
Re: ActiveRecord::StatementInvalid in BlogController#index
Unfortunately, neither of these responses helped me or had anything to do with my question. Can anyone else be so kind as to give me a hint, I''m stuck here. On Apr 15, 2:10 am, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Apr 15, 7:47 am, Julian Leviston <jul...-AfxEtdRqmE/tt0EhB6fy4g@public.gmane.org> wrote:> Heya > > > That video is REALLY out of date, so it won''t work - it''s a pre- > > release version of Rails that was being used. > > > Try out some of my videos... they''re free (for a limited time) ;-) > > Although according to the first video you''re using rails 1.2.4, so > hardly latest and greatest. > > Fred > > > See below! > > > Julian. > > > Learn Ruby on Rails! Check out the FREE VIDS (for a limited time) > > VIDEO #4 coming soon!http://sensei.zenunit.com/ > > > On 15/04/2008, at 4:21 PM, chromaticsi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote: > > > > Hello. I''m trying to do the video tutorial "how to build a blog engine > > > in 15 minutes with ruby on rails" from the main rubyonrails website, > > > and I''m getting an error when I try to use scaffold :post after > > > editing my config file for the mysql database. > > > > Here is the exact error I''m getting: > > > > ActiveRecord::StatementInvalid in BlogController#index > > > > ActiveRecord::StatementInvalid > > > RAILS_ROOT: ./script/../config/.. > > > > Application Trace | Framework Trace | Full Trace > > > Request > > > > Parameters: None > > > > Show session dump > > > > Response > > > > Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"} > > > > If anyone can help me I would greatly appreciate it. I''m really > > > stumped here.--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Frederick Cheung
2008-Apr-15 15:00 UTC
Re: ActiveRecord::StatementInvalid in BlogController#index
On 15 Apr 2008, at 15:51, dogdayafternoon wrote:> > Unfortunately, neither of these responses helped me or had anything to > do with my question. > > Can anyone else be so kind as to give me a hint, I''m stuck here. >You need to tell us more. there should be more to the error in the logs (in particular what is the sql statement that was invalid). Fred> On Apr 15, 2:10 am, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: >> On Apr 15, 7:47 am, Julian Leviston <jul...-AfxEtdRqmE/tt0EhB6fy4g@public.gmane.org> >> wrote:> Heya >> >>> That video is REALLY out of date, so it won''t work - it''s a pre- >>> release version of Rails that was being used. >> >>> Try out some of my videos... they''re free (for a limited time) ;-) >> >> Although according to the first video you''re using rails 1.2.4, so >> hardly latest and greatest. >> >> Fred >> >>> See below! >> >>> Julian. >> >>> Learn Ruby on Rails! Check out the FREE VIDS (for a limited time) >>> VIDEO #4 coming soon!http://sensei.zenunit.com/ >> >>> On 15/04/2008, at 4:21 PM, chromaticsi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote: >> >>>> Hello. I''m trying to do the video tutorial "how to build a blog >>>> engine >>>> in 15 minutes with ruby on rails" from the main rubyonrails >>>> website, >>>> and I''m getting an error when I try to use scaffold :post after >>>> editing my config file for the mysql database. >> >>>> Here is the exact error I''m getting: >> >>>> ActiveRecord::StatementInvalid in BlogController#index >> >>>> ActiveRecord::StatementInvalid >>>> RAILS_ROOT: ./script/../config/.. >> >>>> Application Trace | Framework Trace | Full Trace >>>> Request >> >>>> Parameters: None >> >>>> Show session dump >> >>>> Response >> >>>> Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"} >> >>>> If anyone can help me I would greatly appreciate it. I''m really >>>> stumped here. > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---