Displaying 20 results from an estimated 1000 matches similar to: "undefined method `to_sym' for #<YAML::Syck::MergeKey..."
2006 May 08
1
script/generate scaffold errors
Hi,
I''m following the Agile Development With Rails book and having some
trouble. Specifically, I''ve typed:
% ruby script/generate scaffold Product Admin
and received the following error:
/usr/local//lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/core_ext/hash/keys.rb:27:in
`symbolize_keys'': undefined method `to_sym'' for
2005 Mar 15
0
0.10.0, Routes and Query strings
So I made the leap to 0.10.0 but I can not get routes to play nice
with query strings...
I have this mapping in my routes.rb file
map.connect '':controller/:action/:id'', :controller => ''main_controller''
This is all cool and everything works fine http://www.siteroot.com/
maps to http://www.siteroot.com/main_controller/index
But when I add a query string to
2007 Sep 18
0
Help with RESTful named url options
I''ve found quite a few posts on the subject, but no satisfactory
answers. Maybe Rails just doesn''t support this yet.
How do I create a url with a named RESTful route that also has
parameters?
I want to write this:
link_to_remote "Show Details", {:url => item_url(@item, :details =>
1), :method => :get}
And get this:
<a href="#"
2010 Jun 07
1
undefined method 'to_sym' for ["<var>", "<var">]:Array
I am running into a problem with my LDAP puppet setup with this error
message:
PuppetClient:
err: Could not retrieve catalog from remote server: Error 400 on SERVER:
Could not parse for environment DR: undefined method `to_sym'' for ["ENV1",
"ENV2"]:Array
PuppetMaster:
err: Could not parse for environment DR: undefined method `to_sym'' for
["ENV1",
2006 Nov 01
0
Re: YAML.load(some_string) doesn't return hash?
Oleg Kh wrote:
> A small problem here. As per documentation on
> http://corelib.rubyonrails.org/classes/YAML.html YAML.load(string)
> should just return a hash. However on my windows machine it returns
> something like this:
>
> #<YAML::Syck::DomainType:0x36d5038
> @domain="yaml.org,2002",
> @type_id="map:HashWithIndifferentAccess",
>
2010 Apr 17
1
Nil.to_sym Problem
HI everyone, require some help! cannot figure out this error and how
to fix it!
Showing user/index.html.erb where line #59 raised:
You have a nil object when you didn''t expect it!
The error occurred while evaluating nil.to_sym
Extracted source (around line #59):
56: <% end %>
57: </ol>
58:
59: <div id="hub">Blog: <%= link_to "(manage)",
2008 Mar 25
0
New package: yaml 1.0 released to CRAN
Hi all,
I've released a new package to CRAN called 'yaml'. It allows R to
parse YAML documents (http://yaml.org) into R objects, and there are
a few methods to convert R objects into YAML. The package uses the
Syck YAML parser (http://whytheluckystiff.net/syck/), the same parser
that Ruby and other languages use to parse YAML.
For more information, please visit:
2008 Mar 25
0
New package: yaml 1.0 released to CRAN
Hi all,
I've released a new package to CRAN called 'yaml'. It allows R to
parse YAML documents (http://yaml.org) into R objects, and there are
a few methods to convert R objects into YAML. The package uses the
Syck YAML parser (http://whytheluckystiff.net/syck/), the same parser
that Ruby and other languages use to parse YAML.
For more information, please visit:
2008 Oct 25
2
Update action | NoMethodError | nil.to_sym
Ok, totally no reason why I''m getting an error in this model update
and no other. HELP!
CONTROLLER:
# GET /employees/1/edit
def edit
@employee = Employees.find(params[:id])
end
VIEW:
<h1>Edit Employee</h1>
<div id="main-sub">
<%= error_messages_for :employees %>
<% form_for(@employee) do |f| %>
<table width="600"
2008 Feb 22
1
YAML parser for R in Windows
How can I parse a YAML file in R 2.6.0 in Windows? I cannot get the
RYaml package to compile in Windows, I can't find a MinGW compiled .dll
for an existing YAML parser like syck (which would appear to be the best
hope for creating my own R wrapper functions), and I don't know how to
call a Ruby or Python function from R (so that I could parse the file in
Ruby or Python and pass the parsed
2008 Jan 24
1
NoMethodError (undefined method `to_sym' for {"6"=>"1"}:Hash
I''ve got a search form that was working on rails 1.2.6, but since
upgrading to 2.0.2, I''m getting this error when I post my form. Here''s
the full error:
Processing SearchController#results (for 24.173.26.226 at 2008-01-24
14:51:23) [GET]
Session ID:
2012 Sep 18
2
undefined method `to_sym' for nil:NilClass
Hi all,
I am trying to upgrade my rails 2 app to 3 and am getting this error
when trying to login:
NoMethodError in AuthenticateController#authenticate
undefined method `to_sym'' for nil:NilClass
The stack trace is:
activerecord (3.2.2) lib/active_record/validations/uniqueness.rb:26:in
`validate_each''
activemodel (3.2.2) lib/active_model/validator.rb:153:in
2006 May 14
0
Beware of HashWithIndifferentAccess#symbolize_keys!
Hi,
I just posted a patch tot he rails trac for a bug we found where
running symbolize_keys! on a HashWithIndifferentAccess will delete all
items from the hash. Please make sure you either never call
symbolize_keys! (or to_options! which just alias it) on a
HashWithIndifferentAccess, or apply the path attached from the ticket
at: http://dev.rubyonrails.org/ticket/5076
I also posted a much longer
2008 Mar 11
1
php 4/5 dependency question
I have a PHP box which was running NagiosQL on PHP4, and all of a sudden it
stopped serving PHP pages.
I went to http://boxIP/nagiosQL/testQL.php (that application's test page)
and got the following error
"PHP without mysql support, please install mysql module to php!"
Not knowing what was broken, I attempted a "yum install php-*", but got the
following message:
--->
2006 Jan 10
0
Problem installing rubygems-0.8.11
I''m having an issue installing rubygems-0.8.11 on 2 different boxes
but get the same error on both. The first box is a host environment
where I am cross-compiling things for the arm-linux architecture. It
is a debian sarge box using the ruby1.8 package which is ruby-1.8.2.
I successfully cross-compiled ruby 1.8.4 for the arm-linux
architecture and it runs well on the embedded
2011 Jul 11
2
Can't get this Rspec test to pass
Hello,
I''m completely new to Rspec testing and I''m finding it very difficult to
mock specific objects.
In this test, I have a before block setup as such:
[code]
before do
setup_controller_for_warden
controller.session[:operation_id] = 1
@operator = Factory :operator
sign_in :operator, @operator
@persist_herd = Herd.new
2008 Apr 19
3
How to find nil object error in the rails application?
After I added some plugins to rails my application it begin to give
following error.
Error during failsafe response: You have a nil object when you didn''t
expect it!
The error occurred while evaluating nil.symbolize_keys
(originally You have a nil object when you didn''t expect it!
The error occurred while evaluating nil.symbolize_keys)
But there is no stack trace I dont
2008 Jan 18
2
NameError when using alias_method -- but method exists?
Hello Rubyists,
I am a bit stumped here. I want to extend the ''load_file'' method in the
YAML module. Following along with the PickAxe example of making old
methods do new things, I try this in irb:
>> module YAML
>> alias_method :orig_load_f, :load_file
>> def load_file(*args)
>> contents = orig_load_f(*args)
>>
2006 Jan 13
1
association callbacks
Hello all. I am looking for some feedback on an implementation. I''m writing
a plugin that will log all model changes. I do not want to have to add a
line a code for this functionality every time I create a model. Instead I
create a table with the name <model>_changes.
The basic stuff was easy:
base.after_create {|model|
model.log_create if model.has_backup_table?
2007 Oct 12
5
deciphering objects.log
Howdy -- I''ve been tracking down mem leaks (oh, the fun...), and I think
there is a clue in objects.log. There are a few mentions of this file, but
usually Zed saying "look at this file and it will help you". Can anyone clue
me in to what the actual columns mean?
18,Float,143952,256821,112869,,,
18,String,39543,41693,2150,24.727076,55.526376,2308.000000