similar to: script/generate scaffold errors

Displaying 20 results from an estimated 1000 matches similar to: "script/generate scaffold errors"

2006 Dec 20
0
undefined method `to_sym' for #<YAML::Syck::MergeKey...
I have a stock gentoo rails install. I get something like this when I try to use script/generate, rake migrate or script/console and probably others. 0 wicked www/sharkwatch % ./script/console Loading development environment. /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/core_ext/hash/keys.rb:27:in `symbolize_keys'':NoMethodError: undefined method `to_sym''
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="#"
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
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", >
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) >>
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 Aug 21
1
wildcards and prefix searches
Hey all, I'm using Xapian through acts_as_xapian and would like to know why trailing wildcards do not work on prefix searches. Specifically, I have a Merchant model with a Description field, mapped to the prefix "desc". If I then search for "desc:goods" I get 4 matches, but if I search for "desc:goo*" I get 0. However, when searching normal, non-prefixed
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
2010 Feb 22
0
Re: rake db:migrate throws unexpected error
danwoods wrote: > The Error: > (in [my current directory]) > rake aborted! > undefined method `symbolize_keys'' for nil:NilClass Given that nil does not implement symbolize_keys you need to know where you''re ending up with a nil. Have your run your rake task with the --trace option to see if you get a backtrace that will show you where to look? rake --trace
2006 Sep 26
4
Some documents not found
I''m a ferret newbie, so hopefully I''m missing something simple :) I am using ferret to index data about 36,000 products from a MySQL database. The index has one document for each product, with these important fields: id: the id (unique) of the product record in the database content: a concatenation of several bits of information from the product and associated records I
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",
2007 Apr 18
3
nil.symbolize_keys -- error with attachment_fu
I''ve spent at least 2 hours on this one problem. On my local machine in my controller I have this: def new @page_title = "New User" @user = User.new @photo = Photo.new end All is good. Now, on the remote server I get an error when accessing the ''new'' view. If I remove @photo = Photo.new from the controller then the error goes away. This same error
2006 May 18
5
Uninitialized Constant in scaffold list page
I''m new to Ruby on Rails and just trying to get it up and running. I''m using RadRails, but I don''t think that matters for this problem. I''ve got a very basic app with one table and I used the scaffold generator for a table called datedgoals. The new page works fine, but then when it switches over to the list page, I get the errors below. Any idea how to fix