public
Description: Starter Kit for developers using Ruby on Rails to quickly get a blog up & running and then add features.
Homepage: http://www.faithfulgeek.org
Clone URL: git://github.com/faithfulgeek/blog-starter-kit.git
Search Repo:
Misc. changes, great message, eh?
Joe Fiorini (author)
Wed Apr 30 22:28:09 -0700 2008
commit  c1482b0b68a24b5180dbd55330c1b89f7504e5e6
tree    fbd19e5ece3a1a7dc5a5d245861d1168c9976969
parent  a0f573afb64911e9dc977f16758c5dbc2a44e96b
...
 
 
 
...
1
2
3
0
@@ -1 +1,4 @@
0
+[submodule "vendor/plugins/rakismet"]
0
+ path = vendor/plugins/rakismet
0
+ url = git://github.com/jfrench/rakismet.git
...
1
2
3
4
 
5
6
...
1
2
3
 
4
5
6
0
@@ -1,7 +1,7 @@
0
 module PostsHelper
0
   def textilize(value)
0
     value = value.body if value.respond_to?(:body)
0
- RedCloth.new(h(value)).to_html
0
+ RedCloth.new(value, [:filter_html]).to_html
0
   end
0
 end
...
59
60
61
62
 
63
 
64
65
 
 
 
 
 
...
59
60
61
 
62
63
64
65
66
67
68
69
70
71
0
@@ -59,8 +59,14 @@
0
 end
0
 
0
 require 'lib/ActionView/base'
0
-require 'RedCloth'
0
+require "#{File.expand_path(RAILS_ROOT)}/vendor/RedCloth-3.0.4/lib/redcloth"
0
 
0
+# Add custom date formats
0
 ActiveSupport::CoreExtensions::Time::Conversions::DATE_FORMATS[:short_date_only] = "%D"
0
 ActiveSupport::CoreExtensions::Time::Conversions::DATE_FORMATS[:long] = "%B %e, %Y"
0
+
0
+# RedCloth HTML WhiteList customizations
0
+['blockquote', 'table', 'tr', 'td'].each do |tag|
0
+ RedCloth::BASIC_TAGS.delete tag
0
+end
...
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
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0
@@ -1,41 +1 @@
0
-# General Apache options
0
-AddHandler fastcgi-script .fcgi
0
-AddHandler cgi-script .cgi
0
-Options +FollowSymLinks +ExecCGI
0
-
0
-# If you don't want Rails to look in certain directories,
0
-# use the following rewrite rules so that Apache won't rewrite certain requests
0
-#
0
-# Example:
0
-# RewriteCond %{REQUEST_URI} ^/notrails.*
0
-# RewriteRule .* - [L]
0
-
0
-# Redirect all requests not available on the filesystem to Rails
0
-# By default the cgi dispatcher is used which is very slow
0
-#
0
-# For better performance replace the dispatcher with the fastcgi one
0
-#
0
-# Example:
0
-# RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
0
-RewriteEngine On
0
-
0
-# If your Rails application is accessed via an Alias directive,
0
-# then you MUST also set the RewriteBase in this htaccess file.
0
-#
0
-# Example:
0
-# Alias /myrailsapp /path/to/myrailsapp/public
0
-# RewriteBase /myrailsapp
0
-
0
-RewriteRule ^$ index.html [QSA]
0
-RewriteRule ^([^.]+)$ $1.html [QSA]
0
-RewriteCond %{REQUEST_FILENAME} !-f
0
-RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
0
-
0
-# In case Rails experiences terminal errors
0
-# Instead of displaying this message you can supply a file here which will be rendered instead
0
-#
0
-# Example:
0
-# ErrorDocument 500 /500.html
0
-
0
-ErrorDocument 500 "<h2>Application error</h2>Rails application failed to start properly"
...
57
58
59
 
 
 
 
 
 
 
60
61
62
...
57
58
59
60
61
62
63
64
65
66
67
68
69
0
@@ -57,6 +57,13 @@
0
   font-size: 1.1em;
0
 }
0
 
0
+blockquote
0
+{
0
+ margin-left: 1em;
0
+ font-style: italic;
0
+ margin-right: 70px;
0
+}
0
+
0
 h2#title
0
 {
0
   font-family: georgia, 'times new roman', serif;

Comments

    No one has commented yet.