kalo cuma manggil sih bisa aja
ex mo manggil url helper
include ActionView::Helpers::UrlHelper
cuma jangan harap, method yang ada di modul tersebut akan jalan dengan
sempurna, pasti ada aja errornya hihi
$ ruby script/console
Loading development environment.
>> include ActionView::Helpers::UrlHelper
=> Object
>> link_to "huaacih",:controller=>"dodol",:action=>"garut"
NoMethodError: You have a nil object when you didn't expect it!
The error occurred while evaluating nil.rewrite
from
/opt/local/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/action_controller/base.rb:527:in
`url_for'
from
/opt/local/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/action_view/helpers/url_helper.rb:27:in
`send'
from
/opt/local/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/action_view/helpers/url_helper.rb:27:in
`url_for'
from
/opt/local/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/action_view/helpers/url_helper.rb:75:in
`link_to'
from (irb):13
>>
On Nov 15, 2007 11:52 AM, rofiq <[EMAIL PROTECTED]> wrote:
> dear railers,
>
> kalo lagi di script/console, gimana caranya mo manggil method di
> module ActionView::Helpers::* ya?
>
>
--
blog : http://adityakircon.blogsome.com
ym : kirconboy
skype : adit_skype
Freedom is the right of all sentient beings (Optimus Prime)
[Non-text portions of this message have been removed]