search for: nomethod

Displaying 10 results from an estimated 10 matches for "nomethod".

Did you mean: nmethod
2003 Aug 05
1
(PR#3658)
The function 'getAnywhere' crashes if given a non-existent name containing a period: > getAnywhere( 'nomethod.noclassforme') Error in get(x, envir, mode, inherits) : variable "nomethod" was not found However, 'getAnywhere' behaves gracefully if the non-existent name lacks a period: > getAnywhere( 'nomethod') no object named `nomethod' was found the latter being an ob...
2006 Aug 07
2
NoMethod Error: Modifying Location of support modules
I''m trying to follow along with the Agile Development with Ruby on Rails book and have encountered a problem with code having the following syntax (partial class provided): require "digest/sha1" class User < ActiveRecord::Base private def self.hash_password(password) Digest:SHA1.hexdigest(password) end end I''m getting an error as: undefined method
2007 May 05
4
Rails Installation Fails - InstantRails 1.3a
...ng that these were benign errors ( ;-) ) I continued and ran rails shovell That appeared to run OK, but then I tried to test the blank application and got this C:\InstantRails\rails_apps\shovell>ruby script/server ./script/../config/boot.rb:29: undefined method `gem'' for main:Object (NoMethodE rror) from script/server:2 Can someone point me in the right direction to fix these problems, and get a little bit further into this. Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Ra...
2006 Feb 23
7
How to set a relationship with a value from a selection list
...ost.album_id @photo.blog_user_id = 1 if @photo.save! flash[:notice] = ''Photo was successfully created.'' redirect_to :action => ''list'' else render :action => ''new'' end end When I click save I get the following error... NoMethodError in Photo#create You have a nil object when you didn''t expect it! The error occured while evaluating nil.album_id I''ve looked through this forum and read numerous similar problems, and from what I can tell I''m doing the right thing. Can someone tell me where I'...
2005 Dec 23
13
how to form.rest in RJS
is there any way to Form.reset (clear all fields of the form ) in form_remote_tag generated form? I want to reset fields after ''submit'' in .rjs. -- Hiroshi Takagi <gollum-u1eKKkw+WM0gE89CWYshPg@public.gmane.org>
2006 Nov 17
5
[Tweaking-Typo-4.0.3] acts_as_ferret `method_missing''
Hey Folks, after following the instructions for tweaking Typo to use rather ferret than DB queries to search article I got a strange NoMethod error when starting the console or the server scripts. /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:1129:in `method_missing'':NoMethodError: undefined method `acts_as_ferret'' for Content:Class As you can see I''m using activerecord version...
2013 Sep 11
4
getting array of hostnames of clients
...earch?facts.nodetypet=testnodes where I''ve got a nodetype fact which works fine for me. Now, this used to work but doesn''t any more. Between it working and now I''ve changed to using puppetdb. I''m not sure if theres a connection. The error returned is: Caught NoMethodError: undefined method `<<'' for nil:NilClass The next thing I tried was to get each interesting node to create a file on the puppetmaster server. So I now have a bunch of files in /tmp/ with distinctive names which contain only the hostname of that puppet client. I have a fact wh...
2006 Feb 19
3
newbie wanting to understand controller action relationship
...quot;javascript:toggle(''main-query''); new Effect.SlideDown(''main-query'', {duration: .5})") which is used to slide open a login window. It works well, however depending on the page I have loaded I will sometimes get a NoMethod Error when the link is clicked. Do I need to add a :controller => ''user'' to the :url line somehow? (If so, I''m doing it wrong because that dosn''t work either). How does rails interpret this? -- Posted via http://www.ruby-forum.com/.
2007 Jul 28
2
activerecord model constantize question
...the value of "bla" (column = "bla") I have a model call Location where method bla is defined (amongst many other methods). What I would like to to is to call the method in Location defined in the variable column. I tried: Location.column.constantize but that gave me an error NoMethod. I am sure there is a very simple way in Ruby as always :-) who can help me? thanks --~--~---------~--~----~------------~-------~--~----~ 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 rubyon...
2006 Mar 16
32
iterating a partial with :collection
...riable article counter will be set to the index of the current article in the collection. According to my admittedly incomplete understanding, this should work, but it doesn''t... <%=h (fac_log_test[:fac_log_test_counter][:facility][:name]) %> ;-( what is the proper usage? Craig NoMethodError in # Showing app/views/reports/_fac_log_test.rhtml where line #28 raised: You have a nil object when you didn''t expect it! You might have expected an instance of Array. The error occured while evaluating nil.[] Extracted source (around line #28): 25: <tr> 26:...