Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #6774: console_helper_patch.diff

File console_helper_patch.diff, 419 bytes (added by Chris Wanstrath, 2 years ago)

Set @controller variable on helper to fix link_to calls

  • railties/lib/console_with_helpers.rb

    old new  
    2020  include_all_modules_from ActionView 
    2121end 
    2222 
    23 @controller = ApplicationController.new 
     23helper.instance_variable_set("@controller", ActionController::Integration::Session.new)