Displaying 20 results from an estimated 600 matches similar to: "error running generate scaffold - doesn''t see table which is there"
2006 Mar 05
1
encoding: utf8 in database.yml causes error
Hi
Using ruby 1.8, rails 1.0, mysql 4.1.11
in database.yml:
adapter: mysql
encoding: utf8
database: myproject_development
username: user
password: password
socket: /var/run/mysqld/mysqld.sock
but when I start the error I get:
Can''t initialize character set utf8 (path: /usr/share/libmysqlclient/charsets/)
Can anyone tell me what file it''s looking for, and how I
2008 Feb 12
1
create with virt-install hangs
Hi
I am just starting with xen and trying to get a few vm''s running on
this pentium 4 system. I tried using virt-install to start things. I
am using this link as the install base:
ftp://download.fedora.redhat.com/pub/fedora/linux/core/6/i386/os/ ,
and a local file as hard drive.
What happens is that virt-install downloads the kernel, boots, a VNC
window for the new VM appears, but it
2008 Feb 13
1
can a class have the association has_itself?
is it possible to implement a recursive foreign key association like
that?
i''m writing a vocab app, where i want the vocab table to have an id
and two foreign keys, word1 and word2.
the word table will have an id, a word-string, and a language
i''m trying to do this as follows:
class Vocab < ActiveRecord::Base
belongs_to :word
belongs_to :word
class Word <
2009 Apr 11
1
Error in R CMD check 2.8.1
Env: R 2.8.1, Win Xp, Eclipse/StatET
In a .Rd file, I have an example containing the lines:
# calculate Y M, using polynomial contrasts
trends <- as.matrix(VocabGrowth) %*% poly(8:11, degree=3)
colnames(trends)<- c("Linear", "Quad", "Cubic")
[At the risk of a long message, I'll append the complete .Rd file at the
end of this message, in case this was
2009 Nov 15
2
Trying to multiboot bartpe & puppy linux on a usb flash with syslinux
Hey list,
I have an older 2005 Uniwill 259ia3 with a Phoenix bios.
Flash booting is limited to keys 512 MB or less!
Here's my setup recipe:
used the HP utility v. 2.0.6 giving me this geometry
---------------- fdisk -l -----------
Disk /dev/sdb: 493 MB, 493879296 bytes
255 heads, 63 sectors/track, 60 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start
2006 Apr 20
1
generate scaffold not generating views
Hi!
Sorry for the newbie question...
I''m following the depot example in AgileWebDevelopmentWithRails.
Stangelly, generating scaffolding using the command (page 53):
./script/generate scaffold Product Admin
does not generate any .rhtml file, but just:
exists app/controllers/
exists app/helpers/
exists app/views/admin
exists test/functional/
2006 Oct 02
1
Scaffold problem with PostgreSQL
We are having a problem scaffolding with PostgreSQL. We are following the
depot tutorial from the AWDWR and it gives problems:
$ ruby script/generate scaffold Product Admin
exists app/controllers/
exists app/helpers/
exists app/views/admin
exists test/functional/
dependency model
exists app/models/
exists test/unit/
exists test/fixtures/
2006 Mar 28
2
Problem with generating a scaffold with an Oracle DB
Hi all,
I have confgured my oracle application with the Oracle Express
Production release database. This all is configured well and tested(I
can see that he founds the database). However, when I generate a
scaffold application there is no view for the CRUD functions created for
the application.
Below is listed what is generated for me for a Products table:
E:\workdir\ruby\depot>ruby
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
>
2011 Dec 01
2
Summarizing elements of a list
Hi everyone,
I looked around the list for a while but couldn't find a solution to my
problem. I am storing some results to a simulation in a list and for each
element i have two separate vectors(is that what they are called, correct my
vocab if necessary). See below
Version1_<-list()
for(i in 1:5){
Version1_[[i]]<-list(First=rnorm(1),Second=rnorm(1))
}
What I want is to put all
2012 Oct 10
3
Numeric "Label" of Factor value?
Sorry, I'm sure I'm not using the appropriate vocab here, which is
undoubtedly why I can't seem to find a fix to this (hopefully very
easy) problem.
Suppose you have a factor
abc <- factor(c(2,2,3,4,7,7))
And you want to know what the number in the nth spot in that would be
abc[1]
[1] 2
Levels: 2 3 4 7
shows the correct label of the first element - but if I want to pull
out the
2006 Apr 20
8
generate scaffold not generating views
Hi!
Sorry for the newbie question...
I''m following the depot example in AgileWebDevelopmentWithRails.
Stangelly, generating scaffolding using the command (page 53):
./script/generate scaffold Product Admin
does not generate any .rhtml file, but just:
exists app/controllers/
exists app/helpers/
exists app/views/admin
exists test/functional/
2006 Jul 26
1
Files left open
I've had this problem for awhile, but it didn't seem to make sense to pursue
it with 3.0.23 coming out. Now I'm running 3.0.23a on AIX 5.1 ML3 (although
I've seen this on 5.3 as well). So I'm back asking for more help.
I have a program running in a Win2K box using Dialogic libraries. When the
dialogic code speaks a prompt, it is given a file name and it speaks
directly
2006 Jul 06
0
problema con i test automatizzati
ciao a tutti.
come al solito, sto andando avanti a piccoli passi nel creare
l''applicazione depot del libro "Sviluppare Applicazioni Web con Rails".
Ora mi trovo nella fase di creazione dei test automatizzati.
Ma c''è una cosa che proprio non capisco:
Ho la seguente classe in ~/depot/test/unit/product_test.rb
require File.dirname(__FILE__) +
2006 Mar 04
2
unittest, not loading yml data
Here is my products.yml
version_control_book:
id: 1
title: Pragmatic Version Control
description: How to use version control
image_url: /images/sk_svn_small.jpg
price: 29.95
date_available: 2005-01-26 00:00:00
automation_book:
id: 2
title: Pragmatic Project Automation
description: How to automate your project
2005 Dec 31
2
Test Unit Problem
Hello All,
I am experiencing the following test unit error working with Rails that
I can''t fathom.
I have a products.yml file which holds the following test fixture for
the products table:
dell_pc:
id: 1
title: Dell PC
description: Dell PC
image_url: http://.../pc_image.jpg
price: 15000.00
date_available: 2005-12-31 06:53:00
I also have the following product_test.rb file to
2009 Dec 28
1
kvm windows 7 attempts: amd 2, intel 0
Hello,
To explore kvm installs via Virt-Manager, I tried win7 installs in 3 different hosts. All 3 have 2G of RAM or more.
Windows 7 Ultimate in 2.5 GB DVD ISO
1) Centos 5.4, AMD am2, Athlon 64 x2 4600+
works 2nd attempt after setup of Br0 (bridged network)
virt-manager-0.6.1-8.el5
kvm-83-105.el5_4.13
2) OpenSuSE 11.2, AMD am2, Athlon 64 x2 5200+
works with defaults
2009 Dec 17
0
acpi for Intel p45 chipset (C2Duo)
Hello,
First time I install Centos (5.4) on a consumer Intel Motherboard. I've done 5+ AMD (am2 form factor) installs.
The MB is Gigabyte ep45-ud3r with a CPU:Intel LGA 775 E7600 wolfdale
I cracked the lm_sensors nut with 2 modules and lm_sensors from elrepo. The modules were
kmod-coretemp
kmod-it87
Now I'm trying to get cpuspeed to behave, or at least understand what it's
2010 Jan 28
0
bind a web root sub-folder to /usr/share/xxyy
This is OT, but what is the RH/Centos best practice for this scenario.
I have a web root under control of user webmaster.
In /etc/fstab
----------- snip ------
/var/www/dev /home/webmaster/www_dev none bind 0 0
--------- unsnip ------
ls -al /var/www/dev/
drwxr-xr-x 10 webmaster webmaster 4096 Jan 28 14:21 dev
what I'd like to do is bind /usr/share/xxyy to /var/www/dev/xxyy
2006 Mar 09
4
Strange Unit Testing error - newbie question
I''m fairly new to Rails, and I''ve been learning from AGILE WEB
DEVELOPMENT WITH RAILS. Everything has been going smoothly until the
chapter on Unit Testing, where I''m getting some strange errors.
I''m up to page 141 in the Agile book, and attempting to run the test
program containing the method test_read_with_hash. The previous tests
work properly, but I