Max os x service start up : StartupItem

A good guide is available here File:  /Library/StartupItems/RRiki/StartupParameters.plist: { Description = “RRiki server”; Provides    = (“RRiki”); Uses        = (“Ruby”); OrderPreference = “Last”; Messages = {  start = “Starting RRiki server”;  stop = “Stopping RRiki server”;  restart = “Restarting RRiki server”; };} File: /Library/StartupItems/RRiki/RRiki #!/bin/sh ### RRiki service startup script## . /etc/rc.common StartService (){    ConsoleMessage “Starting RRiki”    cd /Users/kghose/Source/Rriki2/    /usr/local/bin/thin start -eproduction -d}… Read More Max os x service start up : StartupItem

Calling an action when a selection box changes

in partial (view) selected}, {:class => ‘historyselect’}) %> <%= link_to_remote 'x',      :url => {:controller => ‘rriki’,                :action => ‘clear_history’},      :html => {:title => ‘Clear history’},      :method => :get %><%= observe_field 'history_sel',    :url => {:controller => ‘rriki’,             :action => ‘select_item_in_history’},    :with => ‘history_sel’ %> changing the select will call the action select_item_in_history with params[‘history_sel’] set… Read More Calling an action when a selection box changes