Hi all;

Anyone have any bright insight in how to get Hobo-generated ajax routes to 
include the host (and port)? 

I have this definition:

<form 
with="&new_for_current_user(this.document_attachments)" 
owner="document" 
message="Uploading..." 
updates="#attachments-div,#document-requirements-div" 
without-cancel>

for which Hobo generates a relative path for the action:

<form action="*/documents/4228/document_attachments*"...

and I really need this:

<form action="*https://server.com/lts*/documents/4228/document_attachments
"...

I already have default_url_options set in my ApplicationController:

  def default_url_options(options={})
      case Rails.env.to_sym
      when :development
        { :host => 'localhost', :port => request.port }
      when :test
        { :host => 'localhost', :port => request.port }
      when :staging
        {:host => "testserver.com"}
      when :production
        {:host => "server.com"}
      end

but, my guess is that this is not consulted when Hobo generates an ajax 
route. 

Hobo generates relative routes for all of its ajax links that it creates... 
so, anything I can do? 

If I wasn't being asked to host this app in a sub-directory, I wouldn't 
worry about it, but....

Many thanks,
Tim

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/hobousers.
For more options, visit https://groups.google.com/d/optout.

Reply via email to