Displaying 8 results from an estimated 8 matches for "rubytypes".
Did you mean:
pubtypes
2007 Oct 07
1
How to store a Mechanize object in the database?
..., certnil, history[], open_timeoutnil,
connection_cache{}, cookie_jar#<WWW::Mechanize::CookieJar:0xb71295b4
@jar={}>, proxy_usernil, digestnil, passwordnil, redirect_oktrue
irb(main):040:0> agent.save
TypeError: can''t dump anonymous class Class
from /usr/lib/ruby/1.8/yaml/rubytypes.rb:6:in `to_yaml''
from /usr/lib/ruby/1.8/yaml/rubytypes.rb:18:in `node_export''
from /usr/lib/ruby/1.8/yaml/rubytypes.rb:18:in `add''
from /usr/lib/ruby/1.8/yaml/rubytypes.rb:18:in `to_yaml''
from /usr/lib/ruby/1.8/yaml/rubytypes.rb:1...
2007 Feb 13
10
Is there a limit on the size of a template?
Hello,
I have recently run across the following error:
/usr/lib/ruby/1.8/yaml/rubytypes.rb:315: [BUG] Segmentation fault
This has happened after adding a particularly large template file with ruby 1.8.1.
Thank you,
-- Rob --
____________________________________________________________________________________
Be a PS3 game guru.
Get your game face on with the latest PS3 news a...
2007 Nov 06
6
size of template file
Hi,
How big a template file can be?
When I tested with a kind of large file (about 23KB, 570 lines),
puppetmasterd ended up with a segmentation fault.
Then I made the file shorter than original (about 6KB, 145 lines),
the file was created but it is shorter than it should be.
What I have is just 3994 bytes and 80 lines.
Replacing the string is done correctly.
I would like to know the limit of
2007 Aug 30
4
Templates and Ruby
Hi,
I am using a template to create an /etc/exports file. I have a template
that looks like this (but results in the puppetmasterd dying on the
server when the client updates):
<% nfsHomeClients.split.each do |host| -%>
/nfs <%= host %>(<%= mainshareoptions %>)
<% nfspaths.each do |path| -%>
<%= path %> <%= host %>(<%= nfsoptions %>)
<% end
2006 Jun 20
2
Problem with "can''t dump anonymous class Class"
...l with different subclasses for different types of documents.
With the code below, if I attempt to create a Document, it works fine, but
if I attempt to use one of the subclasses, I get the error:
can''t dump anonymous class Class
With an Application Trace of:
C:/Ruby/lib/ruby/1.8/yaml/rubytypes.rb:6:in `to_yaml''
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/connect
ion_adapters/abstract/quoting.rb:22:in `quote''
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/connect
ion_adapters/mysql_adapter.rb:123:in `quote''
C:...
2011 Mar 29
0
Issue / code smell in AssociationProxy
...ary/Frameworks/Ruby.framework/Versions/1.8/usr/
lib/ruby/1.8/yaml.rb:391:in `emit''
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/
lib/ruby/1.8/yaml.rb:391:in `quick_emit''
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/
lib/ruby/1.8/yaml/rubytypes.rb:15:in `to_yaml''
Now to the point: tracing the code path lead me to
AssociationProxy#method_missing which for 2.3.x or 3.0.x is very
similar:
def method_missing(method, *args)
if load_target
unless @target.respond_to?(method)
message = "u...
2007 Feb 27
1
Trying to retrieve a model from the session that uses acts_as_attachment - segmentation fault in mongrel
I am using acts_as_attachement on my Photo model to upload a photo. I
have a wizard-like set of pages that the user can step through. Rather
than save the photo to the db/filesystem I want to save it to the
session until the user hits save.
Saving to the session appears to work fine, however, when I try to
retrieve anything from the session afterwards, I get:
2006 Jun 19
3
can''t dump anonymous class Class
I''m trying to create a document upload system, where most of the code is
the super class Document and just the path to file on the system is
controlled by the sub classes. When I attempt to use my code, I get the
following when I try to save the document.
can''t dump anonymous class Class
Any ideas?
** Migration **
class CreateDocuments < ActiveRecord::Migration
def