Displaying 20 results from an estimated 32 matches for "whiny_nil".
2011 Jul 05
7
error of "rake test" command
...lasses and modules which use the Rake DSL
methods.
WARNING: DSL method Pictographs::Application#task called at /usr/local/
lib/ruby/gems/1.9.1/gems/railties-3.0.7/lib/rails/application.rb:
215:in `initialize_tasks''
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.7/lib/
active_support/whiny_nil.rb:48:in `method_missing'': undefined method
`should_not_be_valid'' for nil:NilClass (NoMethodError)
Thank you very much
Yennie
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email...
2009 Jun 10
1
[PATCH] remove rails2.3 deprecated config.action_view.cache_template_extensions
...b | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/src/config/environments/development.rb b/src/config/environments/development.rb
index b3acf68..9bd4fa6 100644
--- a/src/config/environments/development.rb
+++ b/src/config/environments/development.rb
@@ -33,7 +33,6 @@ config.whiny_nils = true
# Show full error reports and disable caching
config.action_controller.consider_all_requests_local = true
config.action_controller.perform_caching = false
-config.action_view.cache_template_extensions = false
config.action_view.debug_rjs = tru...
2008 May 21
2
Schedule write errors?
...39;'t expect it!
(NoMethodError)
The error occurred while evaluating nil.instance from
/opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_nbio.rb:57:in
`write_and_schedule''
from
/Users/joel/git/deathstar/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/whiny_nil.rb:35:in
`each_with_index''
from
/opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_nbio.rb:51:in
`each''
from
/opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_nbio.rb:51:in
`each_with_index''
from
/opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/...
2011 Feb 06
2
Controller Testing + Devise = boom (undefined @controller, request)
...ller new exposes request and response before and after
the action
Failure/Error: Unable to find matching line from backtrace
NoMethodError:
undefined method `request'' for nil:NilClass
#
/Users/peter/.rvm/gems/ruby-1.9.2-p136/gems/activesupport-3.0.3/lib/active_support/whiny_nil.rb:48:in
`method_missing''
#
/Users/peter/.rvm/gems/ruby-1.9.2-p136/gems/devise-1.1.5/lib/devise/test_helpers.rb:20:in
`initialize''
#
/Users/peter/.rvm/gems/ruby-1.9.2-p136/gems/devise-1.1.5/lib/devise/test_helpers.rb:60:in
`new''
#
/Users/peter/.rvm/gems/rub...
2013 Jun 18
1
Getting rspec error: Net::SMTPServerBusy: Relay access denied
..."spec/support/**/*.rb")].each {|f| require f}
RSpec.configure do |config|
config.use_transactional_fixtures = true
config.infer_base_class_for_anonymous_controllers = false
endend
Spork.each_run do
FactoryGirl.reloadend
test.rb:
Upficial::Application.configure do
config.whiny_nils = true
config.consider_all_requests_local = true
config.action_controller.perform_caching = false
config.action_mailer.delivery_method = :testend
The test itself is very straightforward:
require ''spec_helper''
describe User do
it "sends a confirmation email&q...
2011 Oct 06
5
Simple ActiveRecord serialise problem
...follows:
class Foo < ActiveRecord::Base
serialize :content, JSON
end
Creating a new instance of the class gives an error:
> f = Foo.new
NoMethodError: undefined method `read'' for nil:NilClass
from /Users/andy/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.0/lib/active_support/whiny_nil.rb:48:in `method_missing''
from /Users/andy/Code/FakePlatform/vendor/gems/Darwin/gems/json-1.4.6/lib/json/common.rb:286:in `load''
from /Users/andy/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.0/lib/active_record/base.rb:1938:in `block in set_serialized_attributes''
Do...
2006 Apr 27
1
Ferret crashing Ruby
.../gems/1.8/gems/ferret-0.9.1/lib/ferret/search/field_sorted_hit_queue.rb:123:in `get_cached_comparator''
/usr/lib/ruby/gems/1.8/gems/ferret-0.9.1/lib/ferret/search/field_sorted_hit_queue.rb:26:in `initialize''
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/whiny_nil.rb:35:in `each_with_index''
/usr/lib/ruby/gems/1.8/gems/ferret-0.9.1/lib/ferret/search/field_sorted_hit_queue.rb:25:in `initialize''
/usr/lib/ruby/gems/1.8/gems/ferret-0.9.1/lib/ferret/search/index_searcher.rb:115:in `search''
/usr/lib/ruby/gems/1.8/gems/ferret-0...
2007 Mar 24
6
Rails Development Log
Hi,
I am using Ruby+Rails with Mongrel.
Is there any way to disable logging so that everytime I start rails
(mongrel_rails start), it doesn''t automatically start logging info to
development.log
Thanks!
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on
2008 Jun 15
0
What does this error mean?
...ject when you didn''t expect it!
(NoMethodError)
The error occurred while evaluating nil.instance from
/usr/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_nbio.rb:57:in
`write_and_schedule''
from
/usr/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/whiny_nil.rb:35:in
`each_with_index''
from
/usr/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_nbio.rb:51:in
`each''
from
/usr/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_nbio.rb:51:in
`each_with_index''
from
/usr/lib/ruby/gems/1.8/gems/packet-0.1...
2006 Apr 22
0
Rails Dispatcher Problem
...record-1.14.2
-
---------------------------------------------------------------------------------------------
bluemoon@phoenix [~/public_html/ruby]# ruby --debug public/dispatch.rb
- -cut-
Exception `NoMethodError'' at
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/whiny_nil.rb:35
- - You have a nil object when you didn''t expect it!
The error occured while evaluating nil.downcase
Status: 500 Internal Server Error
Content-Type: text/html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.o...
2010 Jul 03
0
rspec controller test strange error: undefined method `call' for nil:NilClass
...annel => {:these => ''params''}
assigns[:channel].should equal(mock_channel)
end
------
it fails on the post :create line ....reporting
undefined method `call'' for nil:NilClass
at .../.rvm/gems/ruby-1.8.7-p249/gems/activesupport-2.3.5/lib/
active_support/whiny_nil.rb:52
raise_nil_warning_for klass, method, caller
51 else
52 super
53 end
54 end
another clue perhaps is that if you remove the :save => true stub
option, then it works ...but fails at the
if @channel.save line .....reporting
Mock "Channel_1002" received...
2010 Jul 25
0
Testing problems: ActiveSupport
...errors while using Aptana 2.0.5 with Ruby 1.9.1 and Rails
2.3.8(I know why I get the first one, but I''m not sure about the
ActiveSupport errors):
Exception: undefined method `screen_name'' for nil:NilClass
C:/Ruby191/lib/ruby/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/whiny_nil.rb:52:in
`method_missing''
D:/Projects/RailsSpace/test/functional/user_controller_test.rb:39:in
`try_to_login''
D:/Projects/RailsSpace/test/functional/user_controller_test.rb:28:in
`testing_logout''
C:/Ruby191/lib/ruby/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/t...
2011 Jul 23
0
Rendering of Javascript updates with Rails > 2.1
...View::Base.new(Rails::Configuration.new.view_path).render(:update)
do |page|
page["div[id=''foo'']"].removeClass("bar")
end
whihc results in an error because the @template variable is nil.
/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.12/lib/active_support/
whiny_nil.rb:52:in `method_missing'': undefined method
`with_output_buffer'' for nil:NilClass (NoMethodError)
from /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/action_view/
helpers/prototype_helper.rb:577:in `initialize''
from /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/a...
2012 Jan 16
0
Rails3 logging issue in development.log
...ince you don''t have to restart the web server when you make code
changes.
#Rails.logger = Logger.new(STDOUT)
#Rails.logger = Log4r::Logger.new("Rails Application Log")
config.cache_classes = false
# Log error messages when you accidentally call methods on nil.
config.whiny_nils = true
# Show full error reports and disable caching
config.consider_all_requests_local = true
config.action_controller.perform_caching = false
# Don''t care if the mailer can''t send
config.action_mailer.raise_delivery_errors = false
#config.logger = Logger.ne...
2012 Jun 27
0
config.cache_classes true or false in test environment?
...e now the scenario is passing with config.cache_classes = true. Here is
my full test.rb:
RbpCm::Application.configure do
config.action_mailer.default_url_options = { :host => PATH_TO_USE }
config.action_mailer.delivery_method = :test
config.cache_classes = true
config.whiny_nils = true
config.consider_all_requests_local = true
config.action_view.debug_rjs = true
config.action_controller.perform_caching = false
config.log_level = :debug
config.action_mailer.raise_delivery_errors = false
config.active_support.deprecation = :log
con...
2008 Apr 03
0
Packet error on startup
...ect when you didn''t expect it! (NoMethodError)
The error occurred while evaluating nil.instance from /usr/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_nbio.rb:57:in `write_and_schedule''
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/whiny_nil.rb:35:in `each_with_index''
from /usr/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_nbio.rb:51:in `each''
from /usr/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_nbio.rb:51:in `each_with_index''
from /usr/lib/ruby/gems/1.8/gems/packet-...
2010 Nov 15
0
Problem testing Authlogic UserSession
...:password=>"<protected>", :email=>"ron1.weasley1 at hogworts.com"}>
ruby-1.8.7-p302 > us.save
NoMethodError: undefined method `remote_ip'' for nil:NilClass from
/Users/martin/.rvm/gems/ruby-1.8.7-p302 at pta3/gems/
activesupport-3.0.1/lib/active_support/whiny_nil.rb:48:in `method_missing'' from
/Users/martin/.rvm/gems/ruby-1.8.7-p302 at pta3/gems/
authlogic-2.1.6/lib/authlogic/session/magic_columns.rb:61:in `update_info'' from
/Users/martin/.rvm/gems/ruby-1.8.7-p302 at pta3/gems/
activesupport-3.0.1/lib/active_support/callbacks.rb:414:in
`_r...
2006 Feb 15
3
See Rails::Configuration for more options?
In config/environment.rb it states:
# See Rails::Configuration for more options
See where exactly? I can''t find any docs for it, not at
api.rubyonrails.com anyway.
Joe
--
Posted via http://www.ruby-forum.com/.
2010 Aug 18
2
RSpec 2/Rails 3 - content_for in view specs
...'" which gives me:
1) contacts/show.html.erb shows a URL if the contact has one
Failure/Error: render :layout => "application"
undefined method `formats'' for nil:NilClass
#
/home/dylan/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0.rc/lib/active_support/whiny_nil.rb:48:in
`method_missing''
#
/home/dylan/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0.rc/lib/action_view/render/rendering.rb:25:in
`render''
#
/home/dylan/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0.rc/lib/action_view/test_case.rb:103:in
`render''
#
/home/dyla...
2007 Apr 01
8
No stacktrace on errors (edge rails)
Hi,
I must be missing something or have something misconfigured, but I
get no stack-trace when there is an error in the code behind a view.
If the view doesn''t compile, then I see an error & stacktrace, but
all other errors I get a "lost network connection" from the browser,
and nothing at all in the server output or development.log.
It''s been that way with