Displaying 20 results from an estimated 50000 matches similar to: "NoMethodError when using Breakpoint"
2006 Jun 23
3
Yet another problem with NoMethodError in Store#display_cart
Hi everybody,
I''ve search a lot on google to help me with this one without success. I
know that some people had the same problem as I have, but there
solutions doesn''t seems to work for me.
I''m trying to do the depot example in the AWDwR book. But now I''m stock
with a problem that I can''t solve. I get this error:
<--- begin error here --->
2006 Jul 08
2
NoMethodError in Recipe#index
I''m trying to teach myself Ruby on Rails, and doing the infamous
Cookbook as a starting point. I''m all set until the point when I go to
create of sumbit my recipe and I get this error:
NoMethodError in Recipe#index
You have a nil object when you didn''t expect it!
The error occured while evaluating nil.name
15: <% @recipes.each do |recipe| %>
16: <tr>
2006 Apr 27
2
NoMethodError - why?
Getting this error when hitting update.
NoMethodError in Article#update
You have a nil object when you didn''t expect it!
You might have expected an instance of ActiveRecord::Base.
The error occured while evaluating nil.update_attributes
Source code.
def create
@article = Article.new(params[:article])
@article.user = @session[''user'']
if @article.save
2006 Apr 21
2
NoMethodError with test_read_with_hash
While running the product_test.rb test fixture in the Agile Web
Development book (p. 148), but when I run
ruby test/unit/product_test.rb, I get the following error:
1) Error:
test_read_with_hash(ProductTest):
NoMethodError: 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.[]
2006 Mar 10
0
WEBrick crashing
ruby 1.8.2 (2004-12-25) [i386-mswin32]
latest version of edge rails - patched to make the server work with
win32 (http://dev.rubyonrails.org/ticket/4139)
On some pages WEBrick is crashing with the following:
d:/programming/ruby/lib/ruby/1.8/profiler.rb:27: You have a nil object
when you
didn''t expect it! (NoMethodError)
You might have expected an instance of Array.
The error occured
2006 Dec 01
2
more_like_this not working?
Hi all,
using ferret 0.10.13 and aaf trunk, i cannot get more_like_this to work.
I read other posts on this forum related to that, but that did not solve
it.
I have a model Question with a field question_text. I do:
-----------------------------------------------
>> q = Question.find(:first)
>> q.more_like_this
NoMethodError: You have a nil object when you didn''t expect
2008 Mar 17
2
NoMethodError (...occurred while evaluating nil.split)
I am getting a NoMethodError, with the following decription:
You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.split
The error is raised on function call line of the ''.html.erb'' file.
The function is present in the relevant ''helper.rb'' file and contains
the
2007 May 26
0
New worker not being created
I figured out that in the backgroundrb.yml, I had the old setting of making
the database RAILS_ENV. It wasn''t a valid variable in backgroundrb 0.2.1,
and it wasn''t reporting an error, so I had no idea. Once I changed it to
''development'' or ''production'', it started working.
I found that if a worker has an error, it usually logs the error
2009 Apr 04
2
NoMethodError in PublicController
Hello,
I''m following a tutorial with a public controller, line_item model,
and cart model. When I try to add an item to the cart I am getting an
error
NoMethodError in PublicController#add_to_cart
You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.<<
Here is my code
2006 Mar 19
2
Unit test confusion
Hey all,
I''m following along with AWDWR, specifically the unit testing.
On page 148, it shows you how Test::Unit::TestCase will automatically
define instance variables based on your fixtures.
It doesn''t seem to actually work, though. It seems that both @artists
["beatles"]["name"] and @beatles.name are nil objects in my test,
where as
2006 May 10
3
NoMethodError
When I want to see my users, then I get:
-----------------------------------------------------
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.each
Extracted source (around line #3):
1: <% @page_title = "Spisek uporabnikov" -%>
2: <table>
3: <% for user in @all_users %>
4:
2009 Apr 23
0
NoMethodError in StoreController#add_to_cart
Working through the Agile Web Development w/ Rails book on p114. I can
add single items of each to the cart but when I try to add a second item
I get the following error:
NoMethodError in StoreController#add_to_cart
You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.+
Any idea why this is happening?
2007 Jan 31
2
NoMethodError in ClassifiedController#create
Hope you can help. Getting the error message
NoMethodError in ClassifiedController#create
You have a nil object when you didn''t expect it!
You might have expected an instance of ActiveRecord::Base.
The error occurred while evaluating nil.save
Here''s my controller code. I''m totally new to ruby on rails so help
would be much appreciated
class ClassifiedController <
2008 Apr 15
2
NoMethodError in StoreController#add_to_cart
I''m trying to set up the Depot app from Agile Web Development and I
got this error after C1 - Creating a Cart.
The exact error looks like this:
-------------------------------------------------------------------
NoMethodError in StoreController#add_to_cart
You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occurred while
2006 May 02
0
YAML failing to de-serialize
I''m seeing this same problem that Josh was seeing back on March 23rd
(see below)
I''ve got the following YAML snippet stored in a text field:
"--- !ruby/object:FieldValue \nattributes: \n item_id: 60\n title:
Test\n field_id: 15\n created_by_id: 5\n locale: en\n link:
www.cclearn.com\n comment: this is a test\n created_at: 2006-05-02
15:43:14.256792 Z\nnew_record:
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 Dec 23
2
NoMethodError in Book#show_subjects
Hi,
I am quite new to ROR.I am trying to create a rails simple application
that has informations about Books and Subjects.Srangely, I finished
creating a basic application, and it worked fine.
But then , I just tried to add some more values in the database, and
faced problem with migration, that just made me crazy. SO I deleted the
database and did the database and migration thing all over again
2005 Dec 29
7
belongs_to causing NoMethodError exceptions ... ?
I''ve got a really strange problem using belongs_to. I apologize in
advance for the length... this is going to take a while to explain.
Basic idea: Creating a User requires that the user enter an email
address and activation key that matches an existing PendingUser.
After creating the user successfully, that pending user should be
marked as "used".
The problem:
When I
2006 Feb 02
3
breakpointer failing
Hey there,
I got a new workstation going on here an Intel iMac, and I''ve compiled
and installed everything with intel binaries. Everything works fine, I
even got that cool clever lighttpd script running
(http://www.bigbold.com/snippets/posts/show/303).
But the one thing that doesn''t work is breakpoints and the breakpointer script.
When I run script/breakpointer, I get the
2006 Feb 14
0
Help with Eager Association
I''ve gotten eager associations to work before, but for some reason
this isn''t working out for me this time. I''ve been scratching my head
but can''t quite figure out the nuances of what works and what doesn''t
work.
I''ve got 3 models: profile, widget_configuration and widgets
profile.rb --
has_many :widget_configurations