I vaguely remember being able to do something like this from inside
script/console:
helper.image_path ‘picture.png’
and it would do the same as this equivalent ERb:
<%= image_path ‘picture.png’ %>
but I’m getting an error now when I try to do that (“you had a nil
object…”).
Obviously I’m not remembering something correctly… what is the right
way to access all those nice ActionView helpers from within
script/console?
(I’ve tried with 1.1.6 and edge… I thought this used to work in 1.1,
maybe I’m wrong)
Thanks
Jeff