Curt Hibbs
2005-Dec-09 13:56 UTC
[Instantrails-users] Upgrading Instant Rails to Rails 1.0 RC5 (aka 0.14.4)
Rails to Rails 1.0 RC5 (aka 0.14.4) was released yesterday. You can upgrade your Instant Rails installation to this new version by usi the main menu to open a Ruby Console Window and then running the command: gem install rails --include-dependencies Curt -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20051209/dc6dad2f/attachment.htm
Frank Hale
2005-Dec-09 17:12 UTC
[Instantrails-users] Upgrading Instant Rails to Rails 1.0 RC5 (aka 0.14.4)
Anyone having any trouble with the update? I have a model that uses the find method and it refuses to return any data now. It doesn''t error out, I just don''t get what I expect to get. Worked fine on Linux with Rails 0.14.3 but does not work on Instant Rails with 0.14.4
Frank Hale
2005-Dec-09 17:43 UTC
[Instantrails-users] Upgrading Instant Rails to Rails 1.0 RC5 (aka 0.14.4)
Ok, after updating I was having some weird problems with Instant Rails. Now I''m now getting the following error: Lost connection to MySQL server during query After googling seems every answer to this problem is the fact that the MySQL Ruby bindings are not installed. Is there a Win32 port of them somewhere? On 12/9/05, Frank Hale <frankhale at gmail.com> wrote:> Anyone having any trouble with the update? I have a model that uses > the find method and it refuses to return any data now. It doesn''t > error out, I just don''t get what I expect to get. Worked fine on Linux > with Rails 0.14.3 but does not work on Instant Rails with 0.14.4 >
Curt Hibbs
2005-Dec-09 19:05 UTC
[Instantrails-users] Upgrading Instant Rails to Rails 1.0 RC5 (aka 0.14.4)
The pure Ruby bindings are included with Rails, but the C based bindings are not. Obviously the Ruby bindings are there or you would not have gotten a connection to lose. Are you saying that the answers you found indicated that installing the C based bindings would solve this problem? Curt On 12/9/05, Frank Hale <frankhale at gmail.com> wrote:> > Ok, after updating I was having some weird problems with Instant > Rails. Now I''m now getting the following error: > > Lost connection to MySQL server during query > > After googling seems every answer to this problem is the fact that the > MySQL Ruby bindings are not installed. Is there a Win32 port of them > somewhere? > > On 12/9/05, Frank Hale <frankhale at gmail.com> wrote: > > Anyone having any trouble with the update? I have a model that uses > > the find method and it refuses to return any data now. It doesn''t > > error out, I just don''t get what I expect to get. Worked fine on Linux > > with Rails 0.14.3 but does not work on Instant Rails with 0.14.4 > > > > _______________________________________________ > Instantrails-users mailing list > Instantrails-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instantrails-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20051209/a6958577/attachment-0001.htm
Frank Hale
2005-Dec-09 19:41 UTC
[Instantrails-users] Upgrading Instant Rails to Rails 1.0 RC5 (aka 0.14.4)
That''s what google says. I reinstalled Instant Rails, updated and don''t seem to be getting that error anymore. What I get now is a NoMethodError when I try to call the find function from within my model. I have a simple test app with just one call to ''find'' in my model for a simple table that stores a username and a hashed password. This all works fine on Linux / Rails 0.14.3 but refuses to work on Instant Rails either 0.14.3 or 0.14.4. I''m using only Webrick to test. I''m not using Apache / SCGI because they are overkill for me. On 12/9/05, Curt Hibbs <curt.hibbs at gmail.com> wrote:> The pure Ruby bindings are included with Rails, but the C based bindings are > not. Obviously the Ruby bindings are there or you would not have gotten a > connection to lose. > > Are you saying that the answers you found indicated that installing the C > based bindings would solve this problem? > > Curt > > On 12/9/05, Frank Hale <frankhale at gmail.com> wrote: > > Ok, after updating I was having some weird problems with Instant > > Rails. Now I''m now getting the following error: > > > > Lost connection to MySQL server during query > > > > After googling seems every answer to this problem is the fact that the > > MySQL Ruby bindings are not installed. Is there a Win32 port of them > > somewhere? > > > > On 12/9/05, Frank Hale <frankhale at gmail.com> wrote: > > > Anyone having any trouble with the update? I have a model that uses > > > the find method and it refuses to return any data now. It doesn''t > > > error out, I just don''t get what I expect to get. Worked fine on Linux > > > with Rails 0.14.3 but does not work on Instant Rails with 0.14.4 > > > > > > > _______________________________________________ > > Instantrails-users mailing list > > Instantrails-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/instantrails-users > > > > > _______________________________________________ > Instantrails-users mailing list > Instantrails-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instantrails-users > > >-- "This life is built on match sticks and can crumble at anytime. I''m on the top floor and I sway in the opposite direction of the wind to counter act the force of gravity."
Frank Hale
2005-Dec-10 03:40 UTC
[Instantrails-users] Upgrading Instant Rails to Rails 1.0 RC5 (aka 0.14.4)
I went to my linux box, upgraded to 0.14.4 and everything was still working fine. I can''t get the same code to work with Instant Rails, my guess is because of the fact that there is no Ruby-MySQL C binding. That is the only difference between both setups. I use only Rails + MySQL and Webrick. Such is life I suppose. On 12/9/05, Frank Hale <frankhale at gmail.com> wrote:> That''s what google says. I reinstalled Instant Rails, updated and > don''t seem to be getting that error anymore. What I get now is a > NoMethodError when I try to call the find function from within my > model. I have a simple test app with just one call to ''find'' in my > model for a simple table that stores a username and a hashed password. > This all works fine on Linux / Rails 0.14.3 but refuses to work on > Instant Rails either 0.14.3 or 0.14.4. I''m using only Webrick to test. > I''m not using Apache / SCGI because they are overkill for me. > > On 12/9/05, Curt Hibbs <curt.hibbs at gmail.com> wrote: > > The pure Ruby bindings are included with Rails, but the C based bindings are > > not. Obviously the Ruby bindings are there or you would not have gotten a > > connection to lose. > > > > Are you saying that the answers you found indicated that installing the C > > based bindings would solve this problem? > > > > Curt > > > > On 12/9/05, Frank Hale <frankhale at gmail.com> wrote: > > > Ok, after updating I was having some weird problems with Instant > > > Rails. Now I''m now getting the following error: > > > > > > Lost connection to MySQL server during query > > > > > > After googling seems every answer to this problem is the fact that the > > > MySQL Ruby bindings are not installed. Is there a Win32 port of them > > > somewhere? > > > > > > On 12/9/05, Frank Hale <frankhale at gmail.com> wrote: > > > > Anyone having any trouble with the update? I have a model that uses > > > > the find method and it refuses to return any data now. It doesn''t > > > > error out, I just don''t get what I expect to get. Worked fine on Linux > > > > with Rails 0.14.3 but does not work on Instant Rails with 0.14.4 > > > > > > > > > > _______________________________________________ > > > Instantrails-users mailing list > > > Instantrails-users at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/instantrails-users > > > > > > > > > _______________________________________________ > > Instantrails-users mailing list > > Instantrails-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/instantrails-users > > > > > > > > > -- > "This life is built on match sticks and can crumble at anytime. I''m on > the top floor and I sway in the opposite direction of the wind to > counter act the force of gravity." >-- "This life is built on match sticks and can crumble at anytime. I''m on the top floor and I sway in the opposite direction of the wind to counter act the force of gravity."
Frank Hale
2005-Dec-10 04:20 UTC
[Instantrails-users] Upgrading Instant Rails to Rails 1.0 RC5 (aka 0.14.4)
Theoretically the same code should still work, right? I am a n00b with Rails and have only developed a very basic login system that works on a Linux machine with Rails 0.14.4 and MySQL 4.1.12. It only has one table and one model with a method that calls find. When I try to run the same code on Instant Rails using Webrick (that is my preferred development server) it fails to run giving me a NoMethodError. When I run on Linux it works as expected. If I comment out the find method in my model then I don''t get the error on Instant Rails but yet the code cannot function properly without it. On 12/9/05, Curt Hibbs <curt.hibbs at gmail.com> wrote:> On 12/9/05, Frank Hale <frankhale at gmail.com> wrote: > > I went to my linux box, upgraded to 0.14.4 and everything was still > > working fine. I can''t get the same code to work with Instant Rails, my > > guess is because of the fact that there is no Ruby-MySQL C binding. > > That is the only difference between both setups. I use only Rails + > > MySQL and Webrick. Such is life I suppose. > > > > > Hmmm... is any one else having this problem? If so, its looks like I''ll have > to get the C bindings into Instant Rails (it was on the todo list anyway, > just not at the top). > > Curt >-- "This life is built on match sticks and can crumble at anytime. I''m on the top floor and I sway in the opposite direction of the wind to counter act the force of gravity."
David Morton
2005-Dec-10 06:36 UTC
[Instantrails-users] Upgrading Instant Rails to Rails 1.0 RC5 (aka 0.14.4)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Frank Hale wrote:> Theoretically the same code should still work, right? I am a n00b with > Rails and have only developed a very basic login system that works on > a Linux machine with Rails 0.14.4 and MySQL 4.1.12. It only has one > table and one model with a method that calls find. When I try to run > the same code on Instant Rails using Webrick (that is my preferred > development server) it fails to run giving me a NoMethodError. When I > run on Linux it works as expected. If I comment out the find method in > my model then I don''t get the error on Instant Rails but yet the code > cannot function properly without it.I can''t speak for anyone else, but I really can''t say without seeing the code... - -- David Morton Maia Mailguard - http://www.maiamailguard.com Morton Software Design and Consulting - http://www.dgrmm.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDmnd/SIxC85HZHLMRAoaoAKCAeEWLOR2UZjP+qZaDTcf8MhyPOQCgh9tr N3BRsfOrVUGBeu3HzYHjrUg=MCJp -----END PGP SIGNATURE-----
Frank Hale
2005-Dec-10 13:49 UTC
[Instantrails-users] Upgrading Instant Rails to Rails 1.0 RC5 (aka 0.14.4)
What''s the policy on attaching code to email messages on the mailing list? On 12/10/05, David Morton <mortonda at dgrmm.net> wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Frank Hale wrote: > > Theoretically the same code should still work, right? I am a n00b with > > Rails and have only developed a very basic login system that works on > > a Linux machine with Rails 0.14.4 and MySQL 4.1.12. It only has one > > table and one model with a method that calls find. When I try to run > > the same code on Instant Rails using Webrick (that is my preferred > > development server) it fails to run giving me a NoMethodError. When I > > run on Linux it works as expected. If I comment out the find method in > > my model then I don''t get the error on Instant Rails but yet the code > > cannot function properly without it. > > I can''t speak for anyone else, but I really can''t say without seeing the code... > > > - -- > David Morton > Maia Mailguard - http://www.maiamailguard.com > Morton Software Design and Consulting - http://www.dgrmm.net > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.2 (MingW32) > Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org > > iD8DBQFDmnd/SIxC85HZHLMRAoaoAKCAeEWLOR2UZjP+qZaDTcf8MhyPOQCgh9tr > N3BRsfOrVUGBeu3HzYHjrUg> =MCJp > -----END PGP SIGNATURE----- > _______________________________________________ > Instantrails-users mailing list > Instantrails-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instantrails-users >-- "This life is built on match sticks and can crumble at anytime. I''m on the top floor and I sway in the opposite direction of the wind to counter act the force of gravity."
Frank Hale
2005-Dec-10 13:50 UTC
[Instantrails-users] Upgrading Instant Rails to Rails 1.0 RC5 (aka 0.14.4)
Anyway this is the code that causes the problem on Instant Rails. require ''digest/sha1'' class User < ActiveRecord::Base def self.validate(name,pass) find(:first, :conditions => [ "username = ? AND password = ?", name, Digest::SHA1.hexdigest(pass) ]) end end I''ll get a NoMethodError on the find method. If I comment it out, the app will run but of course it doesn''t validate a user. On 12/10/05, Frank Hale <frankhale at gmail.com> wrote:> What''s the policy on attaching code to email messages on the mailing list? > > On 12/10/05, David Morton <mortonda at dgrmm.net> wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > Frank Hale wrote: > > > Theoretically the same code should still work, right? I am a n00b with > > > Rails and have only developed a very basic login system that works on > > > a Linux machine with Rails 0.14.4 and MySQL 4.1.12. It only has one > > > table and one model with a method that calls find. When I try to run > > > the same code on Instant Rails using Webrick (that is my preferred > > > development server) it fails to run giving me a NoMethodError. When I > > > run on Linux it works as expected. If I comment out the find method in > > > my model then I don''t get the error on Instant Rails but yet the code > > > cannot function properly without it. > > > > I can''t speak for anyone else, but I really can''t say without seeing the code... > > > > > > - -- > > David Morton > > Maia Mailguard - http://www.maiamailguard.com > > Morton Software Design and Consulting - http://www.dgrmm.net > > -----BEGIN PGP SIGNATURE----- > > Version: GnuPG v1.4.2 (MingW32) > > Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org > > > > iD8DBQFDmnd/SIxC85HZHLMRAoaoAKCAeEWLOR2UZjP+qZaDTcf8MhyPOQCgh9tr > > N3BRsfOrVUGBeu3HzYHjrUg> > =MCJp > > -----END PGP SIGNATURE----- > > _______________________________________________ > > Instantrails-users mailing list > > Instantrails-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/instantrails-users > > > > > -- > "This life is built on match sticks and can crumble at anytime. I''m on > the top floor and I sway in the opposite direction of the wind to > counter act the force of gravity." >-- "This life is built on match sticks and can crumble at anytime. I''m on the top floor and I sway in the opposite direction of the wind to counter act the force of gravity."
David Morton
2005-Dec-10 15:56 UTC
[Instantrails-users] Upgrading Instant Rails to Rails 1.0 RC5 (aka 0.14.4)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Frank Hale wrote:> Anyway this is the code that causes the problem on Instant Rails. > > require ''digest/sha1'' > > class User < ActiveRecord::Base > > def self.validate(name,pass) > find(:first, :conditions => [ "username = ? AND password = ?", name, > Digest::SHA1.hexdigest(pass) ]) > end > > end > > I''ll get a NoMethodError on the find method. If I comment it out, the > app will run but of course it doesn''t validate a user.Ok, first problem, you probably don''t mean to use validate(), since that is a method called when a record is saved; see http://api.rubyonrails.com/classes/ActiveRecord/Validations.html I don''t know if that is causing the error or not. Could you also post the exact stack trace you are getting? -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDmvrFSIxC85HZHLMRAg3bAJ9garMnueGg5RN9dA4pa0QBYtEB3gCgkelw bHhlpcrxVgCMsvnv9TakrTk=lPNm -----END PGP SIGNATURE-----
Frank Hale
2005-Dec-10 16:03 UTC
[Instantrails-users] Upgrading Instant Rails to Rails 1.0 RC5 (aka 0.14.4)
ok, but the weird thing is that it works on linux. I have since been rewriting the code to make it better. I''ve got rid of that method now. On 12/10/05, David Morton <mortonda at dgrmm.net> wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Frank Hale wrote: > > Anyway this is the code that causes the problem on Instant Rails. > > > > require ''digest/sha1'' > > > > class User < ActiveRecord::Base > > > > def self.validate(name,pass) > > find(:first, :conditions => [ "username = ? AND password = ?", name, > > Digest::SHA1.hexdigest(pass) ]) > > end > > > > end > > > > I''ll get a NoMethodError on the find method. If I comment it out, the > > app will run but of course it doesn''t validate a user. > > Ok, first problem, you probably don''t mean to use validate(), since that is a > method called when a record is saved; see > http://api.rubyonrails.com/classes/ActiveRecord/Validations.html > > I don''t know if that is causing the error or not. > > Could you also post the exact stack trace you are getting? > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.2 (MingW32) > Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org > > iD8DBQFDmvrFSIxC85HZHLMRAg3bAJ9garMnueGg5RN9dA4pa0QBYtEB3gCgkelw > bHhlpcrxVgCMsvnv9TakrTk> =lPNm > -----END PGP SIGNATURE----- > _______________________________________________ > Instantrails-users mailing list > Instantrails-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instantrails-users >-- "This life is built on match sticks and can crumble at anytime. I''m on the top floor and I sway in the opposite direction of the wind to counter act the force of gravity."
David Morton
2005-Dec-10 19:59 UTC
[Instantrails-users] Upgrading Instant Rails to Rails 1.0 RC5 (aka 0.14.4)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Frank Hale wrote:> Ok, after updating I was having some weird problems with Instant > Rails. Now I''m now getting the following error:The comments here seem to indicate some bugs with the mysql driver: http://weblog.rubyonrails.com/articles/2005/12/08/rails-rc5-0-14-4-next-stop-one-oh-really-this-time#comments - -- David Morton Maia Mailguard - http://www.maiamailguard.com Morton Software Design and Consulting - http://www.dgrmm.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDmzONSIxC85HZHLMRAsmNAJkB6lknT+d9S3jKAyZK5JFz6zAy+gCgoUO4 HvUyAWFvgA6nnNWY040t7Ek=p2Z1 -----END PGP SIGNATURE-----
Curt Hibbs
2005-Dec-11 02:39 UTC
[Instantrails-users] Upgrading Instant Rails to Rails 1.0 RC5 (aka 0.14.4)
On 12/10/05, David Morton <mortonda at dgrmm.net> wrote:> > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Frank Hale wrote: > > Ok, after updating I was having some weird problems with Instant > > Rails. Now I''m now getting the following error: > > The comments here seem to indicate some bugs with the mysql driver: > > > http://weblog.rubyonrails.com/articles/2005/12/08/rails-rc5-0-14-4-next-stop-one-oh-really-this-time#commentsI read through the comments, and it appears that there are some MySQL bugs in this Rails release. Here is what DHH said: *David Heinemeier Hansson* said 1 day later: To anyone who''ve had database trouble with MySQL, please upgrade to the beta gems with: gem install rails?source http://gems.rubyonrails.org?include-dependencies. We''ve fixed some important snags. Curt -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20051210/d9b03ad5/attachment.htm