Virtual boolean field - uninitialized constant Hobo::Boolean::COLUMN_TYPE
Reported by Leonardo Frittelli | October 26th, 2009 @ 06:58 AM | in Hobo 1.0 - Final
I have added a virtual boolean field to my model (as described
in
http://cookbook.hobocentral.net/manual/hobofields/hobofields_api)
but
I am getting an error when assigning values to my field.
Here is my test code:
class MyBooleanTest < ActiveRecord::Base
hobo_model
attr_accessor :test, :type => :boolean end
t=MyBooleanTest.new
t.test = true
The error is
NameError: uninitialized constant Hobo::Boolean::COLUMN_TYPE
from
/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:105:in
const_missing' from
/usr/lib/ruby/gems/1.8/gems/hobofields-0.8.10/lib/hobo_fields.rb:66:in
can_wrap?'
from
/usr/lib/ruby/gems/1.8/gems/hobofields-0.8.10/lib/hobo_fields/model_extensions.rb:56:in
`test=' from (irb):58
in hobo_fields.rb, Boolean class is defined as "class Boolean;
end" so
it clearly does not declare a COLUMN_TYPE, as expected in
can_wrap?
Comments and changes to this ticket
-
Bryan Larsen October 29th, 2009 @ 10:52 PM
- Milestone set to Hobo 1.0 - Final
- Assigned user set to Matt Jones
-
Bryan Larsen October 29th, 2009 @ 10:53 PM
- State changed from new to open
-
Matt Jones November 10th, 2009 @ 04:22 AM
- State changed from open to resolved
-
johndavidd November 17th, 2022 @ 07:15 AM
When a boolean field is initialized, its value is automatically set to the corresponding Boolean type (i.e., true or false). If a boolean field is uninitialized, its value is automatically set to null. la times crossword
-
Amity Sherlock November 29th, 2022 @ 01:55 AM
The codes in your virtual boolean field are wrong that's why the system gives the error. Please correct those fields so that the program tetris unblocked can work.
-
Mathew23 December 19th, 2022 @ 03:04 AM
I also got the same error, fnf I'm stuck there for a long time
-
abuhamzailyas17 (at gmail) January 3rd, 2023 @ 11:28 AM
So lucky to come across your excellent blog. Your blog brings me a great deal of fun. Good luck with the site.
lean six sigma ohio -
abuhamzailyas17 (at gmail) January 4th, 2023 @ 01:10 PM
I like this post, And I figure that they have a great time to peruse this post, they might take a decent site to make information, thanks for sharing it with me.
television junk removal palm beach county -
Mira Sherron January 12th, 2023 @ 09:28 AM
There is a problem when boolean virtual fields are utilized in virtual layers. The value of such a field is empty rather than null (ie. not true, bubble shooter not false, not null).
-
Adam Kris June 21st, 2023 @ 08:03 AM
This is one of the best posts I've read on this forum. The information in the article helped me understand more about a new topic that I had never known. aa route planner
-
Epoxy Lantai October 14th, 2023 @ 09:56 AM
Jasa epoxy lantai tangerang adalah layanan profesional dari aplikator kontraktor cat epoxy lantai coating yang menawarkan aplikasi lapisan epoxy coating pada permukaan lantai beton.
-
Epoxy Lantai October 14th, 2023 @ 09:57 AM
Jasa epoxy lantai jakarta jasa cat epoxy lantai, aplikator epoxy lantai, epoxy lantai coating, jasa epoxy lantai area parkir
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป