Created
October 31, 2014 09:41
-
-
Save Sylvain303/5899c453579871bfbfc4 to your computer and use it in GitHub Desktop.
load helper in rails console
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# here redmine issue helper | |
foo = ActionView::Base.new | |
foo.extend IssuesHelper | |
foo.extend CustomFieldsHelper | |
issue = Issue.find_by_id(770) | |
user = User.find_by_id(748) | |
foo.render_email_issue_attributes(issue, user, true) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment