Sharing a Session between multiple subdomains/rails-apps is quite easy.
Make shure you're using the ActiveRecord (db-based) session store and all instances share the same secret (- obviously the same db, too). In config/environment.rb (config-block):
config.action_controller.session_store = :active_record_store #store session in db config.action_controller.session = { :session_key => '_MYWEBAPP', #has to mach over all instances :secret => 'mysecretmysecretmysecret' #has to mach over all instances }Tell rails to set the session-cookie on "all subdomains" by adding this line to config/environments/myenvironment.rb. Note the leading dot in ".mydomain.com".
ActionController::Base.session = { :domain => '.mydomain.com' }(Apprently this works only for rails >= 2.3)
The latex-invoice package makes it really easy to write invoices in LaTeX.
For debian-users installing latex-invoice is straightforward:
apt-get install texlive-latex-extra
Here's an example document. This is what it will look like.
\documentclass{letter}
\usepackage{invoice}
\address{My Name \\ My Street \\ My Zip\\ my@mail.com \\ etc}
\signature{Fnord Prefake}
\date{23. May 2009}
\begin{document}
\begin{letter}{Customer name \\
Customer street \\
Customer zip}
\opening{Invoice no. 1}
My greeting
\begin{invoice}{Euro}{0}
\ProjectTitle{Example Project}%
\Fee{Development} {1000.00} {1}
\end{invoice}
\closing{My closing}
\end{letter}
\end{document}
Grab the (sqlite) sql dump an fire up your editor:
sqlite3 db/development.sqlite .dump .quit > dump.sql
You're done. Just import your new MySQL dump.