tracks/app
Matt Rogers d0c4fee7e4 Don't include a protocol or domain for relative_to_root
Tracks uses this javascript method in the application layout called
`relative_to_root` to get relative paths for a lot of Javascript
functions. However, it includes the fully qualified protocol and domain
for the tracks site in question. If you have Tracks proxied through SSL
with nginx, then you get a non-secure URL which causes the Javascript to
not work to fetch things like contexts or projects for autocomplete.

Instead of using the `root_url` helper that Rails provides that won't
know about SSL, just use a normal forward slash instead, so that you
still get a path that's relative to the root instead of a URL.
2016-02-09 15:36:53 -06:00
..
assets Use jquery-ui-rails gem instead of vendored jQuery UI 2016-01-30 16:12:31 -05:00
controllers Extract rendering to helper method. Shift filename sanitization to controller. 2016-02-02 11:08:12 +00:00
helpers Extract rendering to helper method. Shift filename sanitization to controller. 2016-02-02 11:08:12 +00:00
mailers initial upgrade to rails 3.2.3 2012-04-30 13:56:33 +02:00
models Extract rendering to helper method. Shift filename sanitization to controller. 2016-02-02 11:08:12 +00:00
services make todo_from_rich_message time zone aware. test was failing. 2014-01-26 15:05:27 +01:00
views Don't include a protocol or domain for relative_to_root 2016-02-09 15:36:53 -06:00