Displaying 20 results from an estimated 4000 matches similar to: "Ruby 1.8.4 upgrade screws up ActiveRecord"
2006 Jul 28
2
Problems connecting to remote mysql db
Hi,
I am having a problem connecting to a remote mysql db and I can''t
figure out what the problem is. When I try to connect I get the error:
getaddrinfo: no address associated with hostname.
I have looked all over for clues as to what that means but I haven''t
been able to find anything that helps. I have no problems connecting
to the database with php and with the mysql query
2007 Aug 06
4
problem with rails_root
Hi everybody,
I used a openseradmin who is based on rubygem (i suppose ), so when i
start my server of this openseradmin in the http://localhost:3000, i
reciceved some messages like this:
SocketError in LoginController#login
getaddrinfo: Name or service not known
RAILS_ROOT: script/../config/..
Application Trace | Framework Trace | Full Trace
2007 Jul 23
2
Firebird, fireruby
Hi Guys
I am pretty new to Ruby. One of our client is using Firebird as his
backend database. I have to create a script which will connect to his
database, fetch some data and update few tables in MS-SQL database.
Now problem is: i have installed FireRuby, got databaes, changed my
database.yml file.
I am trying to display all the users in Members table. but i am
getting following error:
2007 Jan 10
0
SQLite3::CantOpenException
Hi,
When I try to run a controller that connects to my project''s sqlite
database, I get the following exception:
SQLite3::CantOpenException in PostController#index
could not open database
config/database.yml correctly points to my database, like so:
development:
adapter: sqlite3
database: db/dev.db
I''ve had Rails projects working with sqlite3 before (recently), but
2005 Nov 16
4
What happened to mysql connection?
I''ve been using Rails for more than six months and until today I had
no problem with mysql connection.
It''s a Mac OS X 10.4 box having rails installed and updated by gem. I
use a remote mysql server no local instance installed.
Here''s my config:
development:
adapter: mysql
database: hdchat
host: 10.0.0.1
username: webuser
password:
test:
adapter:
2010 Jan 26
1
Mongrels Hanging in mysql_adapter.rb
Hi everyone,
I have been trying to solve this problem for quite some time now and I
really don''t have any further clue to investigate.
I am running a mongrel_cluster 1.0.5-2 (mongrel verison : 1.1.5-5) on
a ubuntu box with apache2 2.2.12-1ubuntu2.1
I have 4 different apps on the same box and each app has two mongrel
instances.
After a short period of time ( < 2 hours ) some of the
2007 Jun 23
7
rake db:migrate strange behaviour "wrong number of arguments (1 for 0)"
Hi everybody,
May be somebody has a clue, why I get these errors below, while trying
to migrate.
Any help is very appreciated!
Greetinx
Rafael
I was trying to experiment a litte bit with redMine (www.redmine.org).
But I can only install it locally. On a system with already a
mongrel_cluster running, I get strange errors, already while trying to
start the migration rake db:migrate
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 May 31
3
Database can''t connect -
I''m sorry guys. I''m really still such a newbie at this. i''ve been having
trouble getting my Rails apps to run on Dreamhost, and I think it might
be a problem with the database connection. Anyway, I read on Code
Snippets that I should do this:
[rhod]$ ruby -Iconfig -renvironment -e "p ActiveRecord::Base.connection"
to find out if my database.yml file is
2005 Dec 01
0
symlink and 0.14.3
Hi!
I have a little problem with 0.14.3. I followed the
http://wiki.rubyonrails.com/rails/pages/HowtoUseSymLinksToGraftRailsOntoYourWebsite
but it''s not work.
My rails directory is /home/boci/ujautoszalon and I symlinked the public
dir to /home/httpd/htdocs/ujautoszalon2, but it''s not find the
database.yml file.
Here is the whole log:
2006 Apr 30
3
MySQL connection problems on Dreamhost
To all fellow Dreamhosters out there...
Sometimes my app mysteriously loses its connection to the database,
resulting in a big ugly "Application Error (Rails)" page. Usually
refreshing the page makes it go away, but not today. :-(
In production.log I see this:
MysqlError (Lost connection to MySQL server during query):
Any idea why this happens? It''s rather intermittent
2007 Jan 09
0
Production Mode with SCGI
Hi,
I have an application running on Apache SCGI (Win XP). Once I run it in
production mode (scgi_ctrl config -S -e production ) I''m getting
stack trace instead of HTTP status 500 (Application Error) and the
error is logged production.log. The application works fine without
SCGI. Your help is highly appreciated....
Thanx
/* production.log */
# Logfile created on Thu Jan 04 16:35:43
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
2007 Sep 26
0
Rake DB Migration
Hai All,
i have installed Ruby and Rails in my localhost, and i have to download
Rubricks CMS and installed in my localhost in the installing process i
got below Error Please Say how can i rectify this.
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
wrong number of arguments (1 for 0)
2006 Aug 27
0
problem with mysql gem
Hi. Whenever I use activerecord I get this error NameError:
uninitialized constant Mysql. I installed the mysql 2.7 gem and I''m on
Rails 1.1.6 / Ruby 1.8.4. The gem was built successfully using ''gem
install -- --with-mysql-config=/usr/local/mysql/bin/mysql_config''.
Here''s a sample trace of the error in ''script/console'':
>> User.find 1
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:
2005 Dec 12
4
Rails crashes over night?
I''m
running Ruby on Rails on Fedora Core 4 with lighttpd and fastcgi. I
also used the login generator (don''t know if relevant). I have the
following problem: At day time I work on the server and create/modify
ruby files on the server, all pages work fine. Than the next day I want
to open de server I get the error at the end of this message (on all
pages, including non protected).
2008 Jul 16
2
Error when running my unit test...
Hi Rails team
Learning ROR, and is doing the chapter with test..... feel like
skipping this, but....
(using NetBeans IDE 6.1)
I have created this story_test.rb, and when I run the ''rake test:units
(selected from the GUI), I get this error:
(in /data/NewOrder/Projects/ROR/shovell)
** Invoke test:units (first_time)
** Invoke db:test:prepare (first_time)
** Invoke environment
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
2007 Dec 14
3
Issue with upgrading to 2.0 on Leopard? Or something else?
Sorry if this has been covered, but I finally decided to upgrade to
Rails 2.0 (running Leopard and previously at rails 1.2.6) so I could
start using some of the great new features. I ran the usual "sudo gem
install rails --include-dependencies" to upgrade and now my
development environment is all out of whack. I suspected MySQL, but
I''ve already made sure I was using the