Displaying 20 results from an estimated 10000 matches similar to: "Rails and Postgres"
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"
2006 Jul 02
5
"the number of parameters does not match the number of substitutions" error
All of a sudden, I''m getting this error:
1) Error:
test_index(AccountControllerTest):
RuntimeError: The number of parameters does not match the number of
substitutions.
/home/joe/projects/tanga/trunk/config/../vendor/rails/actionpack/lib/action_controller/assertions.rb:92:in
`assert_redirected_to''
2008 Mar 04
2
Why would ActiveRecord connect to Postgres as root?
My databases.yml makes no mention of root and in my dev environment
everything works fine, however following a deployment with Capistrano
about an hour ago, I get the following error:
PGError in HomeController#index
FATAL: role "root" does not exist
/usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
connection_adapters/postgresql_adapter.rb:713:in `connect''
2006 Apr 14
1
rake test errors
I have Rails 1.1.2, ruby 1.8.4 and gentoo linux running kernel 2.6.15.
Here are the errors:
gregg@gregg2 ~/user/DMS $ rake test
(in /home/gregg/user/DMS)
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/
ordered_options.rb:2: warning: method redefined; discarding old []=
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/
ordered_options.rb:11: warning: method
2008 Apr 13
8
Brand new to rails: can't get databases to work
Just starting to learn rails. All is going well, until I tried to hook
up a database.
"undefined method `model'' for ZingerController:Class" is the message I
get from the server.
I imagine I''ve left something out that is keeping me from connecting
to the database, but I''m not exactly sure what.
Your help is appreciated.
bests,
-rsr-
session dump:
2008 Sep 02
14
SQL 3 Lite Error
Hello everyone,
In my controller, I put the following code:
render :text => "Hello World!"
It popped up with this error:
"
MissingSourceFile in BlogController#index
no such file to load -- sqlite3
RAILS_ROOT: C:/InstantRails/rails_apps/scblog
Application Trace | Framework Trace | Full Trace
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
2009 Jun 30
2
First time problem
This is the first time I am Running ruby on rails.
When running the "blog" application I got the message
"We''re sorry, but something went wrong.
We''ve been notified about this issue and we''ll take a look at it
shortly."
Then I checked the CODE\blog\log\development.log and got this:
2006 Apr 03
12
scgi?? do i need it for ruby?
This might be obvious to everyone but it is something that i haven''t
been able to find an answer to. Do I need to have either
scgi/fastcgi/cgi running on either lighttpd/apache for ruby scripts to
work? If yes, why? I have installed the scgi server and i can get the
service to run, i have also installed the following mod_fastcgi/2.4.2
mod_ruby/1.2.4 Ruby/1.8.2(2004-12-25) mod_scgi,
2007 Aug 19
3
fastcgi issue on production
I just deployed my rails app to my production server. It''s all working
locally, but when I switched it over to the production server (at
dreamhost) I get this error:
# Logfile created on Sun Aug 19 15:22:48 -0700 2007 by logger.rb/
1.5.2.9
[19/Aug/2007:15:22:48 :: 1841] starting
[19/Aug/2007:15:22:48 :: 1841] Dispatcher failed to catch: You have a
nil object when you didn''t
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
2009 Jun 09
3
NameError what is it?
I have the following code in app/controllers/processjobs_controller.rb
#
class ProcessJobsController <ApplicationController
def index
@ProcessJobs = ProcessJobs.find(:all)
end
end
#
This is my route file ..
ActionController::Routing::Routes.draw do |map|
map.resources :ProcessJobs
map.connect '':controller/:action/:id''
map.connect
2009 Jun 08
2
Connecting to SQLServer
New to rails. Installed rails on my XP desktop, and setup my first app
that will use an existing SQLServer database. I am able to connect to
SQLServer using odbc with following code.
require ''rubygems''
require ''ActiveRecord''
ActiveRecord::Base.establish_connection(
:adapter => ''sqlserver'',
:mode => ''odbc'',
:dsn
2006 Jan 28
3
App running fine on Webrick, ActiveRecord::ConnectionNotEstablished in lighttpd
My app runs fine on webrick, but I get a
ActiveRecord::ConnectionNotEstablished when I try to run it on
lighttpd. Here''s the app''s lighttpd config:
$HTTP["host"] =~ "(www\.)?mysite\.com" {
server.document-root = "/home/pergesuteore/public/"
server.error-handler-404 = "/dispatch.fcgi"
fastcgi.server = ( ".fcgi" =>
(
2006 Jul 22
3
Connection refused - connect(2)
Dear all,
Please help me in this regards,
I am using models to access LegacySchemas using
set_table_name and set_primary_key...
[code for model]
class CdDetails < ActiveRecord::Base
def self.find_data
set_table_name ''cd_details''
set_primary_key ''cd_label''
find (:first,
:select => "cd_label")
end
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
2010 Mar 24
1
Trouble starting the server, HELP PLEASE!
can anybody tell me what is going wrong from the information taken
from the development log below. WHen i start WEBrick and try and view
a page on the localhost i get the following error, "We''re sorry, but
something went wrong.We''ve been notified about this issue and we''ll
take a look at it shortly."
I''m a complete beginner and really want to start
2006 Jan 30
5
Problems migrating from Postgres to MySQL
Hello everyone,
I''m trying to migrate a working app from Postgres to MySQL, and I''m
trying to use a migration to get it done rather than alter all my
database table creation scripts to MySQL syntax. I''ve done loads of
work with Postgres, but am a real newbie with MySQL...
I did a ''rake db_schema_dump'' from my Postgres app, and got a nice
looking
2006 Dec 04
7
I need help to connect Postgres and Ruby on Rails Please.
Hello to everyone, I have a problem that is giving me a headache, and
trying to do a project in Ruby on Rails and I need to connect with a
Data Base that is en Postgres, the truth is that I didn’t think that it
was so hard to connect a DB with postgres because I was working with
Msyql and everything was easy. This are the thinks that I have install
in my computer.
1. Debian GNU/Linux, kernel
2006 Jun 22
11
Help please
Getting this error:
SyntaxError in CompanyController#positionslist
(eval):1:in `compute_type'': compile error
(eval):1: parse error, unexpected tINTEGER
Object::2
I could not find anything out about it (googling) and it''s not the
clearest error message. Not sure if it''s related to an expected data
type but that wouldn''t make sense. The only other thing I can
2010 Apr 09
3
"We're sorry, but something went wrong"
can anyone help with this???
/!\ FAILSAFE /!\ Thu Apr 08 16:58:27 -0700 2010
Status: 500 Internal Server Error
unknown error
C:/Ruby/lib/ruby/1.8/dl/import.rb:29:in `initialize''
C:/Ruby/lib/ruby/1.8/dl/import.rb:29:in `dlopen''
C:/Ruby/lib/ruby/1.8/dl/import.rb:29:in `dlload''
C:/Ruby/lib/ruby/1.8/dl/import.rb:27:in `each''