similar to: Please help - Rails hanging on mysql connection

Displaying 20 results from an estimated 10000 matches similar to: "Please help - Rails hanging on mysql connection"

2006 Jan 15
0
OS X Rails - Nuby
OK, I''m diving into new things - a .net programmer and windows user trying to develop in Rails on my Mac. Initial setup was easy, and I had things working and was thrilled with myself. Then I shut down. Next time I booted up, mysql was acting all kinds of funny. I finally got that working again (I *think* it mostly had to do with me not having the right path, I unfortunately
2006 Feb 21
0
Rails edge breaks my app
I set my app on the Rails edge yesterday via rake freeze_edge and that broke my app. If I take the ..\vendor\rails folder out and restart the server (webrick), it works fine. I don''t get any errors. But if I re-add the ..\vendor\rails folder I get errors when accessing any views that have pagination. Is this a known issue or problem? This is the error: ActiveRecord::StatementInvalid in
2006 Feb 15
0
MySql adapter error
Most likely due to something I misconfigured and/or broke when trying to get the new polymorphic acts_as_taggable to work...In short, after installing that gem and then trying to run gem install mysql on my windows server, I''ve been getting this weird error on every page I try to hit. If anyone give give me any insight into how I messed this up or how to fix, it would be much
2006 Jan 22
2
a newbie doomed in the first introduction to rails.
Hello, Thank you for the fast responses, I really appreciate. I really enjoy being a part of such a great community. I still could not solve my problem. To make sure that I can not connect beacuse of access rights, I have started mysql server --skip-grant-tables option. (I have read the part of the manual about access rights, which I was to read in this list, but 4 AM in the morning, I had hard
2006 Feb 08
5
Mysql::Error: Lost connection to MySQL server during query:
Hi, I am having Mysql connection problem for my first AddressBook application (which I took it from http://www-128.ibm.com/developerworks/linux/library/l-rubyrails/) I have gem installed the latest ruby, rails, lighttpd, fastcgi, mysql-4.1.14 on linux. Everything looks good. When I do: mysql -h localhost -u test -ptest -D AddressBook mysql> SELECT COUNT(*) FROM contacts; +----------+ |
2006 Jan 21
2
problems in moving an application database from a local to a remote mysql server
hi. i''ve an application which is using a local mysql server (on localhost). i then moved the mysql server to another machine (remote host) and changed accordingly the "database.yml" file. when i launch webrick from the "localhost", it can connect to the database but as soon as i call a controller of the application (for example
2006 Apr 02
2
Problem with lighttpd on mac
Hi, I followed the instructions I founded here : http://developer.apple.com/tools/rubyonrails.html I can run a small RoR application with webrick, everything is fine in this case. But when I try to use lighttpd i can access http://localhost:3000/images/rails.png for example but not a dynamic page. In the latter case I dont get any page, the browser is just waiting infinitely. If I force
2006 Jan 13
1
ActiveRecord: using with multiple threads/DB connections
Hi, I''m totally new to Ruby and Rails and I''m trying to set up a prototype web site. Unfortunately, I''m having problems with ActiveRecord using multiple threads. What I want to do is fairly simple. I have a Controller that receives and saves data from the web in the DB, but once that''s done I want to process this data in another thread and then save the
2006 Sep 06
5
admin controller problem
I am reading the agile web development with rails book, and starting to create the depot. I am getting the below error after setting up the "ruby script/generate scaffold Product Admin" does anyone know what the problem is? NameError in AdminController#index uninitialized constant Mysql RAILS_ROOT: ./script/../config/../ Application Trace | Framework Trace | Full Trace
2006 Apr 17
7
Action Controller: Exception caught
Hi, I''m running the cookbook example from ONLamp.com. I have tried to test my site and it comes up with the the message on the site: ActiveRecord::StatementInvalid in RecipeController#index Mysql::Error: Lost connection to MySQL server during query: SHOW FIELDS FROM recipes RAILS_ROOT: ./script/../config/.. Application Trace | Framework Trace | Full Trace
2006 Jan 24
1
Newbie: Cookbook Application problem with MYSQL
Hi everybody, I''ve been reading lot of material about Ruby on Rails, and it looks like really rocks. I''ve downloaded the one-click version for Windows and started to build the example cookbook app, found in: http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html?page=1 Everything looks good, but when I''m trying to create a new Recipe
2006 Feb 09
2
postgres connection problems
Hello, I''m a newbie to rails and I am trying to do the Demo in the November Issue of Linux Journal. Things go fine go fine until I try to connect to my Postgres database (ver 8.1). At this point I get the following error message ---- RoR error and trace back ---- PGError in Admin#index could not connect to server: Permission denied Is the server running on host "localhost"
2005 Apr 26
0
NoMethodError (undefined method `fetch_fields' for nil:NilClass)
Hi I''m new to Rails (and Ruby) and I can''t get it to work properly. Every time I want to do something with my database-connection (e.g. use scaffold) I get this, or something similiar (from development.log): >> Beneath this code there''s some more text << ------- Processing CategoryController#index (for 127.0.0.1 at Tue Apr 26 21:43:45 CEST 2005)
2006 Jan 10
5
Oracle 10g Express - generate scaffold gives error
Hello, I have Oracle XE installed. I have a table USERS. When I try to generate a scaffold it gives me this error. I tried also with Mysql and it worked. E:\radrails\projects\MPS>ruby script\generate scaffold user exists app/controllers/ exists app/helpers/ create app/views/user exists test/functional/ dependency model exists app/models/ exists
2005 Dec 19
5
using a local MS SQL Server
I would appreciate any tips/clues/advice very much. I have started using ruby on rails and when the MS SQL Server database is on a different box than my dev box (where the RoR app is located) I can connect fine. However when I try to connect to a MS SQL Server database on the same box as my RoR app I get an error. I have tried to use the IP address of the dev box as the value of
2005 Mar 10
0
Need Help with Flaky FastCGI on Windows
Hi Everyone - I have a rails 0.10.1 application deployed on a Windows 2003 server under XAMPP Lite 1.4.12. Running under CGI, the application works fine (a bit slow, obviously, but no problems). When I run under FastCGI, the app is fine until I leave it alone for a few hours. For example, last night I switched it to FastCGI and everything seemed to be working fine. When I woke up this
2006 Jan 27
5
Newbie:Adding a new Table-Strange Error
Hi Everybody, I am a newbie in this list so please forgive me if this is a lengthy message. Currently I am working on a project at my work place that includes viewing some oracle tables(I do not have control over to rewrite the tables) and searching the tables based on a given criteria with Rails. Up untill now everything was working great. The database consists of a lot of tables but I was
2006 Jan 30
9
error when adding a new table to the existing application
Deniz wrote: > Hi Everybody, > I am a newbie in this list so please forgive me if this is a lengthy > message. > Currently I am working on a project at my work place that includes > viewing some oracle tables(I do not have control over to rewrite the > tables) and searching the tables based on a given criteria with Rails. > Up untill now everything was working great. The
2008 Jan 03
7
error message after upgrading ruby
hi first off all a happy new year to you all. I''m using netbeans 6 and ruby 2.02. at this point I get my index page in my view in this format index.html.erb and not like before index.rhtml when I enter localhost:3000/lijsten/index I get the following error message Errno::EBADF in LijstenController#index Bad file descriptor - connect(2) RAILS_ROOT:
2007 Dec 10
0
mysql error with rails 2.0.1
Hello Friends, Sorry for my bad english.I am a rails novice. I successfully install rails 2.0.1 and activerecord 2.0.1 in my windows Xp sevice pack 2 system. I am trying to develop simple rails application which does not require database. 1st i type from my command prompt: rails myapp then I create a controler : myapp/script>ruby generate controler hi index after that i start the webbrick