journalduhacker/config
joshua stein 9f5e04bbba use _path for most things instead of _url
Instead of hard-coding the scheme and host everywhere, use _path
methods to show relative URLs.

Except that our previous setting of
Rails.application.routes.default_url_options in
config.after_initialize made this moot because Rails inserts that
host into all _path helpers for some reason.  So revert that
setting.

But then anything that wants an absolute URL doesn't know the
hostname and the root_url helper throws an exception.  So make a
Rails.application.root_url shortcut to pass the per-app settings in
Rails.application to root_url.

Now we can just use _path helpers most places but still use _url
ones where we need them, such as in RSS views and e-mail templates.
2015-01-02 17:02:55 -06:00
..
environments update to rails 4.1.8 2014-12-13 23:47:44 -05:00
initializers update to rails 4.1.8 2014-12-13 23:47:44 -05:00
locales initial work on conversion from php tree 2012-06-16 20:15:46 -05:00
application.rb use _path for most things instead of _url 2015-01-02 17:02:55 -06:00
boot.rb update to rails 4.1.8 2014-12-13 23:47:44 -05:00
environment.rb upgrade to rails v4.0.2 2013-12-30 17:40:52 -05:00
routes.rb use https for the root route according to config.force_ssl 2014-10-18 22:26:56 -05:00
secrets.yml update to rails 4.1.8 2014-12-13 23:47:44 -05:00
thinking_shinx.yml upgrade thinking-sphinx gem 2014-01-07 05:52:29 -05:00