public
Description: The open source social networking platform in Ruby on Rails from the author of RailsSpace
Homepage: http://insoshi.com
Clone URL: git://github.com/insoshi/insoshi.git
Search Repo:
Added Markdown to profiles
Michael Hartl (author)
Fri Apr 18 10:49:20 -0700 2008
commit  dcca45f35411065e05ef65d33bba8831a781dd95
tree    d31c324a04b2ad27a13523d2fe3e302c7d7db520
parent  dae537e4d6d53b1199e21eb27845a95924f324a1
0
...
31
32
33
 
34
35
36
...
31
32
33
34
35
36
37
0
@@ -31,6 +31,7 @@ $ sudo gem install image_science
0
 $ sudo gem install ferret
0
 $ sudo gem install mysql
0
 $ sudo gem install sqlite3-ruby
0
+$ sudo gem install BlueCloth
0
 
0
 ## Installing the app
0
 
...
47
48
49
 
 
 
 
 
50
51
52
...
47
48
49
50
51
52
53
54
55
56
57
0
@@ -47,6 +47,11 @@ module ApplicationHelper
0
     javascript_tag("$('#{id}').focus()");
0
   end
0
   
0
+ # Display text by sanitizing and formatting.
0
+ def display(text)
0
+ markdown(sanitize(text))
0
+ end
0
+
0
   # Output a column div.
0
   # The current two-column layout has primary & secondary columns.
0
   # The options hash is handled so that the caller can pass options to
...
19
20
21
22
 
23
24
25
...
19
20
21
 
22
23
24
25
0
@@ -19,7 +19,7 @@
0
     <p>
0
     <%= image_tag @person.main_photo %>
0
     
0
- <%= sanitize @person.description %></p>
0
+ <%= display @person.description %></p>
0
   </div>
0
   
0
   <%= render :partial => 'recent_activity' %>

Comments

    No one has commented yet.