Hello again!

I moved a little bit forward and previous issues  can be considered as
solved..

I have error with Hobo::Controller as app tries to send email.
  def forgot_password(user, key)
    host = Hobo::Controller.request_host
    app_name = Hobo::Controller.app_name || host
    @subject    = "#{app_name} -- password reset"
    @body       = { :user => user, :key => key, :host =>
host, :app_name => app_name }
    @recipients = user.email_address
    @from       = "no-reply@#{host}"
    @sent_on    = Time.now
    @headers    = {}
  end

Before hobo was plugged (/vendor/plugins) and definitions were stored
in controller.rb as
      def request_host
 
Thread.current['Hobo.current_controller'].request.host_with_port
      end

      def app_name
 
Thread.current['Hobo.current_controller'].send(:call_tag, :app_name)
      end


Do you have idea how to make it work again?

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to