Posts Mentioning RSS Toggle Comment Threads | Keyboard Shortcuts

  • kusno mudiarto 4:52 pm on April 24, 2008 Permalink | Reply  

    Merb 0.9.2 xml.builder problem 

    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:

     
  • kusno mudiarto 10:32 am on April 1, 2008 Permalink | Reply  

    Removing NGINX problem in ubuntu ( or debian ) 

    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:

     
c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
l
go to login
h
show/hide help
esc
cancel