Displaying 20 results from an estimated 10000 matches similar to: "undefined method `>' for nil:NilClass"
2008 Jan 18
15
scaffold :product missing in Rails 2.0.2 version of depot tutorial?
I am getting an error when I try to run the code for the depot
application (page 67 in the Agile Web Development on Rails book, 2nd
edition). I built the complete depot app with Rails 1.2.6, and all
worked well. I then updated to Gem 1.0.1 and RoR 2.0.2, and attempted
to repeat the tutorial, and got this strange behavior.
I used "rails depot --database=mysql" because I have not
2010 Jun 08
2
Could not retrieve catalog from remote server: undefined method `closed?' for nil:NilClass
We are getting this frustrating error on all of our servers after
restarting the puppet server. Can''t seem to get rid of it no matter
what.
The following pops up in /var/log/messages after trying to start
puppetd:
Jun 8 10:59:04 svn001 puppetd[92558]: Could not retrieve catalog;
skipping run
Jun 8 10:59:18 svn001 puppetd[92597]: Could not retrieve catalog from
remote server: undefined
2012 May 13
4
undefined method `key?' for nil:NilClass,bcrypt-ruby,has_secure_password
I''m going through DHH''s Agile Web Development with Rails for Rails 3.1. In
chapter 14 they create a Users sign-in model/view/controller using the
has_secure_password method. My user.rb file looks like this
class User < ActiveRecord::Base
attr_accessible :name, :password_digest, :password, :password_confirmation
validates :name, presence: true, uniqueness:
2011 May 06
2
undefined method `[]' for nil:NilClass
I am getting this error on all my hosts, I can''t tell that it''s
causing a problem, everything seems to be working fine.
Fri May 06 12:52:16 -0700 2011 /Stage[main]//
Resources[ssh_authorized_key] (err): Failed to generate additional
resources using ''generate'': undefined method `[]'' for nil:NilClass
We are using user and group purging for all uids/gids
2012 Jun 26
4
ActionView::Template::Error (undefined method `strftime' for nil:NilClass)
Hello, I''m a newbie. I need help resolving this issue. I recently added a
pdf to the newsletter admin section of the website and now I can no longer
view page 2 of the list of pdf''s. Nor can I login to see the newsletters as
a student. I''m using Ruby 1.9.3, Rails 3.2.1.
Here''s the information from the log file.
ActionView::Template::Error (undefined
2007 Apr 17
1
undefined method `each'' for nil:NilClass with Ferret search
Hi All:
For certain key terms I always get this error; I had to rebuild the
indexes then it works for a while then again it is gone.
here is the message
ActionView::TemplateError (undefined method `each'' for nil:NilClass) on
line #4
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_view/base.rb:316:in
`compile_and_render_template''
2008 Jan 22
2
Could not set file on ensure: undefined method `[]'' for nil:NilClass
Hi,
I had a working puppet setup using version 0.22 until the ruby security
patch bit me. I tried upgrading server and clients to 0.24.1 however my
old manifests don''t seem to work anymore. When I run puppetd on the
client I see lots of messages like:
err: //Node[waterbuck]/yumupdater/Remotefile[/etc/cron.hourly/yumupdater]/File[/etc/cron.hourly/yumupdater]/ensure: change from absent
2011 Feb 19
1
undefined method `map' for nil:NilClass for rails 2.3.2
Hai guys!
When i try to do rake gems:install and rake gems:refresh_specs in my app
below error is occurred. please give some solution for this.
config.gem: Unpacked gem authlogic-2.1.3 in vendor/gems has no specification
file. Run ''rake gems:refresh_specs'' to fix this.
rake aborted!
undefined method `map'' for nil:NilClass
enivorment.rb
RAILS_GEM_VERSION =
2011 May 02
4
Could not request certificate: undefined method `closed?' for nil:NilClass
Hi list,
I am trying to get a puppet certificate on a new client but I get
error:
err: Could not request certificate: undefined method `closed?'' for
nil:NilClass
I googled and found that it had something to do with reverse DNS
lookup, the client is behind a NAT firewall so I assume a reverse
lookup will fail. Can I bypass this somehow? Puppet version on master
and client is 0.25.4
2006 Sep 12
8
"undefined method `retrieve'' for nil:NilClass" when attempting to run puppetmasterd
I posted this earlier on IRC, but it didn''t seem anyone was active:
<mozillaman>Hey all!
<mozillaman>Quick question for you :)
<mozillaman>I installed puppet according to the directions on the site and
got this:
sudo /usr/bin/puppetmasterd --nonodes
undefined method `retrieve'' for nil:NilClass
<mozillaman>Anyone have any ideas?
Any help would be
2010 Apr 30
3
undefined method `call' for nil:NilClass
why would I be getting this error after submitting my form?
NoMethodError in EchantillonsController#create
undefined method `call'' for nil:NilClass
This is my create method in the controller:
def create
@echantillon = Echantillon.new(params[:echantillon])
@echantillon.set_eros_values
respond_to do |format|
if @echantillon.save
if
2010 Dec 24
0
keep getting "undefined method `map' for nil:NilClass (NoMethodError) " in new server
hi guys,
I have a new development server (ubuntu 10).
I have done the following (the versions match my existing development
machine which works fine):
1. installed ruby 1.9.1p378
2. installed ruby gems 1.3.7
3. installed rails 2.3.8 (used "gem install rails -v 2.3.8")
4. manually installed my other gems including sphinx and thinking
sphinx with "gem install ..."
5. ran
2005 Nov 12
2
undefined method `protocol' for nil:NilClass
Hi! This may have been answered somewhere before, but my searches turned
up nothing.
I am developing a Rails app that generally works, but just generated a
new controller ("list" controller), did not add anything, and when I go to
http://localhost:3000/list/
I receive an error. It appears that the page was properly generated, but
somewhere preparing the result raised this
2012 Jun 25
1
ActionView::Template::Error (undefined method `strftime' for nil:NilClass):
Hello, I''m a newbie. I need help resolving this issue. I recently added a
pdf to the newsletter admin section of the website and now I can no longer
view page 2 of the list of pdf''s. Nor can I login to see the newsletters as
a student. I''m using Ruby 1.9.3, Rails 3.2.1.
Here''s the information from the log file.
ActionView::Template::Error (undefined
2013 Jun 23
1
Contact form - NoMethodError (undefined method `each' for nil:NilClass)
Hi Guys,
So basically I want a contact form to appear on all the service pages.
I''ve already created a contact form for the contact page which works
perfectly using this tutorial:
http://matharvard.ca/posts/2011/aug/22/contact-form-in-rails-3/
Now I would like to implement this approach on the service pages, and it
works until I push the Submit button, when I get the following error:
2013 Jun 18
1
undefined method `[]' for nil:NilClass
I upgrade our infrastructure (mostly RHEL5, some RHEL6) from 3.1 to
puppet-3.2.1-1.el5. Ruby sits at ruby-1.8.7.370-1.el5. I ran some
tests and everything seemed good so I pushed it out.
Since then, all my puppet clients are failing with this:
Error: Could not retrieve catalog from remote server: Error 400 on
SERVER: undefined method `[]'' for nil:NilClass at
2010 Sep 21
9
Undefined method 'closed?' for nil:NilClass
Hi all
I started researching on puppet and decided I''ll try it out on Vmware
Workstation using Ubuntu 10.04. So I''m trying to do the simplest
puppet install pattern as outlined in
http://projects.puppetlabs.com/projects/puppet/wiki/Simplest_Puppet_Install_Pattern.
For now, I''m trying to test puppetd and puppetmasterd on the same
machine. I start puppetmaster and
2010 Oct 21
4
Authlogic + Rails3 - undefined method `Login' for nil:NilClass
Im new to Rails, and decided to start of with Rails3. After a lot of
searching ive managed to get a little bit of Authlogic working. I''m able
to register a user, login & logout.
Now, I would like to add more features, get more of authlogic working.
I''m using Railscast EP 160 as my reference.
Portions of the code found on the tutorial throw errors: Eg:
<!--
2010 Nov 12
1
Dashboard throwing undefined method `to_time' for nil:NilClass error on page view
Using 1.0.4 release on Solaris 10 with Ruby 1.8.7.
Starting the server in production mode works fine until I request a
page from the web browser then I get the following errors on the
console. I''m running as user puppet (have also tried as user root but
same output). All files are owned by user/group puppet/puppet.
I have dropped and recreated the database multiple times just to see
if
2010 Aug 18
6
undefined method `eq' for nil:NilClass
I''m walking through an example in the "Head First Rails" book, but,
instead doing the examples using Rails3.0.0.rc.
But, I''m getting this error when browsing for example:
http://localhost:3000/advs/1
undefined method `eq'' for nil:NilClass
Provided that my advs_controller.rb is as follows:
http://pastie.org/private/cd9zntg2ite57ept288kfa
Any ideas why