It may be too late to be of help, but I was trying to do this myself
and couldnt remember how. I am answering this cos I know I will forget
again. So...
>From script/console; to get to helpers in module CustomerHelper for
example use
include ActionView::Helpers::CustomerHelper
it''s simple when you remember but annoying when you can''t.
Perhaps one
for someones cheat sheet.
Tonypm
On Dec 7, 3:56 pm, "Jeff"
<cohen.j...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> 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 ActionViewhelpersfrom 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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---