Fix JRuby compatibility.

When creating a .war file with warbler, the public path is set to the
root of the war, not to RAILS_ROOT/public.
Merge pull request #7 from sluukkonen/patch-1

Fix JRuby compatibility.