Displaying 20 results from an estimated 10000 matches similar to: "Rails Troubles"
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 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 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 02
11
rake db:migrate fail! bad descriptor
Dear All,
I am just getting into Ruby on Rails, after successfully failing at
getting any other programming language to work locally. RoR appears to
be a repeat! One problem I keep running into is getting a database up
and running.
I''m working out of Windows XP.
I installed MySQL, it works, runs, will create tables etc. BUT, when I
do rake db:migrate...it fails and tells me I have a
2006 Jan 28
10
Rails scaffolding - cannot get access to MySQL
Hi,
A newbie in the RoR world, I''m already more or less stuck when
generating the scaffold for my first tutorial project ...
When I try to generate scaffold code for my version of the ''depot''
application from the ''Agile rails ...'' book, I receive the following
error:
#28000Access denied for user ''bo''@''localhost''
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 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 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
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 Jan 05
5
Lost connection to Mysql
I''m trying to set up RoR on a laptop and having all sorts of troubles.
I''m running XP SP2, I did a quick install of appache/mysql using Xampp,
which worked fine.
I grabbed the latest windows install of ruby and rails, installed it ok
and got it running.
The moment I try to run a rails page that queries a database, it fails
every time, and I get the following error:
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):
2006 Jun 06
15
error working through Agile !!!
Hi everyone,
I''m working my way thru the ''Depot'' project from Agile Web Development
with Rails.
I got to the bit where I type:
ruby script/generate scaffold Product admin
And I get the following error:
error Before updating scaffolding from new DB schema, try creating a
table for your model (Product) ( on the last line ! )
Now I have followed everything as
2008 Jun 03
11
rake db:migrate not working
When I run the rake db:migrate command, I get this:
C:\testror\depot>rake db:migrate --trace
(in C:/testror/depot)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
rake aborted!
182: Le systÞme d''exploitation ne peut pas exÚcuter %1. - c:/ruby/
lib/ruby/gem
2012 Jan 05
4
mySQL: ERROR 1045: Access denied for user 'root'@'localhost' (using password: NO)
Hello, I am using InstantRails 2.0 on windows.
When building an app,I get this error when hit the browser(Action
ControllerException caught):
Access denied for user ''root''@''localhost'' (using password: NO)
-----------------------------------------------------------------------------------------------
The database.yml file is configured like this:
# MySQL.
2008 Oct 16
4
InstantRails and SQLite
Hy,
I''m using InstantRails for my RoR developments and it is really great.
However I have a little problem since a few days. Here is the
situation, I''m using InstantRails 2.0 with PHP 5.2.6 (I upgraded
following the InstantRails procedure). I''m using MySQL as a database
for my application but recently downloaded a forum (FluxBB) which need
SQLite to work. My problem is
2007 Jun 02
2
Unit tests breaks with sqlite
Hi,
I''m using an sqlite3 database with Rails and have some trouble running
unit tests
What I''ve done is
* rails my_app
* edited database.yml to use sqlite3 adapter, db/my_app_development
and db/my_app_test
* ruby script\generate model user
* edited model
class User < ActiveRecord::Base
validates_presence_of :name
validates_uniqueness_of :name
end
*
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:
2006 Jun 14
6
Lost Connection to MySQL
Error Message: MyMysql::Error: Lost connection to MySQL server during query:
SHOW FIELDS FROM products
Running Fedora 5, using available Red Hat modules and latest version of Rails.
This problem just appeared. I had been enjoying going through the tutorial "Depot"
when it started displaying this problem. With phpMyAdmin I am able to access the
depot_development data base containing
2010 Jul 02
22
MySQL not Connected ...... *pull hair*
I''m trying to run " rake db:migrate " and im getting an error back:
------------------------------------------------------------------------
C:\wamp\www\demoproject>rake db:migrate
(in C:/wamp/www/demoproject)
rake aborted!
Mysql::Error: query: not connected: CREATE TABLE `schema_migrations`
(`version`
varchar(255) NOT NULL) ENGINE=InnoDB
(See full trace by running task
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