Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F461121
faq.rb
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, May 17, 11:14 PM
Size
340 B
Mime Type
text/x-ruby
Expires
Mon, May 19, 11:14 PM (16 h, 38 m)
Engine
blob
Format
Raw Data
Handle
220136
Attached To
rARCHIVING archiving
faq.rb
View Options
# Faq entries are short instructions for using Archiving.
class
Faq
<
ActiveRecord
::
Base
establish_connection
ARCHIVING_CONF
validates
:title
,
:body
,
presence
:
true
# Runs the markdown and returns the html output
#
# @return [String] HTML output of body
def
pretty_body
Archiving
.
markdown
.
render
(
body
)
.
html_safe
end
end
Event Timeline
Log In to Comment