Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ruby-1.8.7-p334 :004 > expire_fragment(:controller => 'main', :action => 'index')
- NoMethodError: undefined method `expire_fragment' for #<Object:0x1001dd2a0>
- from (irb):4
- from :0
- ruby-1.8.7-p334 :005 > ActionController::Caching::Fragments.expire_fragment(:controller => 'main', :action => 'index')
- NoMethodError: undefined method `expire_fragment' for ActionController::Caching::Fragments:Module
- from (irb):5
- from :0
- ruby-1.8.7-p334 :006 > ActionController::Caching::Fragments::expire_fragment(:controller => 'main', :action => 'index')
- NoMethodError: undefined method `expire_fragment' for ActionController::Caching::Fragments:Module
- from (irb):6
- from :0
- ruby-1.8.7-p334 :007 > ActionController::Base.new.expire_fragment(:controller => 'main', :action => 'index')
- NoMethodError: undefined method `host_with_port' for nil:NilClass
- from /Users/benlieb/.rvm/gems/ruby-1.8.7-p334@idance/gems/activesupport-3.0.7/lib/active_support/whiny_nil.rb:48:in `method_missing'
- from /Users/benlieb/.rvm/gems/ruby-1.8.7-p334@idance/gems/actionpack-3.0.7/lib/action_controller/metal/url_for.rb:9:in `url_options'
- from /Users/benlieb/.rvm/gems/ruby-1.8.7-p334@idance/gems/actionpack-3.0.7/lib/action_dispatch/routing/url_for.rb:131:in `url_for'
- from /Users/benlieb/.rvm/gems/ruby-1.8.7-p334@idance/gems/actionpack-3.0.7/lib/action_controller/caching/fragments.rb:34:in `fragment_cache_key'
- from /Users/benlieb/.rvm/gems/ruby-1.8.7-p334@idance/gems/actionpack-3.0.7/lib/action_controller/caching/fragments.rb:89:in `expire_fragment'
- from (irb):7
- from :0
- ruby-1.8.7-p334 :008 > ActionController::Base.new
- => #<ActionController::Base:0x10566a200 @_status=200, @view_context_class=nil, @action_has_layout=true, @_headers={"Content-Type"=>"text/html"}>
- ruby-1.8.7-p334 :009 > a = ActionController::Base.new
- => #<ActionController::Base:0x105642610 @_status=200, @view_context_class=nil, @action_has_layout=true, @_headers={"Content-Type"=>"text/html"}>
- ruby-1.8.7-p334 :010 > a.expire_fragment(:controller => 'main', :action => 'index')
- NoMethodError: undefined method `host_with_port' for nil:NilClass
- from /Users/benlieb/.rvm/gems/ruby-1.8.7-p334@idance/gems/activesupport-3.0.7/lib/active_support/whiny_nil.rb:48:in `method_missing'
- from /Users/benlieb/.rvm/gems/ruby-1.8.7-p334@idance/gems/actionpack-3.0.7/lib/action_controller/metal/url_for.rb:9:in `url_options'
- from /Users/benlieb/.rvm/gems/ruby-1.8.7-p334@idance/gems/actionpack-3.0.7/lib/action_dispatch/routing/url_for.rb:131:in `url_for'
- from /Users/benlieb/.rvm/gems/ruby-1.8.7-p334@idance/gems/actionpack-3.0.7/lib/action_controller/caching/fragments.rb:34:in `fragment_cache_key'
- from /Users/benlieb/.rvm/gems/ruby-1.8.7-p334@idance/gems/actionpack-3.0.7/lib/action_controller/caching/fragments.rb:89:in `expire_fragment'
- from (irb):10
- from :0
- ruby-1.8.7-p334 :011 > ApplicationController.expire_fragment(:controller => 'main', :action => 'index')
- NoMethodError: undefined method `expire_fragment' for ApplicationController:Class
- from (irb):11
- from :0
- ruby-1.8.7-p334 :012 > ApplicationController.expire_fragment(:controller => 'main', :action => 'index')
- NoMethodError: undefined method `expire_fragment' for ApplicationController:Class
- from (irb):12
- from :0
- ruby-1.8.7-p334 :013 > MainController.expire_fragment(:controller => 'main', :action => 'index')
- NoMethodError: undefined method `expire_fragment' for MainController:Class
- from (irb):13
- from :0
- ruby-1.8.7-p334 :014 > MainController.new.expire_fragment(:controller => 'main', :action => 'index')
- NoMethodError: undefined method `host_with_port' for nil:NilClass
- from /Users/benlieb/.rvm/gems/ruby-1.8.7-p334@idance/gems/activesupport-3.0.7/lib/active_support/whiny_nil.rb:48:in `method_missing'
- from /Users/benlieb/.rvm/gems/ruby-1.8.7-p334@idance/gems/actionpack-3.0.7/lib/action_controller/metal/url_for.rb:9:in `url_options'
- from /Users/benlieb/.rvm/gems/ruby-1.8.7-p334@idance/gems/actionpack-3.0.7/lib/action_dispatch/routing/url_for.rb:131:in `url_for'
- from /Users/benlieb/.rvm/gems/ruby-1.8.7-p334@idance/gems/actionpack-3.0.7/lib/action_controller/caching/fragments.rb:34:in `fragment_cache_key'
- from /Users/benlieb/.rvm/gems/ruby-1.8.7-p334@idance/gems/actionpack-3.0.7/lib/action_controller/caching/fragments.rb:89:in `expire_fragment'
- from (irb):14
- from :0
- ruby-1.8.7-p334 :015 > MainController.new.expire_fragment(action => 'index')
- NameError: undefined local variable or method `action' for #<Object:0x1001dd2a0>
- from (irb):15
- from :0
- ruby-1.8.7-p334 :016 > MainController.new.expire_action(:controller => 'main', :action => 'index')
- NoMethodError: protected method `expire_action' called for #<MainController:0x10582f568>
- from (irb):16
- from :0
- ruby-1.8.7-p334 :017 > MainController.new.expire_action(:controller => 'main', :action => 'index')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement