[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

fireruby problem while connecting to database

Franz Bettag

3/10/2006 3:12:00 AM

Hi there,

i got a small problem when connecting to my firebird database:

config/database.yml:
29 myfirebird:
30 adapter: firebird
31 database: /var/firebird/database.gdb
32 username: SYSDBA
33 password: masterkey
34 host: my.server


app/models/customer.rb:
1 class Customer < ActiveRecord::Base
2 Customer.establish_connection 'myfirebird'
3 # def self.table_name() 'kunden' end
4 end


strangly my controller gives me:
wrong number of arguments (1 for 0)
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/firebird_adapter.rb:15:in
`initialize'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/firebird_adapter.rb:15:in
`new_from_params'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/firebird_adapter.rb:35:in
`firebird_connection'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:145:in
`connection_without_query_cache='
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/query_cache.rb:54:in
`connection='
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:106:in
`retrieve_connection'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:20:in
`connection'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:931:in
`add_limit!'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:924:in
`construct_finder_sql'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:395:in
`find'
../script/../config/../app/controllers/dns_domain_controller.rb:15:in `list'
../script/../config/../app/controllers/dns_domain_controller.rb:4:in `index'

Dont' wonder because it is dns_domain_controller.rb, in there i do a
@customers = Customer.find :all
so it is initated from there :)

any solutions? :) thanks!

--


Mit freundlichen Grüßen

Franz Bettag

____________________________
QS Housing
Franz Bettag
Ludwigstr. 45-47
90402 Nürnberg
http://www.qs-h...

Tel: +49 1805 737376 664
Fax: +49 1805 737376 665
19 Answers

Carolina Reb

12/4/2013 4:06:00 AM

0

"The Revd" wrote in message
news:jt4t995arusi10sn8jeu6kuif4os721m46@4ax.com...


>Legal representation? Lawyers??
>In Eye-ran??? For three convicted
>faggots??????? You cannot be serious!
>All you need is a fucking
>crane!
>
>
>


Agreed. The Bull would be far better!


*


The Peeler

12/4/2013 10:49:00 AM

0

On Tue, 3 Dec 2013 23:05:31 -0500, "All Bark & No Bite", aka Humpin
Humpton, aka Caroloony Reb, the subnormal moron and attested schizo from
the States, wrote:

>>Legal representation? Lawyers??
>>In Eye-ran??? For three convicted
>>faggots??????? You cannot be serious!
>>All you need is a fucking
>>crane!
>>
>>
>>
>
> Agreed. The Bull would be far better!
>
> *

Humpin Hampton, YOU need this kind of bull!
http://mojca.photovillage.org/photos/1549/horn...

--
Schizoboy Caroloony: "bin Laden, a CIA operative, died of kidney failure
in December of 2001."
MID: <edc530cd-5c7b-46ee-be5d-486df6594d42Schizoboy's old trauma:
http://farm3.staticflickr.com/2525/3846387344_5b59f8...

Carolina Reb

12/4/2013 6:30:00 PM

0

On Wednesday, December 4, 2013 5:49:04 AM UTC-5, The Peeler wrote:
>
>
>
> *ROTFLOL*!!!
>
>

http://www.micetrap.net/vinyl/ethniccleansingpileofde...


http://library.thinkquest.org/13915/media/...


http://voiceseducation.org/conte...



*

The Peeler

12/4/2013 6:54:00 PM

0

On Wed, 4 Dec 2013 10:30:07 -0800 (PST), "All Bark & No Bite", aka Humpin
Humpton, aka Caroloony Reb, the subnormal moron and attested schizo from
the States, wrote:

> On Wednesday, December 4, 2013 5:49:04 AM UTC-5, The Peeler wrote:
>>
>> *ROTFLOL*!!!
>>
>>
>
> http://www.micetrap.net/vinyl/ethniccleansingpileofde...
>
> http://library.thinkquest.org/13915/media/...
>
> http://voiceseducation.org/conte...
>
> *

Humpin Hampton all dressed up:
http://rsamadrid.files.wordpress.com/2010/07/hitl...

--
Schizoboy Caroloony: "bin Laden, a CIA operative, died of kidney failure
in December of 2001."
MID: <edc530cd-5c7b-46ee-be5d-486df6594d42Schizoboy's old trauma:
http://farm3.staticflickr.com/2525/3846387344_5b59f8...

Carolina Reb

12/4/2013 8:42:00 PM

0

On Wednesday, December 4, 2013 1:53:33 PM UTC-5, The Peeler wrote:
>
>
> >>
>
> >> *ROTFLOL*!!!
>
>

http://endzog.files.wordpress.com/2013/11/r_photo3.jpg?w=510...

The Peeler

12/4/2013 8:51:00 PM

0

On Wed, 4 Dec 2013 12:42:12 -0800 (PST), "All Bark & No Bite", aka Humpin
Humpton, aka Caroloony Reb, the subnormal moron and attested schizo from
the States, wrote:

>>>> *ROTFLOL*!!!
>>
>
> http://endzog.files.wordpress.com/2013/11/r_photo3.jpg?w=510...

Humpin Hampton greets all the gay Nazis out there:

http://rsamadrid.files.wordpress.com/2010/07/hitl...

--
someone-who-knows about our resident schizo:
"And once again, the impotent, inferior, senile moron
opens his big toothless mouth, and that horrible stench
of excrement befouls the air..."
MID: <k221gp$uib$1@pcls6.std.com>

CUNTICA

12/5/2013 8:59:00 AM

0

Kiss me, Waldo, kiss me .............


















































































Kiss me ass!

Carolina Reb

12/5/2013 9:30:00 AM

0

On Thursday, December 5, 2013 3:58:33 AM UTC-5, brianla...@yahoo.com wrote:
> Kiss me, Waldo, kiss me .............
>
>
>


http://hentaifurry.net/free/29/gallery3/...

The Peeler

12/5/2013 11:19:00 AM

0

On Thu, 5 Dec 2013 01:29:52 -0800 (PST), "All Bark & No Bite", aka Humpin
Humpton, aka Caroloony Reb, the subnormal moron and attested schizo from
the States, wrote:

>>
>
> http://hentaifurry.net/free/29/gallery3/...

Here's more jerk-off material for you, Humpin Hampton:

http://postimg.org/image/...

http://postimg.org/image/...

--
someone-who-knows about our resident schizo:
"And once again, the impotent, inferior, senile moron
opens his big toothless mouth, and that horrible stench
of excrement befouls the air..."
MID: <k221gp$uib$1@pcls6.std.com>

Carolina Reb

12/30/2013 4:44:00 AM

0

wrote in message
news:8cdf38f7-6be4-48db-a34e-9f5e1324aff2@googlegroups.com...

>Hey,
>
>
>

...is for Yid pervs like you, Lambsky:

Take a bow Mr. & Mrs. America! While you were busy
chasing dollars, shopping, watching racy TV shows
& movies, and worshiping your hometown sports teams,
the Marxist Zionist media stole your kids right
from under your nose. Have a look at the
abominations below. Keep in mind, that in
each case, your kids, the future voters of
America, gleefully ELECTED these attention-
seeking freaks to be their "Kings & Queens".

http://www.tomatobubble.com/...


"Only one solution...the Brazen Bull!"



*