View以外の場所でヘルパーをつかう方法
ActionController::Helpersのhelpers()を使います。
# ruby script/console >> ApplicationController.helpers.simple_format "aaa" => "<p>aaa</p>"
という感じ。
ActionController::Helpersのhelpers()を使います。
# ruby script/console >> ApplicationController.helpers.simple_format "aaa" => "<p>aaa</p>"
という感じ。