similar to: ActiveRecord serialize method not returning YAML array in test environment.

Displaying 20 results from an estimated 300 matches similar to: "ActiveRecord serialize method not returning YAML array in test environment."

2013 May 09
7
why i am getting this error
hi!! i am a newbie in ROR, I am getting this error i understand what the error says but don''y know why i am getting this error. ActiveRecord::StatementInvalid in UserController#new Mysql::Error: Table ''user.users'' doesn''t exist: SHOW FULL FIELDS FROM `users` def new @user = User.new end def edit my user controller file contains :- class
2009 Aug 31
0
Finally a blog post on Ruby on Rail naming conventions for the nuuubs~~
Just like to share the link http://itsignals.cascadia.com.au/?p=7
2009 Sep 08
2
Rails + Sybase ASE : group effort, please
Here''s what I have: Ruby 1.8.7 Rails 2.3.3 (activerecord 2.3.3, etc) activerecord-sybase-adapter ( http://itsignals.cascadia.com.au/?p=23 ) Here is the base code (login info was changed to protect me) require ''rubygems'' require ''activerecord'' a = ActiveRecord::Base.establish_connection( :adapter => "sybase", :host =>
2006 May 02
0
YAML failing to de-serialize
I''m seeing this same problem that Josh was seeing back on March 23rd (see below) I''ve got the following YAML snippet stored in a text field: "--- !ruby/object:FieldValue \nattributes: \n item_id: 60\n title: Test\n field_id: 15\n created_by_id: 5\n locale: en\n link: www.cclearn.com\n comment: this is a test\n created_at: 2006-05-02 15:43:14.256792 Z\nnew_record:
2006 May 18
1
mime yaml
First off, apologies if this is addressed.. I didn''t find anyone having the same problem (which usually means the problem is me!) I''m running the standard command to start a Rails server, with additional custom mime YAML: mongrel_rails start -m /etc/mongrel_mime.yml Content of the /etc/mongrel_mime.yml is only a single line: .xml: text/xml However, the custom mime
2007 Apr 12
0
dumping data to yaml in specs
I''m wondering whether I could dump out an object to yaml if a certain spec fails. I believe you can do this sort of thing in test unit. E.g.: hash_one.should == hash_two if_failed? hash_two.to_yaml Scott
2006 Aug 03
1
Is it possible to interpolating variables in YAML files?
I''m attempting to store a value that''s dependent on an environment variable in a custom .yml file, like so: job_folder: "#{RAILS_ROOT}/jobs" Doesn''t seem to like that. Is there any way for me to have access to the RAILS_ROOT environment variable from inside of my configuration file? Thanks, Wes -- Posted via http://www.ruby-forum.com/.
2006 Jul 24
0
HTML YAML Builder
Is anyone interested in a YAML Builder for HTML? Some trivial YAML that could be converted to HTML: html: - head: - title: My title - body: - p: - {!id: someId, !class: class1 class2} - Hello - img: {!src: someurl.gif} - hr: - ul: [{!id: someId}, {li: hello}, {li: goodbye}] - ul: - {!style: "height: 30px"} - li: [{!id: first}, First] -
2006 Apr 09
0
action cache plugin, bad yaml?
Is there anyone out there using this plugin in production: http://wiki.rubyonrails.com/rails/pages/Action+Cache+Update+Plugin it seems to occasionally generate bad YAML, which makes the cached page unavailable. Here is what happens when I try to parse it from the console: >> YAML.load open(''tmp/philly.localfeeds.com/.cache'') ArgumentError: syntax error on line 318,
2007 Feb 09
1
Gracefully recovering from state.yaml corruption.
Hello, I have recently attempted to automatically restart my network interfaces when I update my network configuration files. During this process it seems that one out of every three or so runs will cause the state.yaml file to become corrupt. The next run of puppet will respond with messages similar to "can''t find object :nil". Deleting the state.yaml file and running
2007 Apr 03
1
metainfo.yaml
Can there be multiple metainfo.yaml files in different directories? I can''t find any indication in the docs, and I''m upgrading an old project based on webgen 0.3.8 which has this sort of setup. By the way, to parse my own inline html with textile I was able to write a content converter quite successfully. Scott
2006 Feb 20
0
YAML and has many associations
Hi, I have the following: order = YAML::load(order_yaml) The YAML contains order_items too, and my order model has a has_many to order_items. When I do order.order_items, I don''t want Rails to go the db to get the order_items, but use the order_items already contained in the object created from the YAML. How would I do this? Thanks Joerg -- Posted via
2006 Jan 12
0
yaml: custom saving and loading of specific classes
I''m trying to use ruby''s yaml library to serialise and deserialise some legacy classes. Simply adding a to_yaml_properties() method isn''t sufficient as special methods need to be called to get and set the properties (they''re not stored simply in instance variables that I can access), and I don''t want to change the class any more than I have to.
2011 Jan 30
1
py-yaml complaints from yum
hello list!! I'm having a curious issue.. if I type yum update -y the system complains of a PyYAML dependency: --> Finished Dependency Resolution PyYAML-3.08-4.el5.x86_64 from installed has depsolving problems --> Missing Dependency: libyaml-0.so.1()(64bit) is needed by package PyYAML-3.08-4.el5.x86_64 (installed) Error: Missing Dependency: libyaml-0.so.1()(64bit) is needed by
2013 Jul 22
0
Could not intern from yaml: undefined method `intern' for nil:NilClass
Hi everyone, I''m stuck with this error trying to set up inspection reports : Could not send report: Error 400 on SERVER: Could not intern from yaml: undefined method `intern'' for nil:NilClass Earlier, I had this one : Could not run: Could not find catalog for hostname That I fixed with : catalog_cache_terminus = yaml Agent and server are running puppet 3.2.3. Full
2013 Aug 29
0
Yaml reports not uploading to puppet dashboard
Hi, Iam a newbie to puppet, iam trying to set my local puppet master and dashboard running on same server. Iam also using https to connect to dashboard. I can launch the dashboard on https://IP fine but i see only one report on the webpage, When i tried to import all the previous reports iam getting this error # cd /usr/share/puppet-dashboard/ ]# sudo -u puppet-dashboard rake
2009 Jun 24
0
.yaml report filenames written with wrong time
The yaml filename in the reports directory gets written with a time that is 2 hours ahead of what the actual time is. -rw-r----- 1 puppet puppet 1926 Jun 24 12:28 200906241628.yaml Inside this file, the correct time is displayed: time: 2009-06-24 12:28:15.193590 -04:00 - !ruby/object:Puppet::Util::Log level: :notice Is there anything I can do to get the correct time written? Thanks!
2008 Mar 26
2
Node yaml cache not refreshed ?
Hi folks, When running puppetd --environment whatever, the environment is not taken into account on the puppetmaster. This bug appeared after ticket #1130 got resolved and is certainly due to caching of the node terminus. Looking through the code didn''t help me understand how this yaml cache should get refreshed. On the puppetmaster, the cache files located in
2012 Jun 09
1
Python Puppet YAML Report Parser
Hello, A quick search showed some people may have got this working. Anyone got a Python (or Perl) script to parse the Puppet reports and put them into a human readable format ? Might be able to knock something together myself but not used PyYAML too much and might need some pointers. Thanks -- You received this message because you are subscribed to the Google Groups "Puppet
2007 May 29
1
YAML fails when has_one is null
My model has_one :association If I call model.to_yaml (or y model) in the console, and the association is nil, I get a yaml error. Anyone else get this? Is this a confirmed bug? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to