journalduhacker/app/views
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
..
ban_notification add stuff to deal with banning users 2014-01-12 15:09:32 -06:00
comments use _path for most things instead of _url 2015-01-02 17:02:55 -06:00
email_message fix busted PM e-mail notifications 2014-01-08 20:42:24 -06:00
email_reply Added mentions in comments using @username convention. @username is linked to user profile in comment text, and notifications are available via email and pushover (with notification preferences) when a user is mention. 2012-09-10 13:40:33 -04:00
filters show how many stories have been tagged with each on filters page 2014-01-24 13:53:10 -06:00
global markdown help: mention backticks 2014-05-06 21:32:08 -05:00
home use _path for most things instead of _url 2015-01-02 17:02:55 -06:00
invitation_mailer use _path for most things instead of _url 2015-01-02 17:02:55 -06:00
invitation_request_mailer use _path for most things instead of _url 2015-01-02 17:02:55 -06:00
invitations use _path for most things instead of _url 2015-01-02 17:02:55 -06:00
layouts cater to chrome on android 2014-12-15 15:06:53 -06:00
login use _path for most things instead of _url 2015-01-02 17:02:55 -06:00
messages use _path for most things instead of _url 2015-01-02 17:02:55 -06:00
moderations use _path for most things instead of _url 2015-01-02 17:02:55 -06:00
password_reset use _path for most things instead of _url 2015-01-02 17:02:55 -06:00
search rebuilt comment tree DOM structure as valid HTML 2014-01-20 16:52:19 -05:00
settings use _path for most things instead of _url 2015-01-02 17:02:55 -06:00
signup use _path for most things instead of _url 2015-01-02 17:02:55 -06:00
stories use _path for most things instead of _url 2015-01-02 17:02:55 -06:00
users use _path for most things instead of _url 2015-01-02 17:02:55 -06:00