search for: falseclass

Displaying 20 results from an estimated 31 matches for "falseclass".

2013 Oct 28
1
inline_template private method `gets' called for false:FalseClass
..."/bin/echo ''${moddedContent}'' > /tmp/blah" : } When I try to apply it, I got the following error. Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to parse inline template: private method `gets'' called for false:FalseClass at foo.pp:33 on node testnode Thanks! David -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this...
2006 Sep 15
8
file: target generates error
file { "/var/log/syslog": target => "/var/log/messages" } generates the following error: err: //henson/stanford/syslog/file=/var/log/syslog: Failed to retrieve current state: undefined method `should'' for false:FalseClass
2006 Jul 17
6
DRY? Converting Boolean to Yes/No
...an isolated case something like: @obj.change_address ? ''Yes'' : ''No'' Would work fine but this is peppered throughout scads of forms and boolean fields. The first step I took at DRYing this up was: class TrueClass def to_s "Yes" end end class FalseClass def to_s "No" end end But this breaks other uses. For example observe_field constructs the observers based on the to_s conversion of boolean attributes. Any ideas on how to DRY this usage up? Thanks -- View this message in context: http://www.nabble.com/DRY--Converting-Boolean...
2011 Sep 25
2
Noob Rails patcher - problems running the sqlite3 tests...
...eated a 3.0 branch: $ git branch --track 3-0-stable origin/3-0-stable $ git checkout 3-0-stable I can run the non-db tests ok, all pass Then tried to run the sqlite3 tests like this: $ cd activerecord $ rake test_sqlite3 But this fails with "undefined method `transform'' for false:FalseClass (NoMethodError)", see below. To make sure it was nothing fundamental re: sqlite, I created a basic rails 3.0.10 app and it starts ok, creates the db file alright. I guess there is a setup step missing for sqlite3 - will have a dig around further. Regards, Chris /home/rails/.rvm/gems/ruby-...
2007 Mar 19
3
certificate trouble
...n the client i got : .. Mar 19 11:54:56 puppetclient puppetd[2757]: Reopening log files Mar 19 11:54:59 puppetclient puppetd[2757]: Starting Puppet client version 0.22.1 Mar 19 11:54:59 puppetclient puppetd[2757]: Could not load cached configuration: undefined method `to_type'' for false:FalseClass .. I am running the puppetmasterd with --manifest .../site.pp and also noticed that when i change the site.pp config somehow this update does not get applied to the client. The client still (somehow) receives the cached config from the puppetmasterd. -> even when removing the node config from...
2005 Mar 04
3
Boolean values
...e SQL Server adapter that causes any insert or update to fail: lib/active_record/connection_adapters/sqlserver_adapter.rb @@ -239,2 +239,2 @@ - when TrueClass then (column && column.type == :boolean ? "''t''" : "1") - when FalseClass then (column && column.type == :boolean ? "''f''" : "0") + when TrueClass then "1" + when FalseClass then "0" Should that be posted to Trac? Now my question. The Active Record Help...
2008 Jun 24
2
upgrade issues
...thread --with-readline-dir=/usr I''m using mod_rails, so after the Ruby install I restarted Apache. I then found every Rails app on the box was non-functional, only loading blank white screens, with this same error appearing in all the logs: ActionView::TemplateError (wrong argument type FalseClass (expected Proc)) So I hurried to rebuild my passenger/mod_rails module, thinking that perhaps some header file in Ruby may have changed, but it didn''t help. Needing to get the sites back up I reverted back to my old (insecure) version of Ruby. So then.. if you look at http://ruby-lang.o...
2008 Jun 09
2
cruisecontrol integration
...#39;'got hereer.'' end sh "ruby script/backgroundrb start" end ---------------------------------------------- /home/ian/bluffware/backend/vendor/plugins/backgroundrb/lib/backgroundrb/bdrb_config.rb:38:in `read_config'': undefined method `[]'' for false:FalseClass (NoMethodError) from /home/ian/bluffware/backend/vendor/plugins/backgroundrb/lib/backgroundrb.rb:15:in `init'' from /home/ian/bluffware/backend/vendor/plugins/backgroundrb/lib/backgroundrb.rb:175 from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem...
2004 Sep 21
1
win32-shortcut problems
...l work and committed it to CVS (look under win32utils - I goofed and made a toplevel dir as well - it''s empty). Anyway, everything compiles fine, but when I do "s = Shortcut.new" I get a weird error: test.rb:11:in `initialize'': undefined method `new'' for false:FalseClass (NoMethodError) The initialize method is copied from the _Instance(...) part of the Shortcut.xs file. Any ideas as to what''s wrong? Regards, Dan
2006 Aug 03
1
strange before_filter error. is this a bug i have found?
...(8) end .... The above seems like perfectly normal before_filter syntax, but it gives this error. Aldo is no application trace, just a framework trace: Any idea what is wrong? NoMethodError in Regression testsController#modify_regression_test private method `equal?'' called for false:FalseClass RAILS_ROOT: script/../config/.. Application Trace | Framework Trace | Full Trace /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/base.rb:1567:in `=='' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/filters.rb:411:in `call_filters'...
2010 Sep 02
1
ActiveRecord::ConnectionAdapters::Column value_to_boolean(value) does not return a boolean value.
...?(String) && value.blank? 152: nil 153: else 154: TRUE_VALUES.include?(value) 155: end 156: end If value is contained in TRUE_VALUES then it returns true(TrueClass). But if value is anything else it returns nil(NilClass) instead of false(FalseClass) This does not seem consistent or expected to me since false <> nil. Since we have TRUE_VALUES and FALSE_VALUES, I think it should be something like this. 150 def value_to_boolean(value) 151 if TRUE_VALUES.include?(value) 152 true 153 elsif FALSE_VALUES....
2006 Feb 13
1
another simple question: per_page in pagination
...attribute when using the most basic form of pagination? (if I use a hardcode number, it runs) What did I do? Thx. My code: def list_orders page_size = 20 ... order_pages, @orders = paginate(:orders, :per_page => page_size) end My Errors: undefined method `>'' for false:FalseClass RAILS_ROOT: ./script/../config/.. Application Trace | Framework Trace | Full Trace c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/ pagination.rb:210:in `<='' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/ pagination.rb:210:in `initiali...
2006 Jun 21
1
Plugin Panic! - no accessing a model''s class methods?
...a singleton on the model calling my plugin? The crux of the full plugin below is: #logger.info self.class.to_s new_copy = self.class.new( @copyable_attributes ) the logger spits out "Datatype", but I get an error from rails saying: undefined method `datatype'' for false:FalseClass for the self.class.new line. I also feel haunted by the knowledge that this is far easier than I think it is, though I cannot seem to find the answer in the acts_as_versioned or any other plugin (since none create new instances of their calling model class). full plugin contents follow. *whimpe...
2006 Feb 27
8
Change Bit Value To Text When Viewed
Hey All, very simple question for you folks ;) I have a @commutes object that for each record there is a bit value set (0/1) to denote if an accident occurred. What I want to do is have it display "Yes" or "No" when I view the listing of commutes. I can get it to display the bit value just fine with <%= commute.accident %> but how can I get it so that when a record with
2006 Jan 06
6
AWS and array of Model
Hi! I try to use a layered webservice and I want to get back an array of users; In the API I use: api_method :listUsers,:returns=>[[User]] in the service: def listUsers User.find(:all) end Result in soap mode: Don''t know how to cast TrueClass to Object Result in XML-RPC mode: You have a nil object when you didn''t expect it! You might have expected
2010 Jan 07
1
Active Record Error
...ought you could quickly identify the problem area. C:/Program Files/NetBeans 6.8/ruby2/jruby-1.4.0/lib/ruby/gems/1.8/gems/ activerecord-2.1.1/lib/active_record/connection_adapters/abstract/ connection_specification.rb:215:in `establish_connection'': undefined method `[]'' for false:FalseClass (NoMethodError) from C:/Program Files/NetBeans 6.8/ruby2/jruby-1.4.0/lib/ruby/ gems/1.8/gems/activerecord-2.1.1/lib/active_record/connection_adapters/ abstract/connection_specification.rb:209:in `establish_connection'' from C:/Program Files/NetBeans 6.8/ruby2/jruby-1.4.0/lib...
2006 Jun 05
0
Plugin Namespace Oddities?
...logger.info self.class.to_s new_copy = self.class.send :new, copyable_attributes new_copy.save end end Originally I was calling self.create, but that failed as well. Rails is tossing my to an error page claiming: undefined method `datatype'' for false:FalseClass however, in my log, the self.class.to_s is Datatype, which should load the Datatype class. IRB shows this: irb(main):001:0> class Foo irb(main):002:1> def hello irb(main):003:2> puts ''hello irb(main):004:2'' '' irb(main):005:2> end irb(main):006:1...
2006 Jan 07
0
Bug in rails?
.... Today I found why. In Mysql the boolean type is a int(1) alias, but in postgresql the boolean type is boolean(!). When in the database table contain boolean type the AWS going to crazy because it''s can''t recognize it. (It''s say: "Don''t know how to cast FalseClass to Object" or "Don''t know how to cast TrueClass to Object"). I think it''s a bug because the WebServices contain boolean primitive type. Cow
2008 Feb 20
0
Unicode Support for MS SQL Server
...icode'' In order to accomplish this, I modified SQLServerAdapter#quote to look like this: def quote(value, column = nil) return value.quoted_id if value.respond_to?(:quoted_id) case value when TrueClass then ''1'' when FalseClass then ''0'' when Time, DateTime then "''#{value.strftime("%Y%m%d %H:%M:%S")}''" when Date then "''#{value.strftime("%Y%m %d")}''" when String, Acti...
2008 Jul 04
1
datatype problem when using ActiveRecord with Oracle
Hey, I have connected to the oracle db using ActiveRecord and am trying to retrieve tuples. I have one attribute that has datatype ''number(1)''. I found that ActiveRecord maps this attribute to boolean. So it gets a class of either FalseClass or TrueClass. I tried to find the source of the problem and I found oracle_adapter.rb (http:// www.koders.com/ruby/fidAF6400E299159A198A4064173CF305C895FCA945.aspx?s=%22Michael+Schoen%22#L5) has a method ''simplified_field'' that has a line "return :boolean if OracleAdapter.emu...