Displaying 3 results from an estimated 3 matches for "helpermethods".
2011 Feb 09
0
Weird error after upgrading to rails 3.0.4
Hey folks,
have you seen this ever?
[user@i ~/rails_project]$ rake rails:update --trace
(in /usr/home/rails_project)
rake aborted!
uninitialized constant ActiveModel::Validations::HelperMethods
/usr/local/lib/ruby/gems/1.8/gems/activemodel-3.0.4/lib/active_model/
validations.rb:50
/usr/local/lib/ruby/gems/1.8/gems/activesupport-3.0.4/lib/
active_support/concern.rb:52:in `class_eval''
/usr/local/lib/ruby/gems/1.8/gems/activesupport-3.0.4/lib/
active_support/concern.rb:52:in `append...
2011 Jan 17
4
Factory Girl and attr_accessor with validation
I have a problem with a recent change to one of my models when created
via Factory.create.
class User < ActiveRecord::Base
attr_accessor :tc_check
validates :tc_check, :presence => true, :acceptance => true
...
end
The following definition fails, when calling
Factory.create(:valid_user)
Factory.define :valid_user, :class => User do |u|
u.email
2009 Jul 20
9
Upgrade server to run on Rails 2.3.2/F11
Note that one of the 8 patches (#6) will be sent separately in reply
to this email, as some of the replaced lines are too long, so git
won't let me send the email. However, there is nothing wrong with
that patch, and it should be applied in the sequence listed below.
Note also that I assume this will be tested on a clean f11 install, rather
than an upgrade of an existing ovirt server