Commit graph

10 commits

Author SHA1 Message Date
Carl Chenet b4f0f57df9 User: username regex is a const now 2017-05-23 10:35:14 +02:00
Carl Chenet 5dc024568a don't disable autocomplete on free-text fields - merged with i18n 2017-05-20 15:11:35 +02:00
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
joshua stein c09542a80a enforce a maximum username length of 25 2014-03-24 10:26:07 -05:00
joshua stein 0abe41bd6d mention that profile e-mail addresses are gravatarized 2012-09-08 19:37:30 -05:00
joshua stein 729c38d4c7 how did those tabs get there 2012-09-08 19:37:21 -05:00
joshua stein 361a689b13 link to invited user profile 2012-08-24 11:41:36 -05:00
joshua stein 9f6a1a7e4a try to collect some about info from the new user 2012-08-24 11:41:36 -05:00
joshua stein 647fc5f446 disable autocomplete everywhere 2012-08-24 11:41:35 -05:00
joshua stein ada1571a53 invitation system, user settings 2012-08-24 10:57:11 -05:00