search for: nomethode

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

Did you mean: nomethod
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
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 Rai...
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''
...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 1.14.4 together with rails 1.1, ferret 0.10.13 and typo 4.0.3. This is the directory structure listing of my acs_as_ferret plugin: -rw-r--r-- 1 init.rb drwxr-xr-x 2 lib -rw-...
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 whi...
2006 Feb 19
3
newbie wanting to understand controller action relationship
I still getting my feet wet with rails and I''m trying to learn some good ways of working with link_to_remote. I''m using the user and login engines and I have in my layout this... link_to_remote( ''Login'', :update => ''main-query'', :url =>{:action => ''login''},
2007 Jul 28
2
activerecord model constantize question
I have a variable called column with 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
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:...