User Manual

Attributes

Attributes are built-in properties of models that are useful when pulling content in to templates or through the API. The following are the attributes that all models have:

  • id
  • created_at
  • updated_at
  • status
  • position

These attributes can be used in a number of ways to display content, such as in ERB on a template like so:

<% content(:model => :user_manual_entry, :find => 'user_manual_category.status:enabled', :order_by => 'created_at', :order => 'desc', :limit => 5).each_with_index do |entry, index| -%>

To display the User Manual results on the main Support page, we ordered the entries by ‘created_at’ in descending order, which means that the last five entries created will appear with the most recently created entry at the top of the list.