search for: gcnovus

Displaying 6 results from an estimated 6 matches for "gcnovus".

2008 Jun 12
1
unidirectional belongs_to polymorphic
The setup: class Location::Base < ActiveRecord::Base set_table_name :locations ... end class Location::Address < Location::Base ... end class Location::Airport < Location::Base ... end class Person < ActiveRecord::Base belongs_to :location, :polymorphic => true, :class_name => "Location::Base" ... end I want a unidirectional belongs_to relationship. That
2008 Jan 02
1
assert_recognizes with requirements => {:method => something}
I''m having trouble with my routing, and was wondering if anyone else had seen something similar. I''ve got these two routes: map.login ''/login'', :controller => ''sessions'', :action => ''new'', :requirements => { :method => :get } map.connect ''/login'', :controller => ''sessions'',
2007 Aug 30
1
alias_method_chain stack level too deep in Rake test only
I have an odd error. I have the following module: module ActionController module SslSupport def self.included(base) raise "#{base} does not define url_for" unless base.method_defined?(:url_for) unless base.respond_to?(:url_for_without_ssl_supprt) base.send :include, InstanceMethods base.send :alias_method_chain, :url_for, :ssl_support end
2007 Jun 27
0
Rortlet, portlets on rails
I''ve started a new project to create a plugin for portlets in Rails. It''s at http://www.assembla.com/space/rortlet If anyone is interested, I''d love some help. Please email james@knowledgeincorporated if you want to help out. My vision for the first round is a framework that does essentially what Blogspot does. I want to have some default page objects
2007 Dec 21
0
db:migrate problem
I''m having a bit of trouble getting a rails project to build properly within cruisecontrolrb. My cruise task is in lib/tasks/my_project.rake, and looks like this: task :cruise => [''db:test:purge'', ''db:migrate'', ''db:test:prepare'', ''test:coverage:clean'', ''test:coverage:prepare'',
2007 Jul 25
1
strange rake behavior
I''m getting some really really really odd testing behavior. 1. Running rake test:units passes with flying colors. (Well, that''s not what I mean by weird, but I suppose it is ;) ) 2. Running rake test:functionals yields something like ..........................E..............EEEEE.......EEEE...rake aborted! But doesn''t print any stack traces or error message output