It works for me. Try:
if request.xhr?
render :file => "somefile.dryml"
else
render :text => 'regular'
end
-Ray
On Sep 27, 2010, at 2:53 PM, tjg wrote:
> Thanks, Kevin. Yes, I thought this would be something simple but
> putting this:
>
> hobo_ajax_response if request.xhr?
>
> at the end of the controller action simply throws me back the
> following message, and in a (very large) browser alert window:
> ...
> <h2 class="heading">The page you were looking for could not be
> found</h2>
> ...
>
> I can't figure out how to tell Hobo to just work with the page from
> which the Ajax request came from.
>
> Tim
>
> --
> 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.
>
--
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.