I load the fireruby, copy the fbclient.dll for C:\Windows\System32, I placed in aliases.conf the path for arquive .fdb "testefb localhost:C:\Teste\DADOS.FDB" and configure de database.yml: 1. development: 2. adapter: firebird 3. database: testefb 4. username: sysdba 5. password: masterkey 6. host: localhost 7. 8. test: 9. development 10. 11. production: 12. development I create a migrate: 1. def self.up 2. create_table :usuario do |t| 3. t.column :nome, :string, :limit => 30 4. t.column :email, :string 5. t.column :cript_senha, :string, :null => false 6. t.column :nivel, :integer 7. end 8. end And when execute the rake migrate, appear the following error: rake aborted! Error opening database connection. I/O error for file "testefb" Error while trying to open file O sistema no pode encontrar o arquivo especificado. Unsuccessful execution caused by a system error that precludes successful execution of subsequent statements SQL Code = -902 Firebird Code = 335544344 What I am making a mistake, therefore I tried im my notebook, and on micro here of work, and both appear the exactly error. ps.: In aliases.conf I am making to place the path without the localhost, but appear the following error: rake aborted! You have a nil object when you didn''t expect it! You might have expected an instance of Array. The error occured while evaluating nil.[] -- 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-/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 -~----------~----~----~----~------~----~------~--~---
help. -- 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-/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 -~----------~----~----~----~------~----~------~--~---
I have no experience with Firebird, but it looks like you're running it in "classic" mode (or that may be what the binding is configured for) and it wants a database FILE rather than a database CONNECTION. I suggest reading up on the docs for the binding you're using: http://fireruby.rubyforge.org/ --Jeremy On 1/2/07, Marcelo Junior <rails-mailing-list@andreas-s.net> wrote:> > I load the fireruby, copy the fbclient.dll for C:\Windows\System32, I > placed in aliases.conf the path for arquive .fdb "testefb > localhost:C:\Teste\DADOS.FDB" and configure de database.yml: > > 1. development: > 2. adapter: firebird > 3. database: testefb > 4. username: sysdba > 5. password: masterkey > 6. host: localhost > 7. > 8. test: > 9. development > 10. > 11. production: > 12. development > > I create a migrate: > > 1. def self.up > 2. create_table :usuario do |t| > 3. t.column :nome, :string, :limit => 30 > 4. t.column :email, :string > 5. t.column :cript_senha, :string, :null => false > 6. t.column :nivel, :integer > 7. end > 8. end > > And when execute the rake migrate, appear the following error: > > rake aborted! > Error opening database connection. > I/O error for file "testefb" > Error while trying to open file > O sistema n o pode encontrar o arquivo especificado. > > Unsuccessful execution caused by a system error that precludes > successful execution of subsequent statements > SQL Code = -902 > Firebird Code = 335544344 > > > What I am making a mistake, therefore I tried im my notebook, and on > micro here of work, and both appear the exactly error. > > ps.: In aliases.conf I am making to place the path without the > localhost, but appear the following error: > > rake aborted! > You have a nil object when you didn't expect it! > You might have expected an instance of Array. > The error occured while evaluating nil.[] > > -- > Posted via http://www.ruby-forum.com/. > > > >-- My free Ruby e-book: http://www.humblelittlerubybook.com/book/ My blogs: http://www.mrneighborly.com/ http://www.rubyinpractice.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@googlegroups.com 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 am running in classic, but I tested with super server and also not executed de rake migrate, appear the exctly message. -- 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-/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 -~----------~----~----~----~------~----~------~--~---
up -- 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-/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 -~----------~----~----~----~------~----~------~--~---