Displaying 20 results from an estimated 1100 matches similar to: "One of my attributes is nil, but it shouldn''t be"
2005 Dec 12
2
Using a lib in YAML fixtures
I''m using the runt library [1] to do some temporal expression
matching. I want to keep the expression in a binary field in my db.
I figured that then in order to do the fixtures, I''d need to do some
erb in the yaml file. So I came up with this:
onetime:
id: 1
name: One Time
description: This event occurs only one time.
timex: <%= REYear.new(7) & REMonth.new(24)
2006 Jan 19
3
lighttpd config on os x
I finally got around to installing lighttpd on my mac for dev work,
followed the instructions at
http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger
When I go into my rails app and type "./script/server" I get the
following errors:
baggio:~/work/teore pergesu$ ./script/server
=> Booting lighttpd (use ''script/server webrick'' to force WEBrick)
2015 Jul 24
0
libvirt events and Ruby's EventMachine
Hello,
I'm trying to adopt the Ruby event example from here
https://www.libvirt.org/ruby/examples/event_test.rb to use EventMachine (a
library for writing event driven programs).
I have attached my attempt, which appears subscribe to events but never
executes the callbacks I provide. I know this because when I reset domains
(virsh reset VM) I see messages appear from the
2005 Dec 12
9
Webrick is being stupid...no info on a brand new project
I created a project, made a migration, generated scaffolding...start
up webrick and I get nothing. To simplify things, I just started
another project and generated a controller, still getting nothing.
The index page loads fine, but nothing beyond that. If I go to
anything that should give me a 404, the page is just blank. The
Webrick console just says a 500 (nothing explaining why), and
2012 Nov 16
2
Failed to build libvirt-1.0.0-1.fc17.src.rpm on a CentOS 6.3 system
Hi, List,
I am seeing following problems when building libvirt-1.0.0-1.fc17.src.rpm.
The first failed test case is xml2sexprtest as you can see below.
$ sudo rpmbuild -ba SPECS/libvirt.spec
+ make check
TEST: virshtest
........................................ 40
........... 51 OK
TEST: sockettest
...................................... 38 OK
2006 Jul 30
1
Bug? find_by_id(nil) returns object just created
Tried to submit a ticket in Trac, but it reported an error...
Doing a Model.find_by_id(nil) after creating an object of type Model returns
that object -- and the next time, returns nil. It should always return nil.
For example,
Step 1. Create an object:
>> Foo.create(:name => "bar")
=> #<Foo:0x2aaaac3ade20 @new_record=false,
2010 Oct 21
4
Authlogic + Rails3 - undefined method `Login' for nil:NilClass
Im new to Rails, and decided to start of with Rails3. After a lot of
searching ive managed to get a little bit of Authlogic working. I''m able
to register a user, login & logout.
Now, I would like to add more features, get more of authlogic working.
I''m using Railscast EP 160 as my reference.
Portions of the code found on the tutorial throw errors: Eg:
<!--
2005 Dec 22
0
Lighttpd/fastcgi config - what does "the error-handler was not found" mean?
I''m getting an error about not finding the error-handler. I can''t
find anything of use in the production log.
2005-12-22 12:38:14: (connections.c.1383) Warning: Either the
error-handler returned status 404 or the error-handler itself was not
found: /dispatch.fcgi
2005-12-22 12:38:14: (connections.c.1385) returning the original status 404
2005-12-22 12:38:14:
2006 Aug 11
2
Shouldn''t CRUD be CRUDS?
With most models, almost always I find myself writing Search/Find
actions. When I view a Listing of a model, I want to look at another
record or set of records. How nice it would be if I can do a
query-by-example while viewing a Listing, or during Show/Edit/Create.
Would be nice if Search becomes another act in the scaffolding magic.
This wish has been expressed here before. Since then, has
2007 Apr 11
0
Fwd: [ mocha-Bugs-6416 ] Mock objects shouldn''t define #to_s
---------- Forwarded message ----------
From: noreply at rubyforge.org <noreply at rubyforge.org>
Date: 11-Apr-2007 15:07
Subject: [ mocha-Bugs-6416 ] Mock objects shouldn''t define #to_s
To: noreply at rubyforge.org
Bugs item #6416, was opened at 2006-10-31 15:34
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=7477&aid=6416&group_id=1917
2005 Jul 11
0
Shouldn''t use autocomplete for absolute-positioned elements?
I''d like to tap in to the expertise here on this list. The
autocompletion box at raildock.mytechsupport.com is a bit of a hack
right now--the drop-down box is quite a ways off from where it should
be, and it would be even further off if I hadn''t hacked controls.js
to subtract a few pixels from its location on screen.
Is there some guidelines for where and how to place a
2008 Mar 17
1
Shouldn''t should return true?
''cause it doesn''t...
This is an issue for nested custom matchers, ie:
module CRFT
class RFT
def initialize(args)
blah
end
def matches?(target)
"Yeah, baby!"
end
end
def r_f_t(args)
RFT.new(args)
end
end
module CRLT
class RLT
include CRFT
def initialize(args)
blag
end
def matches?(target)
2006 Feb 16
0
Shouldn''t mailers be controllers?
Anybody else think that mailers are more like controllers than models?
After all, they even have associated views. And they''re not associated
with any data (like a database table). Furthermore, if they were
controllers, you could use url_for in their templates!
Joe
--
Posted via http://www.ruby-forum.com/.
2006 Oct 31
0
6266620 mi2cv shouldn''t #include <note.h>
Author: wesolows
Repository: /hg/zfs-crypto/gate
Revision: 38b525e0deacf617b34ac0322921cb3424c11a0a
Log message:
6266620 mi2cv shouldn''t #include <note.h>
6285975 nightly can lie about the compiler being used for amd64 compilation
6297567 cw is needed for compiler-independence on SPARC
Files:
update: usr/src/Makefile
update: usr/src/Makefile.master
update:
2006 Oct 31
0
6390254 fpc shouldn''t clutter sun4v unix with specialized hypervisor definitions
Author: schwartz
Repository: /hg/zfs-crypto/gate
Revision: f5f3bfec5aa8a6e68f91ded399aa52be0424cd76
Log message:
6390254 fpc shouldn''t clutter sun4v unix with specialized hypervisor definitions
6390258 fpc should use hypervisor versioning APIs when available
6393704 pcitool dumps core with invalid options
6396857 fpc module causes boot-time panic on non-fire pcie hostbridge
6402441 sun4v
2005 May 03
2
problem with filters - packets ''slipping'' through them when they shouldn''t
Hi!
I''m trying to shape my internet connection traffic using hsfc and I''ve
encountered the following problem (may not be connected with hfsc).
on my lan interface I shape incoming traffic like this:
tc qdisc add root dev eth1 handle 1: hfsc default 1003
tc class add dev eth1 parent 1:0 classid 1:1003 hfsc ls rate 10kbit ul rate
10kbit
tc class add dev eth1 parent 1: classid
2006 Mar 12
0
ERB and Builder template engines shouldn''t be so heavily wired in ActionView::Base
Problem:
1. ERB and Builder template engines are heavily wired in ActionView::Base
2. Should be optional. If we use different engine - why load all their
stuff if not needed?
3. There are template engines which expect files in their own locations
and cache them in their own way. For instance a template engine may
store templates in a database. These engines don''t need any central
source
2006 Jan 12
2
Engines issue: rake test_plugins failing when it shouldn''t
I create a simple engine with a simple controller:
class FredController < ApplicationController
def hello
render :text => ''Hello, world!''
end
end
and I create a simple functional test within the engine:
class FredControllerTest < Test::Unit::TestCase
...
def test_hello
get :hello
assert_response :success
end
2006 May 26
4
shouldn''t this work? - session[:array_of_objects].delete_if {|x| x.id == params[:id]}
I am saving an array of active record objects (college courses) in the
session as session[:course_list]. This is the cart for a registration
controller.
If a student chooses to delete the course from the list I get the :id
as params[:id].
However if I do
session[:course_list].delete_if {|x| x.id ==params[:id]}
does not work.
session[:course_list].delete_at(idx)
works. Ocourse to do this I have
2011 Mar 14
8
pvops0 kernel 2.6.32.x still does not boot if x > 18, shouldn''t that be fixed for release of Xen 4.0.2/4.1
Hello Jeremy & Keir,
sorry to be persistent, but the problem that pvops0 kernel 2.6.32.x
still does not boot if x > 18 on my machines (and on many other
machines, see this mailing list) is not solved yet.
Shouldn''t this be a great focus of debugging and fixing?
What is the point of having releases for 4.0.2 or 4.1 if I don''t have a
dom0 kernel?
The last time I tried