class ProfilePresenter < ActionView::Base | url_for doesn't work. why?
Posted
by Totty
on Stack Overflow
See other posts from Stack Overflow
or by Totty
Published on 2010-05-28T20:00:42Z
Indexed on
2010/06/01
22:13 UTC
Read the original article
Hit count: 166
class ProfilePresenter < ActionView::Base
def initialize
super
url_for # i got: You have a nil object when you didn't expect it!
# The error occurred while evaluating nil.url_for
end
end
url_for doesn't work. why?
i make a new instance like this
ProfilePresenter.new
© Stack Overflow or respective owner