Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Jonah Fox's latest activity

Saturday, February 07 2009
1905 app/helpers within plugin not being mixed in was updated in Ruby on Rails
  • Jonah Fox
    Jonah Fox commented at 3:26 PM

    In fact this only works if there's already a users_helper.rb within the main project.

    If not then I have to do:

    ActionView::Base.send :include, UsersHelper;

    wit...

  • Jonah Fox
    Jonah Fox commented at 3:03 PM

    --- meant to say ---

    I found that it works if I explicitly include the helper from plugin/init.rb, like:

    require File.join(File.dirname(FILE), "app", "helpers",...

  • Jonah Fox
    Jonah Fox commented at 3:02 PM

    I found that by explicitly including the helper from plugin/init.rb, like:

    require File.join(File.dirname(FILE), "app", "helpers", "users_helper.rb")

    Is this ex...

  • Jonah Fox
    Jonah Fox created the ticket at 12:25 PM

    I have a plugin (engine) with an app directory. Everything works fine except the plugin/app/helpers/* are not being mixed in.

    To get the project to run I have t...