You'll most probably want to use Passenger Standalone for development.
sudo apt-get install ruby1.8-dev
sudo gem install passenger
sudo passenger-install-apache2-module
Manually: configure a vhost in /etc/apache2/sites-available
and link it to /etc/apache2/sites-enabled
with something like the following
^
NameVirtualHost *:80
<VirtualHost *:80>
ServerName application.local
DocumentRoot /opt/application/public
RailsEnv development
RailsAllowModRewrite off
</VirtualHost>
<VirtualHost *:443>
ServerName application.local
DocumentRoot /opt/application/public
RailsEnv development
RailsAllowModRewrite off
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/localhost.crt
SSLCertificateKeyFile /etc/apache2/ssl/localhost.key
</VirtualHost>
/etc/hosts
or just connect to http://localhost/
touch tmp/restart.txt
in your project root/etc/apache2/mods-available/ssl.load
and /etc/apache2/mods-available/ssl.conf
into /etc/apache2/mods-enabled
using sudo a2enmod ssl