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:

Posted in idea / rant| 1 Comment | 

Removing NGINX problem in ubuntu ( or debian )

Posted by kusno mudiarto at April 1st, 2008

I got some problem removing NGINX in my computer running ubuntu. It gave me this error :

Removing nginx ...
Stopping nginx: invoke-rc.d: initscript nginx, action "stop" failed.
dpkg: error processing nginx (--remove):
 subprocess pre-removal script returned error exit status 1
Starting nginx: invoke-rc.d: initscript nginx, action "start" failed.
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 nginx
E: Sub-process /usr/bin/dpkg returned an error code (1)

Fortunately I found the fix to this problem in here : http://www.digitalsanctum.com/2007/11/07/uninstalling-nginx-via-apt-get-stopping-nginx-invoke-rcd-initscript-nginx-action-stop-failed/

Tags:

Posted in software / tools| No Comments |