could probably use a prettier layout and auto-posting a weblog url to the main site (carrying tags)
10 lines
196 B
Ruby
10 lines
196 B
Ruby
class Weblog < ActiveRecord::Base
|
|
belongs_to :user
|
|
|
|
serialize :tags, Array
|
|
|
|
def sanitized_content
|
|
Loofah.fragment(self.content).scrub!(:strip).scrub!(:nofollow).to_s.html_safe
|
|
end
|
|
end
|