Skip to content

Commit

Permalink
Autolinking in posts
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason L Perry committed Jan 29, 2009
1 parent 0e70d47 commit 4b943ac
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/views/topics/_reply.html.erb
Expand Up @@ -6,7 +6,7 @@
</div>

<div class="body">
<%= textilize h(reply.body) %>
<%= textilize auto_link(h(reply.body)) %>
</div>

</div>
2 changes: 1 addition & 1 deletion app/views/topics/show.html.erb
Expand Up @@ -9,7 +9,7 @@
</div>

<div class="body">
<%= textilize h(@topic.body) %>
<%= textilize auto_link(h(@topic.body)) %>
</div>

<div class"replies">
Expand Down
2 changes: 1 addition & 1 deletion config/environment.rb
Expand Up @@ -29,7 +29,7 @@
# config.gem "aws-s3", :lib => "aws/s3"
config.gem "mislav-will_paginate", :lib => "will_paginate", :version => "~>2.1", :source => "http://gems.github.com/"
config.gem "ruby-openid", :lib => "openid"
config.gem "BlueCloth", :lib => "bluecloth"
config.gem "RedCloth", :lib => "redcloth", :version => "4.1.1"

# Only load the plugins named here, in the order given. By default, all plugins
# in vendor/plugins are loaded in alphabetical order.
Expand Down
8 changes: 7 additions & 1 deletion spec/fixtures/topics.yml
@@ -1,7 +1,13 @@
one_week:
author: jasper
subject: One Week Left...
body: How're we looking in levels?
body: |
How're we looking in levels?
Another paragraph.
Then a list:
* http://tekkub.net/tg
lorem_ipsum:
author: dedguy
Expand Down

0 comments on commit 4b943ac

Please sign in to comment.