public
Fork of halorgium/mephisto
Description: A mirror of the mephisto code-base
Homepage: http://mephistoblog.com/
Clone URL: git://github.com/technoweenie/mephisto.git
Search Repo:
Click here to lend your support to: mephisto and make a donation at www.pledgie.com !
mephisto / config / initializers / custom.rb
100644 40 lines (34 sloc) 1.315 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Set this if you're running under a sub directory
# ActionController::AbstractRequest.relative_url_root = '/blog'
 
# turn this on to get detailed cache sweeper logging in production mode
# Site.cache_sweeper_tracing = true
 
# Enable if you want to host multiple sites on this app
# Site.multi_sites_enabled = true
 
# shouldn't need to set the host, it's set automatically
UserMailer.default_url_options[:host] = 'localhost:3000'
UserMailer.mail_from = 'webmaster@localhost'
 
# defaults to ImageScience, then RMagick, then nothing
# ASSET_IMAGE_PROCESSOR = :image_science || :rmagick || :none
 
# OPTIONAL - Redirections
# Deny a route by immediately returning a 404
#
# Mephisto::Routing.deny 'articles/trackback/*' # return 404
#
# Specify multiple denied routes:
#
# Mephisto::Routing.deny 'articles/trackback/*', 'monkey/foo/*'
#
# Redirect elsewhere. You can fill in variables marked by ? or * with variable names beginning with :
#
# Redirect /old/foo to /new/foo and /old/foo/bar to /new/foo/bar
#
# Mephisto::Routing.redirect 'old/*' => 'new/$1'
#
# Redirect with a more specific set of variables
#
# Mephisto::Routing.redirect 'article/?/?/?' => 'new/$2/$1/$3'
 
# Multiple redirections at a time
#
# Mephisto::Routing.redirect \
# 'old/*' => 'new/$1',
# 'article/?/?/?' => 'new/$2/$1/$3'