Sha256: 0e92f44ad8cbd11759ef8a2f525629f66e4f12679f4c9ca303b2482b5ae001e3
Contents?: true
Size: 315 Bytes
Versions: 5
Compression:
Stored size: 315 Bytes
Contents
# Model of a blog post, defined in schema.rb class BlogPost < ActiveRecord::Base # text for a permalink def self.permalink(url) t('permalink', :url => url) end # Has a title, author and body def written_by # Get sting like "Written by Ricky" t('byline', :author => self.author) end end
Version data entries
5 entries across 5 versions & 4 rubygems