Displaying 20 results from an estimated 400 matches similar to: "(ActiveRecord::AdapterNotSpecified) Error"
2006 Jan 14
5
New problem with Mac OS X + rails + mysql. Please help!
All,
I am working through the ''depot'' sample application from the
"Pragmatic Programmers" book on my
powerbook. I was going through the install process on
http://hivelogic.com/articles/2005/12/01/
ruby_rails_lighttpd_mysql_tiger and it seemed to work fine.
But when I try to create the first table, I get the following error,
and I have no idea what this means.
Any
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:
2006 Mar 30
13
Trying Agile book, found problem
Pg. 57 of Agile asks you to create a scaffolding by typing in
ruby script/generate scaffold Product Admin
Instead of generating everything, it only gives me
exists app/controllers/
exists app/helpers/
exists app/views/admin
exists test/functional/
dependency model
exists app/models/
exists test/unit/
exists test/fixtures/
identical
2006 Apr 11
0
Problem using generate/scaffold and FireRuby
Hi to all,
I am trying to use "ruby script/generate scaffold product". I always get
the message "uninitialized constant CHARACTER_SET". I have a products
table in a Firebird database called depot_development.fdb. Here is my
config file :
> common: &common
> adapter: firebird
> host: localhost
> username: SYSDBA
> password: masterkey
>
2006 May 06
4
Scaffold Uses Wrong Host for MySQL user
I''m following the example Depot app in Agile Web Development with Rails.
The scaffold fails because it is not using the correct host for the
user. Here is the error that the scaffold emits:
Access denied for user ''jimmy''@''%'' to database ''depot_development''
The MySql user ''jimmy'' was created with the host of
2007 Oct 06
6
Instant Rails mySQL Error
I have tried everything in my power to get this program up and running
and it is not working for me. I have installed RoR on my Windows XP
machine. I have Instant Rails and Ruby on Rails and I am using Instant
Rails to connect the mySQL database to Ruby on Rails. It is not
working.
Everything works fine except when I create a scaffold it gives me an
error in mySQL.
The error reads,
">
2006 Feb 20
18
Win XP/ Mysql Problem
I''ve searched everywher for an answer to my problem, and the only thing
I''ve found is people with the same problem. I''m hoping someone has an
answer here:
I''m working through the agile web developement with rails book and when
I goto scaffold the products table I get the following message.
exists app/controllers/
exists app/helpers/
exists
2006 Jan 18
5
access denied problem
Hello
I''ve started working through the book "Agile web development with
Rails" and so far everything has been great.
I''m on page 56, 57 trying to create the admin tool for the example
project "Depot".
I''m on OS X Panther 10.3.9. I have checked the Errata on the website
and tried some of the suggestions there, but nothing has worked. When
I
2012 Aug 31
1
after_fork - ActiveRecord::AdapterNotSpecified
Hi all,
I''m fighting with the after_fork hook and my sinatra application. The Sinatra app is using active_record,
In my unciron.rb file I''m using
preload_app true
after_fork do |server, worker|
? defined?(ActiveRecord::Base) and
??? ActiveRecord::Base.establish_connection
End
but I always get the error:
ERROR -- : ActiveRecord::AdapterNotSpecified
2006 Aug 13
1
establish_connection method
I''m digging into rails source code.
But I''ve got a problem in undestading actionrecord::base source code
which is connection_specification.rb.
In the body of establish_connection method,
def self.establish_connection(spec = nil)
case spec
when nil
raise AdapterNotSpecified unless defined? RAILS_ENV
establish_connection(RAILS_ENV)
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 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 Jul 20
3
Instant Rails not finding database
Hey there
I''ve got instant rails installed, and it''s phpmyadmin can find the
database at the ascribed mysql port (3210)
...however, altho i have got my ''depot_development'' db in there (along
with the other dbs that ship with instant rails)... the rake script from
the instant rails command interface cant find ''depot_development''.
Looking at
2006 Mar 28
3
I hope this is not spamming
I do not want to get the reputation as a spammer and be hated by the ruby and rails community??!
But where are the best forums for help with rails and ruby please, and which ones are the most user freindly?
I have a little tech problem:
I have a lap top running xp home service pack two
and I have installed ruby 1.8.2 and rails 1.0.0 I also have mysql 4.1.16-nt via tcp/ip running on the laptop, so
2006 Apr 12
5
Rails talking to MySql (cygwin on Windows XP)
Hello fellow RoR users,
I am a newbie and I thought RoR is so easy to set up and that I would
be saving so much time -- but I am still waiting to save time because I
simply couldn''t get Ruby/Rails to talk to MySQL (5.0.18) at all.
Here are the steps that I have examined:
1) I look at dabatbase.yml and put in the right information to talk to
the database I have set up (the
2006 Jan 06
8
Rails Troubles
Greetings:
I have been attempting to get rails + mysql working for me literally
all day. I am on a Windows XP SP2 machine using the latest one-click
installer for ruby and gem for rails.
What am I missing here? The rails and mysql db do not want to talk
to each other properly. I tried to do a gem install mysql to get the
latest mysql and that always crashes because it seems to be
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:
2006 Feb 28
10
Scaffold command, how and what may be wrong?
hi everyone. I am learning RoR and just recently purchase the agile wed
dev on rails. i am still at the beginning of the book trying to create
the scaffold for the depot_development database. Everytime i run the
generate scaffold products admin, i recieve the "before building the
scaffold, try to create a table for model products" etc...
a few questions:
1. How does ruby know that
2006 Jun 24
2
Migrations problem with Agile Rails book
I am following the instructions on Agile Web Development with Rails book "Iteratio E1: Capturing
an Order" section. When I run the migrations I get the following error.
rake db:migrate
(in /Users/balaparanj/work/depot)
-- execute("alter table line_items \n
add constraint fk_line_item_products \n
foreign key (product_id) references products(id)")
rake
2006 Feb 28
3
Agile Web Development Example Application Question
I''m new to Ruby and to fairly new to programming. I''ve been working
through the "Agile Web Development with Rails" book, and I''m stuck on page
73 of the print version. The book''s online errata directed me here with my
questions.
I''m running Ruby 1.8.3 with MySQL 4.1.8 on OSX 10.3.9. I''ve created the
scaffolding for Admin controller