I am using Ubuntu 12.04 and I have a rails application, that I would like to start on boot. Also if I start the server from console like
cd
You can use pow for this. Its a zero-config Rack server for Mac OS X.
** Edit **
Prax is an alternative for Linux OS