Advertisement
Guest User

Untitled

a guest
Sep 4th, 2011
324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.75 KB | None | 0 0
  1. ruby-1.8.7-p334 :004 > expire_fragment(:controller => 'main', :action => 'index')
  2. NoMethodError: undefined method `expire_fragment' for #<Object:0x1001dd2a0>
  3. from (irb):4
  4. from :0
  5. ruby-1.8.7-p334 :005 > ActionController::Caching::Fragments.expire_fragment(:controller => 'main', :action => 'index')
  6. NoMethodError: undefined method `expire_fragment' for ActionController::Caching::Fragments:Module
  7. from (irb):5
  8. from :0
  9. ruby-1.8.7-p334 :006 > ActionController::Caching::Fragments::expire_fragment(:controller => 'main', :action => 'index')
  10. NoMethodError: undefined method `expire_fragment' for ActionController::Caching::Fragments:Module
  11. from (irb):6
  12. from :0
  13. ruby-1.8.7-p334 :007 > ActionController::Base.new.expire_fragment(:controller => 'main', :action => 'index')
  14. NoMethodError: undefined method `host_with_port' for nil:NilClass
  15. 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'
  16. 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'
  17. 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'
  18. 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'
  19. 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'
  20. from (irb):7
  21. from :0
  22. ruby-1.8.7-p334 :008 > ActionController::Base.new
  23. => #<ActionController::Base:0x10566a200 @_status=200, @view_context_class=nil, @action_has_layout=true, @_headers={"Content-Type"=>"text/html"}>
  24. ruby-1.8.7-p334 :009 > a = ActionController::Base.new
  25. => #<ActionController::Base:0x105642610 @_status=200, @view_context_class=nil, @action_has_layout=true, @_headers={"Content-Type"=>"text/html"}>
  26. ruby-1.8.7-p334 :010 > a.expire_fragment(:controller => 'main', :action => 'index')
  27. NoMethodError: undefined method `host_with_port' for nil:NilClass
  28. 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'
  29. 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'
  30. 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'
  31. 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'
  32. 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'
  33. from (irb):10
  34. from :0
  35. ruby-1.8.7-p334 :011 > ApplicationController.expire_fragment(:controller => 'main', :action => 'index')
  36. NoMethodError: undefined method `expire_fragment' for ApplicationController:Class
  37. from (irb):11
  38. from :0
  39. ruby-1.8.7-p334 :012 > ApplicationController.expire_fragment(:controller => 'main', :action => 'index')
  40. NoMethodError: undefined method `expire_fragment' for ApplicationController:Class
  41. from (irb):12
  42. from :0
  43. ruby-1.8.7-p334 :013 > MainController.expire_fragment(:controller => 'main', :action => 'index')
  44. NoMethodError: undefined method `expire_fragment' for MainController:Class
  45. from (irb):13
  46. from :0
  47. ruby-1.8.7-p334 :014 > MainController.new.expire_fragment(:controller => 'main', :action => 'index')
  48. NoMethodError: undefined method `host_with_port' for nil:NilClass
  49. 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'
  50. 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'
  51. 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'
  52. 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'
  53. 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'
  54. from (irb):14
  55. from :0
  56. ruby-1.8.7-p334 :015 > MainController.new.expire_fragment(action => 'index')
  57. NameError: undefined local variable or method `action' for #<Object:0x1001dd2a0>
  58. from (irb):15
  59. from :0
  60. ruby-1.8.7-p334 :016 > MainController.new.expire_action(:controller => 'main', :action => 'index')
  61. NoMethodError: protected method `expire_action' called for #<MainController:0x10582f568>
  62. from (irb):16
  63. from :0
  64. ruby-1.8.7-p334 :017 > MainController.new.expire_action(:controller => 'main', :action => 'index')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement