Hello, this is my first message to the list. I''m new to ruby and rails, but I''ve been developing in php for years. One of the "issues" I''ve encountered through my php developer history, is that sometimes a one-to-many or a many-to-many relationship can''t be shown as a select or checkbox respectively. This is because the options can be a lot, and this decreases the application usability. Is there any implementation in rails, to make some kind of *ajax search boxes*replacement to the html selects? To replace the checkboxes of a many to many case, I don''t know which could be the solution. Thanks, Rodrigo.
When using Apache 2.0.54 + FastCGI + Rail 0.13.1 on Windows 2003 w/ MySQL 4.1.11, I kept getting the following error: uninitialized constant Mysql |app/controllers/expense_controller.rb:48:in `list''| Show framework trace <#> |C:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/dependencies.rb:186:in `const_missing'' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/connection_adapters/mysql_adapter.rb:38:in `mysql_connection'' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/query_cache.rb:52:in `send'' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/query_cache.rb:52:in `connection='' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/connection_adapters/abstract_adapter.rb:108:in `retrieve_connection'' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/base.rb:239:in `connection'' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/base.rb:751:in `add_limit!'' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/base.rb:746:in `construct_finder_sql'' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/base.rb:343:in `find'' C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:756:in `send'' C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:756:in `perform_action_without_filters'' C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/filters.rb:295:in `perform_action_without_benchmark'' C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:41:in `perform_action_without_rescue'' C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:41:in `measure'' C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:41:in `perform_action_without_rescue'' C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/rescue.rb:80:in `perform_action'' C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:356:in `send'' C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:356:in `process'' C:/ruby/lib/ruby/gems/1.8/gems/rails-0.12.1/lib/dispatcher.rb:32:in `dispatch'' C:/rails/hfn/public/dispatch.fcgi:20 C:/rails/hfn/public/dispatch.fcgi:18:in `each_cgi'' C:/ruby/lib/ruby/site_ruby/1.8/fcgi.rb:595:in `each'' C:/ruby/lib/ruby/site_ruby/1.8/fcgi.rb:595:in `each_cgi'' C:/rails/hfn/public/dispatch.fcgi:18| |This error occured while loading the following files: mysql.rb I worked around it by changing line 11 in mysql_adapter.rb to read: require ''mysql'' instead of the original: require_library_or_gem ''mysql'' What have I done? And how can I satisfy the requirements for | |require_library_or_gem ''mysql''? Is there anywhere I can download a pre-compiled version of the MySQL gem? Charles |||
Try the so you can download at: http://seagecko.org/thoughts/in-the-past/2004/09/09/ruby-mysql-and-windows/ Direct link: http://seagecko.org/files/ruby/mysql/windows/mysql.zip Boris -----Original Message----- From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Charles Leeds Sent: dinsdag 26 juli 2005 19:48 To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: [Rails] MySQL driver question When using Apache 2.0.54 + FastCGI + Rail 0.13.1 on Windows 2003 w/ MySQL 4.1.11, I kept getting the following error: uninitialized constant Mysql |app/controllers/expense_controller.rb:48:in `list''| Show framework trace <#> |C:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/depen dencies.rb:186:in `const_missing'' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/connect ion_adapters/mysql_adapter.rb:38:in `mysql_connection'' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/query_c ache.rb:52:in `send'' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/query_c ache.rb:52:in `connection='' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/connect ion_adapters/abstract_adapter.rb:108:in `retrieve_connection'' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/base.rb :239:in `connection'' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/base.rb :751:in `add_limit!'' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/base.rb :746:in `construct_finder_sql'' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/base.rb :343:in `find'' C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.r b:756:in `send'' C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.r b:756:in `perform_action_without_filters'' C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/filter s.rb:295:in `perform_action_without_benchmark'' C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchm arking.rb:41:in `perform_action_without_rescue'' C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchm arking.rb:41:in `measure'' C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchm arking.rb:41:in `perform_action_without_rescue'' C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/rescue .rb:80:in `perform_action'' C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.r b:356:in `send'' C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.r b:356:in `process'' C:/ruby/lib/ruby/gems/1.8/gems/rails-0.12.1/lib/dispatcher.rb:32:in `dispatch'' C:/rails/hfn/public/dispatch.fcgi:20 C:/rails/hfn/public/dispatch.fcgi:18:in `each_cgi'' C:/ruby/lib/ruby/site_ruby/1.8/fcgi.rb:595:in `each'' C:/ruby/lib/ruby/site_ruby/1.8/fcgi.rb:595:in `each_cgi'' C:/rails/hfn/public/dispatch.fcgi:18| |This error occured while loading the following files: mysql.rb I worked around it by changing line 11 in mysql_adapter.rb to read: require ''mysql'' instead of the original: require_library_or_gem ''mysql'' What have I done? And how can I satisfy the requirements for | |require_library_or_gem ''mysql''? Is there anywhere I can download a pre-compiled version of the MySQL gem? Charles ||| _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Did you install mysql gem? Somthing like: gem install mysql On 7/26/05, Charles Leeds <charlesleeds-w1w1310CwpHGg37QOHVfPA@public.gmane.org> wrote:> When using Apache 2.0.54 + FastCGI + Rail 0.13.1 on Windows 2003 w/ MySQL 4.1.11, I kept getting the following error: > > uninitialized constant Mysql > > |app/controllers/expense_controller.rb:48:in `list''| > > Show framework trace <#> > > |C:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/dependencies.rb:186:in `const_missing'' > C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/connection_adapters/mysql_adapter.rb:38:in `mysql_connection'' > C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/query_cache.rb:52:in `send'' > C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/query_cache.rb:52:in `connection='' > C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/connection_adapters/abstract_adapter.rb:108:in `retrieve_connection'' > C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/base.rb:239:in `connection'' > C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/base.rb:751:in `add_limit!'' > C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/base.rb:746:in `construct_finder_sql'' > C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/base.rb:343:in `find'' > C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:756:in `send'' > C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:756:in `perform_action_without_filters'' > C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/filters.rb:295:in `perform_action_without_benchmark'' > C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:41:in `perform_action_without_rescue'' > C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:41:in `measure'' > C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmarking.rb:41:in `perform_action_without_rescue'' > C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/rescue.rb:80:in `perform_action'' > C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:356:in `send'' > C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:356:in `process'' > C:/ruby/lib/ruby/gems/1.8/gems/rails-0.12.1/lib/dispatcher.rb:32:in `dispatch'' > C:/rails/hfn/public/dispatch.fcgi:20 > C:/rails/hfn/public/dispatch.fcgi:18:in `each_cgi'' > C:/ruby/lib/ruby/site_ruby/1.8/fcgi.rb:595:in `each'' > C:/ruby/lib/ruby/site_ruby/1.8/fcgi.rb:595:in `each_cgi'' > C:/rails/hfn/public/dispatch.fcgi:18| > > |This error occured while loading the following files: > mysql.rb > > I worked around it by changing line 11 in mysql_adapter.rb to read: > require ''mysql'' > instead of the original: > require_library_or_gem ''mysql'' > > What have I done? And how can I satisfy the requirements for | > |require_library_or_gem ''mysql''? Is there anywhere I can download a pre-compiled version of the MySQL gem? > > Charles > > > > ||| > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Thoughts - http://deezsombor.blogspot.com Company - http://primalgrasp.com
Thanks Boris. Turns out there is already a mysql.so where it should be (site_ruby/1.8/i386-msvcrt). Maybe require_library_or_gem ''mysql'' is a bad way to check for the existence of the library and I need to file a bug report. I''m not sure. Building the mysql gem did not work, but after reading, I see it doesn''t work for anyone on Windows unless they are using Cygwin. Charles Boris wrote:>Try the so you can download at: >http://seagecko.org/thoughts/in-the-past/2004/09/09/ruby-mysql-and-windows/ > >Direct link: >http://seagecko.org/files/ruby/mysql/windows/mysql.zip > >Boris > >-----Original Message----- >From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >[mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Charles Leeds >Sent: dinsdag 26 juli 2005 19:48 >To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >Subject: [Rails] MySQL driver question > >When using Apache 2.0.54 + FastCGI + Rail 0.13.1 on Windows 2003 w/ MySQL >4.1.11, I kept getting the following error: > >uninitialized constant Mysql > >|app/controllers/expense_controller.rb:48:in `list''| > >Show framework trace <#> > >|C:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/depen >dencies.rb:186:in `const_missing'' >C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/connect >ion_adapters/mysql_adapter.rb:38:in `mysql_connection'' >C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/query_c >ache.rb:52:in `send'' >C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/query_c >ache.rb:52:in `connection='' >C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/connect >ion_adapters/abstract_adapter.rb:108:in `retrieve_connection'' >C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/base.rb >:239:in `connection'' >C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/base.rb >:751:in `add_limit!'' >C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/base.rb >:746:in `construct_finder_sql'' >C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/base.rb >:343:in `find'' >C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.r >b:756:in `send'' >C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.r >b:756:in `perform_action_without_filters'' >C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/filter >s.rb:295:in `perform_action_without_benchmark'' >C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchm >arking.rb:41:in `perform_action_without_rescue'' >C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchm >arking.rb:41:in `measure'' >C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchm >arking.rb:41:in `perform_action_without_rescue'' >C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/rescue >.rb:80:in `perform_action'' >C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.r >b:356:in `send'' >C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.r >b:356:in `process'' >C:/ruby/lib/ruby/gems/1.8/gems/rails-0.12.1/lib/dispatcher.rb:32:in >`dispatch'' >C:/rails/hfn/public/dispatch.fcgi:20 >C:/rails/hfn/public/dispatch.fcgi:18:in `each_cgi'' >C:/ruby/lib/ruby/site_ruby/1.8/fcgi.rb:595:in `each'' >C:/ruby/lib/ruby/site_ruby/1.8/fcgi.rb:595:in `each_cgi'' >C:/rails/hfn/public/dispatch.fcgi:18| > >|This error occured while loading the following files: > mysql.rb > >I worked around it by changing line 11 in mysql_adapter.rb to read: > require ''mysql'' >instead of the original: > require_library_or_gem ''mysql'' > >What have I done? And how can I satisfy the requirements for | >|require_library_or_gem ''mysql''? Is there anywhere I can download a >pre-compiled version of the MySQL gem? > >Charles > > > >||| > >_______________________________________________ >Rails mailing list >Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >http://lists.rubyonrails.org/mailman/listinfo/rails > > >_______________________________________________ >Rails mailing list >Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >http://lists.rubyonrails.org/mailman/listinfo/rails > > > > >
Did you try the version I linked to? It seems this is a newer version. -----Original Message----- From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Charles Leeds Sent: dinsdag 26 juli 2005 20:35 To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: Re: [Rails] MySQL driver question Thanks Boris. Turns out there is already a mysql.so where it should be (site_ruby/1.8/i386-msvcrt). Maybe require_library_or_gem ''mysql'' is a bad way to check for the existence of the library and I need to file a bug report. I''m not sure. Building the mysql gem did not work, but after reading, I see it doesn''t work for anyone on Windows unless they are using Cygwin. Charles Boris wrote:>Try the so you can download at: >http://seagecko.org/thoughts/in-the-past/2004/09/09/ruby-mysql-and-wind >ows/ > >Direct link: >http://seagecko.org/files/ruby/mysql/windows/mysql.zip > >Boris > >-----Original Message----- >From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >[mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Charles Leeds >Sent: dinsdag 26 juli 2005 19:48 >To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >Subject: [Rails] MySQL driver question > >When using Apache 2.0.54 + FastCGI + Rail 0.13.1 on Windows 2003 w/ >MySQL 4.1.11, I kept getting the following error: > >uninitialized constant Mysql > >|app/controllers/expense_controller.rb:48:in `list''| > >Show framework trace <#> > >|C:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/ >|depen >dencies.rb:186:in `const_missing'' >C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/co >nnect ion_adapters/mysql_adapter.rb:38:in `mysql_connection'' >C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/qu >ery_c >ache.rb:52:in `send'' >C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/qu >ery_c >ache.rb:52:in `connection='' >C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/co >nnect ion_adapters/abstract_adapter.rb:108:in `retrieve_connection'' >C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/ba >se.rb >:239:in `connection'' >C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/ba >se.rb >:751:in `add_limit!'' >C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/ba >se.rb >:746:in `construct_finder_sql'' >C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/ba >se.rb >:343:in `find'' >C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/b >ase.r >b:756:in `send'' >C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/b >ase.r b:756:in `perform_action_without_filters'' >C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/f >ilter s.rb:295:in `perform_action_without_benchmark'' >C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/b >enchm arking.rb:41:in `perform_action_without_rescue'' >C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/b >enchm >arking.rb:41:in `measure'' >C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/b >enchm arking.rb:41:in `perform_action_without_rescue'' >C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/r >escue >.rb:80:in `perform_action'' >C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/b >ase.r >b:356:in `send'' >C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/b >ase.r >b:356:in `process'' >C:/ruby/lib/ruby/gems/1.8/gems/rails-0.12.1/lib/dispatcher.rb:32:in >`dispatch'' >C:/rails/hfn/public/dispatch.fcgi:20 >C:/rails/hfn/public/dispatch.fcgi:18:in `each_cgi'' >C:/ruby/lib/ruby/site_ruby/1.8/fcgi.rb:595:in `each'' >C:/ruby/lib/ruby/site_ruby/1.8/fcgi.rb:595:in `each_cgi'' >C:/rails/hfn/public/dispatch.fcgi:18| > >|This error occured while loading the following files: > mysql.rb > >I worked around it by changing line 11 in mysql_adapter.rb to read: > require ''mysql'' >instead of the original: > require_library_or_gem ''mysql'' > >What have I done? And how can I satisfy the requirements for | >|require_library_or_gem ''mysql''? Is there anywhere I can download a >pre-compiled version of the MySQL gem? > >Charles > > > >||| > >_______________________________________________ >Rails mailing list >Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >http://lists.rubyonrails.org/mailman/listinfo/rails > > >_______________________________________________ >Rails mailing list >Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >http://lists.rubyonrails.org/mailman/listinfo/rails > > > > >_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
And even newer: http://dema.ruby.com.br/articles/2005/07/11/segmentation-faults-on-your-windows-xp-box-when-using-the-native-mysql-driver cheers Boris wrote:> Did you try the version I linked to? It seems this is a newer version. > > -----Original Message----- > From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Charles Leeds > Sent: dinsdag 26 juli 2005 20:35 > To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Subject: Re: [Rails] MySQL driver question > > Thanks Boris. Turns out there is already a mysql.so where it should be > (site_ruby/1.8/i386-msvcrt). Maybe > > require_library_or_gem ''mysql'' > > is a bad way to check for the existence of the library and I need to file a > bug report. I''m not sure. > > Building the mysql gem did not work, but after reading, I see it doesn''t > work for anyone on Windows unless they are using Cygwin. > > Charles > > Boris wrote: > > >>Try the so you can download at: >>http://seagecko.org/thoughts/in-the-past/2004/09/09/ruby-mysql-and-wind >>ows/ >> >>Direct link: >>http://seagecko.org/files/ruby/mysql/windows/mysql.zip >> >>Boris >> >>-----Original Message----- >>From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >>[mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Charles Leeds >>Sent: dinsdag 26 juli 2005 19:48 >>To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >>Subject: [Rails] MySQL driver question >> >>When using Apache 2.0.54 + FastCGI + Rail 0.13.1 on Windows 2003 w/ >>MySQL 4.1.11, I kept getting the following error: >> >>uninitialized constant Mysql >> >>|app/controllers/expense_controller.rb:48:in `list''| >> >>Show framework trace <#> >> >>|C:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/ >>|depen >>dencies.rb:186:in `const_missing'' >>C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/co >>nnect ion_adapters/mysql_adapter.rb:38:in `mysql_connection'' >>C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/qu >>ery_c >>ache.rb:52:in `send'' >>C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/qu >>ery_c >>ache.rb:52:in `connection='' >>C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/co >>nnect ion_adapters/abstract_adapter.rb:108:in `retrieve_connection'' >>C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/ba >>se.rb >>:239:in `connection'' >>C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/ba >>se.rb >>:751:in `add_limit!'' >>C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/ba >>se.rb >>:746:in `construct_finder_sql'' >>C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/ba >>se.rb >>:343:in `find'' >>C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/b >>ase.r >>b:756:in `send'' >>C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/b >>ase.r b:756:in `perform_action_without_filters'' >>C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/f >>ilter s.rb:295:in `perform_action_without_benchmark'' >>C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/b >>enchm arking.rb:41:in `perform_action_without_rescue'' >>C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/b >>enchm >>arking.rb:41:in `measure'' >>C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/b >>enchm arking.rb:41:in `perform_action_without_rescue'' >>C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/r >>escue >>.rb:80:in `perform_action'' >>C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/b >>ase.r >>b:356:in `send'' >>C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/b >>ase.r >>b:356:in `process'' >>C:/ruby/lib/ruby/gems/1.8/gems/rails-0.12.1/lib/dispatcher.rb:32:in >>`dispatch'' >>C:/rails/hfn/public/dispatch.fcgi:20 >>C:/rails/hfn/public/dispatch.fcgi:18:in `each_cgi'' >>C:/ruby/lib/ruby/site_ruby/1.8/fcgi.rb:595:in `each'' >>C:/ruby/lib/ruby/site_ruby/1.8/fcgi.rb:595:in `each_cgi'' >>C:/rails/hfn/public/dispatch.fcgi:18| >> >>|This error occured while loading the following files: >> mysql.rb >> >>I worked around it by changing line 11 in mysql_adapter.rb to read: >> require ''mysql'' >>instead of the original: >> require_library_or_gem ''mysql'' >> >>What have I done? And how can I satisfy the requirements for | >>|require_library_or_gem ''mysql''? Is there anywhere I can download a >>pre-compiled version of the MySQL gem? >> >>Charles >> >> >> >>||| >> >>_______________________________________________ >>Rails mailing list >>Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >>http://lists.rubyonrails.org/mailman/listinfo/rails >> >> >>_______________________________________________ >>Rails mailing list >>Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >>http://lists.rubyonrails.org/mailman/listinfo/rails >> >> >> >> >> > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-- http://dema.ruby.com.br - Rails from a .NET perspective
On 7/26/05, Demetrius Nunes <demetrius-fDpYTK8McCzCdMRJFJuMdgh0onu2mTI+@public.gmane.org> wrote:> And even newer: > http://dema.ruby.com.br/articles/2005/07/11/segmentation-faults-on-your-windows-xp-box-when-using-the-native-mysql-driver > > cheersI''m experiencing the same problems as Charles, I installed mysql.so with RubyForApache. I do have have a C compiler installed (will work for Mac). It works unless FastCGI and the MySQL bindings are combined. The MySQL bindings produces no error when FastCGI is disabled and FastCGI using the pure Ruby version for mysql has no errors either. I tried Dema''s mysql.so file and it didn''t change anything worse or better (despite the significant file size difference between his and RubyForApache''s). -- Chris Griego