Hi, I''m trying to migrate to sqlite3 and I get this error: syntax error, unexpected ''\n'', expecting tCOLON2 or ''['' or ''.'' I''m running OS X 10.5 on an Intel mac. I''ve installed the sqlite gem. I''m not sure what''s going on here. Any ideas? Thanks, Ron --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Can you post the code that is throwing the problem? Hard to diagnose this without it :) - Derek On Jun 2, 10:54 pm, Ron <stecklyena...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > I''m trying to migrate to sqlite3 and I get this error: > > syntax error, unexpected ''\n'', expecting tCOLON2 or ''['' or ''.'' > > I''m running OS X 10.5 on an Intel mac. I''ve installed the sqlite > gem. I''m not sure what''s going on here. Any ideas? > > Thanks, > > Ron--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Tue, Jun 3, 2008 at 7:54 AM, Ron <stecklyenator-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Hi, > > I''m trying to migrate to sqlite3 and I get this error: > > syntax error, unexpected ''\n'', expecting tCOLON2 or ''['' or ''.'' > > I''m running OS X 10.5 on an Intel mac. I''ve installed the sqlite > gem. I''m not sure what''s going on here. Any ideas?Is there more context? Like a file and line number where that happens? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi sorry, The code causing the problem is the auto generated migration from the generate scaffold command in Rails 2.1.0. On Jun 2, 11:06 pm, "Derek P." <de...-88kYAtoe8eYTx9n+QjaLhg@public.gmane.org> wrote:> Can you post the code that is throwing the problem? Hard to diagnose > this without it :) > > - Derek > > On Jun 2, 10:54 pm, Ron <stecklyena...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Hi, > > > I''m trying to migrate to sqlite3 and I get this error: > > > syntax error, unexpected ''\n'', expecting tCOLON2 or ''['' or ''.'' > > > I''m running OS X 10.5 on an Intel mac. I''ve installed the sqlite > > gem. I''m not sure what''s going on here. Any ideas? > > > Thanks, > > > Ron--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I had the same problem. It was a problem with scaffold- The scaffold was creating in the migration file statements of the form: t.string, :title which should be t.string :title The developers have probably fixed it by now. This is just fyi for other people encountering this problem. Cheers --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Gladwright wrote in post #709136:> I had the same problem. It was a problem with scaffold- > > The scaffold was creating in the migration file statements of the > form: > > t.string, :title > > which should be > > t.string :title > > The developers have probably fixed it by now. This is just fyi for > other people encountering this problem. > > CheersThis isn''t a bug--it''s an operator error. If you are thinking Ruby instead of shell, you might end up doing this at the command line: rails generate scaffold User name:string, email:string instead of this: rails generate scaffold User name:string email:string The comma gets incorporated into the migration, and the migration bombs because of it. -- Posted via http://www.ruby-forum.com/. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.