waaah kok bisa sih... aneh
$ ruby script/console
Loading development environment.
>> include ActionView::Helpers::UrlHelper
=> Object
>> Object.methods.respond_to?('link_to')
=> true
>> link_to "ini error nggak yah",:controller=>"foe",:action=>"foe"
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):4
>>
>> exit
$ rails -v
Rails 1.2.5
$ ruby -v
ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-darwin8.8.5]
$
hmm keknya ini masalah versi, oom arie make rails edge kan ?, syah pake
versi 1.2.5
On Nov 17, 2007 1:02 AM, Arie Kusuma Atmaja <[EMAIL PROTECTED]>
wrote:
> On Nov 15, 2007 3:15 PM, Muhammad Rashid Babsel <[EMAIL
> PROTECTED]<el_marsheil%40yahoo.com>>
> wrote:
>
> > hmm..emangnya bisa ya helper dipanggil dari console???
>
> bisa, cara paling singkat nge/cek|hack/ :
>
> >> Object.methods.respond_to?('link_to')
> => true
>
> --
> Arie | http://linkedin.com/in/ariekeren | http://profile.to/ariekeren/
> http://ariekusumaatmaja.wordpress.com |
> http://groups.yahoo.com/groups/id-ruby
>
>
>
--
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]