Skip to content

Commit

Permalink
Comments on helpers.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjy committed Aug 7, 2014
1 parent 838a40b commit e6b19a1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/helpers/README_model_helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,17 @@ In progres...
# Tentative data model helper methods.
#
# Return a single line, content_tag(:span, ... ) naming the instance.
# Return a single line, ideally wrapped in a content_tag(:span, ... ) naming the instance.
def <model_name>_tag(model)
return nil if model.nil
# return some model.attribute of interpolated string of model attributes
end
# Return a single line, content_tag(:span, ... ) briefly naming the instance.
# Return a single line, ideally wrapped in a content_tag(:span, ... ) briefly naming the instance.
def <model_name>_short_tag(model)
end
# Return on or more line, content_tag(:div, ... ) detailing the instance.
# Return one or more line, ideally wrapped in a content_tag(:div, ... ) detailing the instance.
def <model_name>_detailed_tag(model)
end
Expand Down

0 comments on commit e6b19a1

Please sign in to comment.