RubyNewbie
2008-Jun-15 18:20 UTC
Help please on Ruby on Rails Migrations: "rake aborted! undefined local variable or method name ''ss'' in main:object
Environment: Windows Vista, running Ruby 1.8.6 on Rails 2.1, MySql 5.0/ PostGreSql 8.3.1 I''m enjoying going through a ruby on rails example and learning the power of ruby and rails. I''m in need of help. The migrations script is simply trying to create a new Users table with 3 columns. The erorr I get perpetually is "Rake aborted! Undefined local variable or method name ''ss'' in main:object. I can''t find any hits on the web with this error. I''ve tried changing databases, reinstalling, restarting db, web server, etc.. rebooting but to no avail. The strange thing is that the script does seem to be able to create the rails system''s "schema_info" table with a single record with a single column with a value of ZERO to indicate that the db is at version=0. Please advise? --~--~---------~--~----~------------~-------~--~----~ 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-Jun-15 19:02 UTC
Re: Help please on Ruby on Rails Migrations: "rake aborted! undefined local variable or method name ''ss'' in main:object
On 15 Jun 2008, at 19:20, RubyNewbie wrote:> > Environment: Windows Vista, running Ruby 1.8.6 on Rails 2.1, MySql > 5.0/ > PostGreSql 8.3.1 > > I''m enjoying going through a ruby on rails example and learning the > power of ruby and rails. I''m in need of help. The migrations script > is simply trying to create a new Users table with 3 columns. TheObvious question: what''s in your migration ? Fred> > erorr I get perpetually is "Rake aborted! Undefined local variable or > method name ''ss'' in main:object. I can''t find any hits on the web > with this error. I''ve tried changing databases, reinstalling, > restarting db, web server, etc.. rebooting but to no avail. The > strange thing is that the script does seem to be able to create the > rails system''s "schema_info" table with a single record with a single > column with a value of ZERO to indicate that the db is at version=0. > Please advise? > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
RubyNewbie
2008-Jun-16 00:07 UTC
Re: Help please on Ruby on Rails Migrations: "rake aborted! undefined local variable or method name ''ss'' in main:object
It turns out this was operator error on my part. I had some stray text (''ss'') at the bottom of the script that was not viewable in my IDE sized window. until I went and did a copy all/paste into the draft of my reply to you. Sorry for the silly post. Though this has taught me to be very vigilant about looking for all typographical errors in this dynamic language. I''m from a C/C++/C# background and will be learning new things for a long time. Question: is it possible to ask the Aptana IDE or any other compiler to compile your ruby project or program and report any syntactical errors? On Jun 15, 12:02 pm, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 15 Jun 2008, at 19:20, RubyNewbie wrote: > > > > > Environment: Windows Vista, running Ruby 1.8.6 on Rails 2.1, MySql > > 5.0/ > > PostGreSql 8.3.1 > > > I''m enjoying going through a ruby on rails example and learning the > > power of ruby and rails. I''m in need of help. The migrations script > > is simply trying to create a new Users table with 3 columns. The > > Obvious question: what''s in your migration ? > > Fred > > > > > > > erorr I get perpetually is "Rake aborted! Undefined local variable or > > method name ''ss'' in main:object. I can''t find any hits on the web > > with this error. I''ve tried changing databases, reinstalling, > > restarting db, web server, etc.. rebooting but to no avail. The > > strange thing is that the script does seem to be able to create the > > rails system''s "schema_info" table with a single record with a single > > column with a value of ZERO to indicate that the db is at version=0. > > Please advise?- Hide quoted text - > > - Show quoted text ---~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---