Displaying 20 results from an estimated 1000 matches similar to: "Anyone know why __END__ and DATA don't work in Rails?"
2009 Aug 14
9
Rescuing from REXML::ParseException
Hello,
When I call an action with some invalid XML or JSON data a parse
exception gets raised from within Rails/Ruby (REXML or
ActiveSupport::JSON). The problem that I''ve got is how to handle these
exceptions. In my application_controller.rb I have the following for
debugging purposes:
def rescue_action_in_public(exception)
respond_to do |request|
request.all { render :text =>
2009 Apr 07
12
Problem with MYSQL after re-installing rails
Hey all-
Re-installed OSX yesterday and with it, Ruby and Rails
Now when I try to run db:migrate I get the error message:
"!!! The bundled mysql.rb driver has been removed from Rails 2.2.
Please install the mysql gem and try again: gem install mysql.
Rake aborted!
no such file to load -- mysql"
So, I try sudo gem install mysql -- --with-mysql-dir=/usr/local/mysql
And get:
2009 Feb 26
8
beginners question
hi group,
I am making a little rails app to experiment with rails. It consists
of one model, item, that represents an item on a todo list.
A todo item has a description, a state (finished or not) and a due
date.
After changing the scaffold screens a bit, I wanted to be able to
have no due date. I tried to do this by making a radio button; if ''no
date'' is selected, the date
2009 Jul 20
9
rake error
When I run rake test:units I get this error:
292 tests, 350 assertions, 2 failures, 13 errors
rake aborted!
Command failed with status (1): [/usr/local/bin/ruby -I"lib:test" "/
usr/loc...]
This error just showed up yesterday --- I have no idea how I caused
it. Here is my gem list in case that helps:
actionmailer (2.3.2, 2.2.2)
actionpack (2.3.2, 2.2.2)
activerecord (2.3.2, 2.2.2)
2009 Aug 25
17
WHy is rails so annoying to deploy?
I''ve been having great fun trying to deploy a fresh install of rails on
debian, specifically xlsuite to test it out, but my god how many more
errors can I take before I give up.
RAILS IS NOT NICE
After battling with countless different errors from trying Ubuntu,
Fedora, Windows and now Debian the list goes on and on and ON...
now the latest error
`load_missing_constant'':
2009 Mar 15
5
Setting DEFAULT_FIELD_OPTIONS in Rails 2.3
Hi,
I''m having some trouble overriding/defining the default_field_options
constant without raising a warning. I''ve tried adding the code to do
it in an initializer but that produces a warning (because the constant
is already frozen), after some googling I found a recommendation to
put it in the environment.rb file but that then that throws
uninitialized constant ActionView
2005 Jun 22
17
[PATCH] fix broken ACM
The latest change to ACM makes it fail to compile. This patch fixes the problem.
Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
$ diffstat acm.patch
acm/acm_core.c | 61 ---------------------
include/acm/acm_hooks.h | 135 ++++++++++++++++++++++++++++++++++--------------
2 files changed, 96 insertions(+), 100 deletions(-)
_______________________________________________
2011 Jun 16
2
Save the results of data analysis in R
Hi everyone,
I want to do data analysis using the values retrieved from a MySQL
database. Is there a way to save the results of data analysis in R.
[[alternative HTML version deleted]]
2004 Feb 08
2
xeno-1.2.bk compilation question?
The system is Mandrake-9.1 Linux wih gcc-3.2.2.
I am trying to compile xenolinux-2.4.24 (with vanilla sources from
ftp.kernel.org for linux-2.4.24). The steps of
mkbuildtree
ARCH=xeno make menuconfig
ARCH=xeno make dep
produce no errors, but
ARCH=xeno make bzImage
results in following error messages.
Any pointers will be appreciated.
-ishwar
---
gcc -D__KERNEL__
2008 Oct 07
7
Rails production version not accessible from other machines
Hi,
I just deployed my first rails application in production mode using
Capistrano and mongrel clusters. Here are the lines in my
mongrel_cluster.yml file.
cwd: /myrailsdeploymath/current
log_file: log/mongrel.log
port: "8000"
environment: production
address: myserver.mydomain.org
id_file: tmp/pids/mongrel.pid
servers: 3
My development and production machine are the same.
When I run
2005 May 16
6
x86_64 build broken?
I am not able to build the latest x86_64 xen-unstable on SLES9 SP1
x86_64. Here is the build output. Am I doing anything wrong here?
Aravindh
gcc -DPIC -m64 -Wall -Werror -O3 -fno-strict-aliasing -I
../../tools/libxutil -I. -Wp,-MD,.xc_ptrace.opic.d -fPIC -c -o
xc_ptrace.opic xc_ptrace.c
In file included from /usr/include/asm/sigcontext.h:4,
from
2005 Sep 08
4
Booting FreeBSD diskless in DomU
Using the 2.0.6 demo cd image, I booted the supplied freebsd image and rsync''d
the file system to an NFS server. However I don not seem to be able to
succesfully boot from it the system just hangs here:
xn0: bpf attached
xn0: Ethernet address: aa:00:00:61:1c:d4
lo0: bpf
I have modified /sbin/start_freebsd.sh and /etc/xen/freebsd.py to generate
the following configuration:
xendemo:~#
2003 Oct 21
7
Help on domain creation
Hi all,
I am running the current xen-unstable and had the following error message
when trying to create domain1.
# ./xenctl script -f/etc/xen-mynewdom
Domain defaults:
name XenoLinux
size 98304
vifs 1
domainImage /boot/xenolinux.gz
domainInitRD null
rootDevice /dev/hda5
rootArgs rw
usrDevice null
NWIP
2011 Jun 14
1
Setting up RODBC or RMySQL package.
Hi all,
I have installed RODBC package. But am not able to connect it for using
MySQL. For accessing MySQL Db a connector is required.For that can i use the
mysql db which is a part of WAMP server or use separate mysql db.
I know there is a package called RMySQL. But i find it very difficult to
install the RMySQL package under .Which is better one for accessing MySQL
Database.
Thanks
Amrita
2004 Aug 28
4
iSCSI root
As promised, here''s what I did to get iSCSI root running under XenU under Debian 3.1 (Sarge):
Be running linux 2.6 under XenU.
Build XenU with SCSI disk support (I did them as modules)
Get linux-iscsi 4.0.1.8 from http://sourceforge.net/projects/linux-iscsi/
Build it according to the instructions there (i found it a bit tricky) and install under your XenU
Get iscsi-init 4.0.1 from
2011 Jun 20
2
analysis with the data from mysql database
Hi everyone,
I have certain values retrieved from mysql database.How can i do
certain analysis like histogram, correlational analysis tc using this data,I
tried it. But when i tried to plot a histogram it actually showed error the
data is not numeric evenif it was stored as integer data type in mysql db.
Please anyone help. Can anyone specify the steps for doing data analysis
after
2011 Jun 08
5
Can we prepare a questionaire in R
Is there a way to prepare a questionnaire in R like html forms whose data
can be directly populated into R?????
[[alternative HTML version deleted]]
2005 May 17
4
device mapping
Hi,
How do I map certain pci devices directly into a user domain?
Has anybody done this? Any leads would be appreciated.
thanks
deepak
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
2003 Dec 09
2
modules and hypercall
Hello,
I''m trying to write a module to play with hypercall. So I wrote the following
module:
-------------------------xvifgetinfo.c----------------
/*
* xvifgetinfo.c
*
* The routines in this file are used to get information about virtual
* network interface provide by Xen.
*
*/
#include <linux/module.h>
#include <linux/init.h>
#include <linux/kernel.h>
2004 Feb 12
5
Re: The Problem of Creating a domain
> [6] ctivating swap partitions: swapon: /dev/hda7: No such device or address
> [6] [FAILED]
> [6] ioctl 80041272 not supported by xl_block
> [6] Finding module dependencies: depmod: Can''t open /lib/modules/2.4.24-xeno/modules.dep for writing
> [6] [FAILED]
> [6] Checking filesystems
> [6] Couldn''t find matching filesystem: LABEL=/policy
Edit your