search for: whiny_nils

Displaying 20 results from an estimated 32 matches for "whiny_nils".

Did you mean: whiny_nil
2011 Jul 05
7
error of "rake test" command
Hi, I have an error when i use rake test, plz help akyen@ubuntu:~/Desktop/p$ rake test WARNING: Global access to Rake DSL methods is deprecated. Please include ... Rake::DSL into classes 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
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 = true...
2008 May 21
2
Schedule write errors?
My BackgrounDRb server intermittently bails out with the following exception in the middle of a long running task running on a Worker sub classed from BackgrounDRb::MetaWorker (the point at which it raises this exception is different each time it runs) /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_core.rb:145:in `schedule_write'': You have a nil object when you
2011 Feb 06
2
Controller Testing + Devise = boom (undefined @controller, request)
Here I am, trying to learn TDD and BDD. Getting start, most simple case, and the world is falling apart: My test code: it "should respond with success" do puts ''hi'' # get :new # response.should be_success end My stack trace: $ rspec spec "controller: nil" F Failures: 1) VideosController new exposes request and response before and
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&qu...
2011 Oct 06
5
Simple ActiveRecord serialise problem
When I create a table with the following SQL: # create table foos (id SERIAL, content VARCHAR(255)); And define a class as 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
2006 Apr 27
1
Ferret crashing Ruby
I''ve gotten several problems with C ferret crashing ruby. Here''s the stack trace of my latest case: #0 0x00000050 in ?? () #1 0xb74028ab in iw_close (iw=0x8685a40) at index_rw.c:947 #2 0xb7414359 in index_destroy (self=0x829ebc0) at ind.c:89 #3 0xb73f00bc in frt_ind_free (p=0x829ebc0) at r_search.c:1564 #4 0xb7f04dca in rb_gc_call_finalizer_at_exit () from
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?
Below is the content of my backgroundrb_server_11007.log This seems to happen in a non-repeatable way - so every 2 days or sometimes after 4-5 days, my b/g process dies with this error. Is this something anyone else has seen - any fixes? Thanks, Raghu ===============true /usr/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_core.rb:145:in `schedule_write'': You have a nil object when
2006 Apr 22
0
Rails Dispatcher Problem
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I seem to have the same error as http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/178689 The problem is that under apache it does not work, due to my evil firewall on my vps i cant check if webrick works or not. Below is from shell when i execute the dispatcher. The same thing happens whether i run it with .rb or .fcgi. Versions: ruby
2010 Jul 03
0
rspec controller test strange error: undefined method `call' for nil:NilClass
must be doing something dumb.... not sure, but the ''call'' appears to be on the block.call when the respond_to block gets executed. straight forward "channels" resource with a ''create'' action.... only new thing is just assigning the current_user to the model. def create @channel = Channel.new(params[:channel]) @channel.user = @user
2010 Jul 25
0
Testing problems: ActiveSupport
Hey everybody, I am trying to test a small application with a simple testing, but I get the following 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
2011 Jul 23
0
Rendering of Javascript updates with Rails > 2.1
Hey, i am currently upgrading a Rails 2.1 app to 2.3 to benefit from Rails engines. The app requires rendering javascript updates to strings, which does not work with 2.3 anymore: data = ActionView::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
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.new...
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 conf...
2008 Apr 03
0
Packet error on startup
Hi, New BackgrounDrb user struggling for a couple of days to get things up an going. System: Ruby 1.8.6 Packet 0.1.5 chronic 0.2.3 BackgrounDrb 1.0.3 (downloaded 4/02/08 and 4/03/08) I installed the packet and chronic gems as per instructions. I used git to download BDrb as per instructions and ran the rake setup script. When I run script/backgroundrb from my rails app main directory, I get
2010 Nov 15
0
Problem testing Authlogic UserSession
I''ve posted this to the Authlogic group but things seem a little quiet, so perhaps someone here can help: ''m testing Authlogic 2.1.6, running under Rails 3.0.1., using rspec 2.1.0 I have the following: user.rb class User < ActiveRecord::Base acts_as_authentic do |config| config.login_field :email config.ignore_blank_passwords false
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
My main layout includes separate content_for/yield sections for my header, sidebar, footer, and content. However, when running a view spec, the `rendered` variable seems to only contain a string of just the primary content and ignores the header/footer/sidebar as well as the rest of my layout file (the "render" call just returns my primary content wrapped in generic <html> and
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