Merb 0.9.2 xml.builder problem
Posted by kusno mudiarto at April 24th, 2008
Somehow I cannot render .xml content type with merb 0.9.2; maybe I messed up something in my configuration. I keep getting this error :
No Template Found : ...... create.xml.*
although I’m pretty sure that I have create.xml.builder in the specified directory. It seems like the builder was not registered correctly. I was able to fix it by adding:
require 'merb-builder'
in the app/applications.rb
after that merb recognize create.xml.builder file that was in my views
update:
I think the better way is to do it in config/init.rb and add
dependency 'merb-builder'
somewhere in Merb::BootLoader.after_app_loads
Tags: merbxml builder

qj3adizbhznyonwr
Marcie Higgins