Displaying 20 results from an estimated 5000 matches similar to: "error with database.yml when running rails generate script"
2006 Jan 29
6
Depot example problem on Slackware
Hello.
I''m new to RoR. I run RoR on my Slackware. I follow the depot example
and have a problem when run the script:
root@localhost:~/work/depot# ruby script/generate scaffold Admin Product
/usr/lib/ruby/1.8/yaml.rb:133:in `load'': syntax error on line 5, col 2:
` socket:/var/run/mysql/mysql.sock'' (ArgumentError)
from /usr/lib/ruby/1.8/yaml.rb:133:in
2006 Jun 08
2
Am i missing a library?
[xxxxx@fedora test]$ script/generate model contact
/usr/lib/ruby/1.8/yaml.rb:133:in `load'': syntax error on line 17, col 2:
` host: localhost'' (ArgumentError)
from /usr/lib/ruby/1.8/yaml.rb:133:in `load''
from
/usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/initializer.rb:459:in
`database_configuration''
from
2005 Oct 27
0
Skipping framework in new initializer doesn't skip framework
Hi,
rails-0.14.2/lib/initializer.rb states:
# This initialization routine does nothing unless <tt>:active_record</tt>
# is one of the frameworks to load (Configuration#frameworks). If it is,
# this sets the database configuration from
Configuration#database_configuration
# and then establishes the connection.
def initialize_database
# code
end
In
2005 Oct 27
0
Re: Skipping framework in new initializer doesn't skip framework - IGNORE
Please ignore. Sorry for the garbage on the list. I had accidently
pasted this at the bottom of environment.rb
ActiveRecord::Base.establish_connection
ouch...
jh
On 10/27/05, James Hughes <hughes.james-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> Hi,
>
> rails-0.14.2/lib/initializer.rb states:
>
> # This initialization routine does nothing unless
2009 Aug 14
1
starting up server
I am working on an existing application and the first time I try and
start up the server I get this message. I have not gotten this
message before when I start the server on other apps. ruby script/
server. There must be things I need to change in the config.
There is a load statement in yaml.rb but not sure of the context as it
relates to argument. Is the error related to the current
2009 Jul 17
1
Mongrel Server error - newbie question.
Dear All,
I am very new to RoR. I have got the following error after Chnaging
mysql database.yml and restart the Server.
-
rails employee
rails -d mysql employee
and insert Username & Password in the database.yml
and I restart the server.
-
=> Booting Mongrel
=> Rails 2.3.2 application starting on http://0.0.0.0:3000
/usr/local/lib/ruby/1.8/yaml.rb:133:in `load'': syntax
2008 Jul 17
0
More trouble connecting Rails to Oracle
Hi,
I have an application under development that I have been working on with
a PC. I have just checked out the code on a Mac, and I cannot get my
server to start. I am using Rails 2.0.2. Below is the error:
wireless:events me$ ruby script/server
=> Booting Mongrel (use ''script/server webrick'' to force WEBrick)
=> Rails application starting on http://0.0.0.0:3000
=>
2010 Aug 12
3
script/server problem/...
root@essc-openvpn:/websites/teambox.mydomain.com/teambox# sudo script/
server -e development
/usr/lib/ruby/gems/1.8/gems/bundler-1.0.0.rc.5/lib/bundler/runtime.rb:
132: warning: Insecure world writable dir /usr/bin in PATH, mode
040777
=> Booting Mongrel
=> Rails 2.3.8 application starting on http://0.0.0.0:3000
/usr/lib/ruby/1.8/yaml.rb:133:in `load'': syntax error on line 6, col
2:
2006 Apr 05
3
Rails 1.1 and webrick/mysql problems
i just upgraded to rails 1.1 yesterday and since then i could?nt make it
work with mysql, for example i have my database "todo" and one table
"todos", i create the app and generate the model but when i try to
generate the scaffold with "ruby script/generate scaffold Todo Todo" i
get this error " error Before updating scaffolding from new DB schema,
try
2005 Dec 02
3
yaml Error When Trying to Generate Scaffold
Hello there,
I am a Ruby on Rails newbie, and have been reading the book, "Agile
Web Development with Rails", by Dave Thomas.
Seem to be stuck on page 57, when trying to invoke "ruby script/
generate scaffold Product Admin"...
My depot/config/database.yml file''s contents are:
development:
adapter: mysql
database: depot_development
socket:
2005 Oct 28
0
beginner's problem after changing the database configuration file
Hi guys,
i am getting this error after I changed my database configuration file.
After doing so, I cannot start my webserver, generate new files, etc. Can
anyone tell me how to solve this, and why is it doing what it is doing?
c:/ruby/lib/ruby/1.8/yaml.rb:119:in `load'': parse error on line 22, col 11:
`'' (
ArgumentError)
from c:/ruby/lib/ruby/1.8/yaml.rb:119:in `load''
2010 Sep 02
1
Error No such file or directory
Hi,
I have a website deployed on heroku, but my local git repository was
ereased, so I m trying to create a new local repository pulling my
deployed site. I run : git clone -o heroku git-Vgi1d2+GxVTQT0dZR+AlfA@public.gmane.org:my_app.git,
but now when I run script/server I get this error msg:
pedro@ubuntu:~/proj/my_app$ script/server
=> Booting WEBrick
=> Rails 2.3.8 application starting
2013 Feb 05
3
dashboard permission issue
I''m having trouble getting puppet dashboard (1.2.21) to run on apache.
i installed puppetmaster-passenger and puppet-dashboard package. It didn''t
create user puppet-dashboard automatically as stated in the installation
guide,
so i created one manually and chowned all files under /puppet-dashboard.
when testing with webrick everything works fine (as root).
when i try with
2007 Dec 11
2
RoR Error When Doing: rake db:schema:load
Hey, I am new to this and I thought I had finally set up everything
perfectly after three days of trying to configure it. However I run this
command:
rake db:schema:load
and I get an error "syntax error on line 23, col 11: `''". The error
however is now with the schema it''s with the ruby install itself as you
can see with the trace I ran:
2006 Jun 20
4
Newbie Question to Get Rolling on Rails
I''m not sure if this is the right place to ask such questions. If not, my
apologies and please direct me where such questions are handled.
I am new to RoR and have been following the tutorial in Agile Web Developement
with Rails. I have successfully gotten RoR up and running on my Mac (OS X
10.4.6) and created a MySQL database. However, on page 57 of the tutorial, the
command
2009 Feb 10
3
scaffold macro problem
Hello,
I am using Komodo Edit 5.0 for ROR. I have made the database by using
the macros in it. But when I make model using sacffold, I get error. The
details are given below:
C:/Ruby/lib/ruby/1.8/yaml.rb:133:in `load'': syntax error on line 22, col
2: ` password:'' (ArgumentError)
from C:/Ruby/lib/ruby/1.8/yaml.rb:133:in `load''
from
2006 Sep 15
2
unable to figure out how to get backgroundrb.yml to be used when starting backgroundrb
i ran rake backgroundrb:setup and modified the default
config/backgroundrb.yml file as:
---
port: "22223"
timer_sleep: 60
load_rails: true
environment: production
host: localhost
database_yml: config/database.yml
acl:
deny: all
allow: localhost 127.0.0.1
order: deny,allow
and my database.yml
production:
adapter: mysql
database: chip2_production
username: xxxxx
password:
2005 Dec 22
0
Getting AdapterNotSpecified on simple script/generate
So even after installing the sqlite3-ruby gem without issues, I still
get this error when I try to generate a model...
Attempting local installation of ''sqlite3-ruby''
Local gem file not found: sqlite3-ruby*.gem
Attempting remote installation of ''sqlite3-ruby''
Select which gem to install for your platform (powerpc-darwin8.3.0)
1. sqlite3-ruby 1.1.0 (mswin32)
2006 Jan 08
5
parse error in database.yml
Since upgrading to rails 1.0 I keep getting a parse error in database.yml.
I have tried multiple configurations of both mysql and postgres and
continue getting this error message when trying to generate a model or
scaffold.
-Andrew
2011 Mar 31
1
Question about setting database config without database.yml
A little background.
We are deploying a rails app on jboss by using warbler and the app is
using rails 3.0.3.
There are several parameters the customer may need to change. Some of
these parameters include database connection information, ie shema,
username, password, host, port, and database. We are connecting
through oracle thorugh the jdbc adapter.
My problem lies in the fact that I cannot