On Nov 15, 2007 8:31 PM, Aditya Agustyana <[EMAIL PROTECTED]> wrote: > 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
mana sini error yang lengkapnya? pasti karna lo belum definisiin metode di obyek yg mo lo pake dit ! -- Arie | http://linkedin.com/in/ariekeren | http://profile.to/ariekeren/ http://ariekusumaatmaja.wordpress.com | http://groups.yahoo.com/groups/id-ruby

