Commit graph

24 commits

Author SHA1 Message Date
Carl Chenet 722189b6ac add a dynamic 404 page 2017-05-23 12:26:49 +02:00
Carl Chenet fd25aed94b update to rails 4.2.8 - merged with i18n 2017-05-19 10:29:12 +02:00
Carl Chenet e089d6843a switch to fr as the default locale 2016-11-24 15:55:00 +01:00
Carl Chenet fac9efc706 translate suggest view and controller. fixes #6 2016-11-21 11:59:38 +01:00
Carl Chenet 1650a91851 translate possible uses of markdown. fixes #5 2016-11-18 16:05:51 +01:00
Carl Chenet 29990e9b91 add logo 2016-11-17 16:08:35 +01: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
Serge Paquet aa326da6d8 remove deprecated configuration for implicit join references 2014-12-14 00:09:15 -05:00
Serge Paquet b7b93d0bf9 update to rails 4.1.8 2014-12-13 23:47:44 -05:00
joshua stein 8b3e62d010 move setting of default route host to Rails.application.domain to after initialization
fixes #177
2014-10-03 18:59:06 -05:00
joshua stein 98cd470c74 set the default site domain and name to examples, like in the README 2014-10-03 17:19:27 -05:00
joshua stein 5497fbd7bb allow disabling public invitation requests through a setting 2014-10-03 17:19:00 -05:00
joshua stein 0d6f4ed60c fix story pagination and caching for logged-out users
use a file store so each unicorn process can share the same set of
files (using redis would probably be cleaner)

put page number into how hash when creating the cache key
2014-02-16 09:57:05 -06:00
Serge Paquet 519427586a use Rails4-style strong parameters mass assignment protection 2014-02-02 15:41:38 -05:00
joshua stein bcef7acaf6 set config.i18n.enforce_available_locales to avoid a deprecation warning 2013-12-31 16:00:55 -06:00
Serge Paquet 9b0294c471 upgrade to rails v4.0.2 2013-12-30 17:40:52 -05:00
joshua stein a471eb180a don't hardcode "Lobsters" and "lobste.rs" everywhere, use Rails.application.{name,domain} 2013-06-30 01:50:23 -05:00
joshua stein ae2c0421e6 update to rails 3.2.11
keep ActionDispatch params parsers off
2013-01-08 15:26:12 -06:00
joshua stein 72b67b0103 move monkey patches to a separate file 2012-10-24 14:55:14 -05:00
joshua stein 75f026b182 do some short caching for guest views of story indexes 2012-08-24 11:41:36 -05:00
joshua stein fc1c474fb3 implement private messages 2012-08-24 11:41:34 -05:00
joshua stein d536eaa3b3 move monkey patch to config 2012-08-24 10:57:11 -05:00
joshua stein ada1571a53 invitation system, user settings 2012-08-24 10:57:11 -05:00
joshua stein 093747b796 initial work on conversion from php tree 2012-06-16 20:15:46 -05:00