Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F462776
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
Mon, May 19, 12:00 AM
Size
340 B
Mime Type
text/x-ruby
Expires
Wed, May 21, 12:00 AM (13 h, 43 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