Displaying 20 results from an estimated 2000 matches similar to: "Trying Agile book, found problem"
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 Jan 14
1
(ActiveRecord::AdapterNotSpecified) Error
All,
I am on Mac OS X 10.4, went through all the installation steps for mysql
and ruby on rails. Now, I am getting this error when
trying to start webrick or when trying to create the tables:
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/
connection_adapters/abstract/connection_specification.rb:73:in
`establish_connection'': development database is not
configured
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
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 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 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
2005 Dec 22
13
in-memory SQLite for testing
I am following the rails book, and arrived to the section about
testing. The test database is configured as:
test:
adapter: sqlite3
database: ":memory:"
and I get this error with the simple product test:
% ruby test/unit/product_test.rb
Loaded suite test/unit/product_test
Started
E/usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0/lib/sqlite3/
errors.rb:94:in
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 Mar 31
14
[newbi] Create a Model
Hello All,
Yesterday i put RoR with Locomotive. I am very happy :p.
So I follow this tuto
(http://developer.apple.com/tools/rubyonrails.html). I used Sqlite.
my database.yml
# MySQL (default setup). Versions 4.1 and 5.0 are recommended.
#
# Get the fast C bindings:
# gem install mysql
# (on OS X: gem install mysql -- --include=/usr/local/lib)
# And be sure to use new-style password
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
2006 Sep 26
1
Error while generating scaffold
Hello,
When I run the command:
"ruby script/generate scaffold Product Admin"
I receive the following error after the usual changed files info:
"Couldn''t find ''product'' generator"
The command is based on "Agile Web Application Development with Rails"
first edition on page: 57. Just to give some context to what I am
doing, I just created
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 May 09
4
Agile Web Development with Rails
Hi,
I''m new to Ruby, Rails and MySQL...
Before Dropping my database, I went back to a previous Grant problem.
On page 54, there are three create database commands...these all worked
fine for me.
I then tried the following Grant command:
Grant all on depot_development.* to ''dave''@''localhost'';
I got back the following error message:
Error 1133 (42000):
2016 Oct 20
2
queue_log/cel sqlite
hi,
is it possible log cel/queue_log to sqlite?
via odbc?
any experience?
marek
2006 Feb 05
8
Agile Rails book: depot problem
I recently finished the first part of the "Agile Rails" book. But, the
depot doesn''t completely work as it should. I still have 2 problems:
I will explain them in 2 threads.
The first one is:
I can''t destroy products (I can only creat and update them). When I try
to delete a product --> http://localhost:3001/admin/destroy/3
I get this error message:
2016 Oct 20
2
queue_log/cel sqlite
On Thu, Oct 20, 2016 at 4:50 AM, marek cervenka <cervajs2 at gmail.com> wrote:
> i tested this
>
> # cat /etc/asterisk/extconfig.conf
> [settings]
> queue_log => sqlite3,cdrDb
>
> # cat /etc/asterisk/res_config_sqlite3.conf
> [cdrDb]
> dbfile = /var/lib/asterisk/realtime.sqlite3
>
> sqlite3 /var/lib/asterisk/realtime.sqlite3
>
> CREATE TABLE
2006 Aug 12
7
Override method in ActiveRecord
Hello,
there is a method ActiveRecord::Base#exists? . I would like to override
this method in a class ActiveRecord.
Could anyone tell me how to do it?
TIA
--
Posted via http://www.ruby-forum.com/.
2017 Feb 17
3
LLVM social in Italy anyone interested?
Hi all,
is there any Italian developer that can be interested in a LLVM social event/meetup in Italy?
Best,
---
Marco Bambini
http://creolabs.com
http://twitter.com/sqlabs
2005 Mar 09
10
mysql vs postgres
I''ve used mysql for quite some time now. Other than crashing when the
partition gets full, I''ve had no problems with it.
But I''ve heard great things about postgres and have seen some people
say it''s much superior to mysql.
So, with a Rails application, is there any reason why I would want to
learn/use another DB besides mysql? Any pragmatic benefits?