It's pretty straight forward. I'm using a rest based approach with
mapped resources.
A HTTP GET to the message resource/controller ignites the index action
and list all the message, ie. index.html.erb, but user can also pop it
out in a new (smaller) browser window, hence the rendering of the
popup.html.erb template.

The periodically_call_remote generates som javascript goodie that
ignites a XmlHttp GET request to the same resource, requesting an
(updated) list of messages. Hence the format.js part that ignites a
partial into the previously rendered index.html.erb or popup.html.erb

Well, as said before. Everything works fine in two different
development enviroments. Just not at Heroku....


On Jun 12, 3:12 pm, justindz <[EMAIL PROTECTED]> wrote:
> Just out of curiosity, and so I can try to help, why are you using a
> template in the html response and a partial in the js response?  Are
> they different files?  The error doesn't look like it's complaining
> about the partial but is actually complaining about trying to find a
> template file (which may have different mapping rules).
>
> On Jun 12, 6:29 am, IE <[EMAIL PROTECTED]> wrote:
>
> > Hello,
>
> > My app is complaining that it won't find partial 'index'  (app/views/
> > messages/_index.html.erb). I've tried with prefix 'messages/' and
> > without. Doesn't make a difference.
>
> > Seem to works with normal HTTP GET request, but fails on the calls
> > done via periodically_call_remote (with :method => :get)
>
> > Everything works locally on two diffrent machines (one running win32XP
> > on running latest OS X).
>
> > Is this a bug?
>
> > Error log:http://pastie.org/private/wskmonwwws7pyejuz2btqg
>
> > Controller:http://pastie.org/private/cl7n4qwylroe7y9hukpmpw
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Heroku" 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/heroku?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to