Has anyone using globalize tried it with a respond_to in your  
controller? Something like:

def show
  @question = Question.find(1)
  respond_to do |type|
    type.html
    type.xml
  end
end

I started RESTifying my site and started using respond_to. I kept  
getting an error saying that "show.rhtml" was not found, even though  
it was there. If I removed the respond_to block then the show view  
would output correctly. I tried all sorts of things trying to figure  
out the problem - including changing servers many times from  
webbrick, to mongrel inside of locomotive and then finally to  
litespeed. None of that worked.

I know it was something local to my site because I set up a test app  
and respond_to worked fine.

I started stripping out all the stuff to see if that would help and  
that brought me to globalize. If I comment out all of the globalize  
stuff, then my respond_to works fine.

I haven't dug in to see what could be causing it within globalize,  
but it definetely works without globalize and does not with globalize.

Has anyone else experienced this?

Thanks,
Steve
_______________________________________________
Railsi18n-discussion mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/railsi18n-discussion

Reply via email to