lib/generators/rostra/templates/app/helpers/rostra/application_helper.rb in rostra-0.3.1 vs lib/generators/rostra/templates/app/helpers/rostra/application_helper.rb in rostra-0.3.2
- old
+ new
@@ -58,13 +58,13 @@
# content_tag :div, "Tags: #{tags}".html_safe, class: 'tags'
# end
# Finds the url to the user's avatar following this logic:
#
- # 1. Calls <tt>avatar</tt> on the user object
+ # 1. Calls +avatar+ on the user object
# 2. Uses the users email address to look for a gravatar
- # 3. Renders <tt>app/assets/images/rostra/anonymous_avatar.png</tt>
+ # 3. Renders +app/assets/images/rostra/anonymous_avatar.png+
#
# def rostra_user_avatar(user)
# if user.respond_to?(:avatar)
# url = user.avatar
# else
@@ -73,10 +73,10 @@
# url = "http://gravatar.com/avatar/#{gravatar_id}.png?s=48&d=#{CGI.escape(default_url)}"
# end
# image_tag(url, class: 'avatar')
# end
- # Used to populate both the <tt>title</tt> and <tt>h1</tt> elements for each page.
+ # Used to populate both the +title+ and +h1+ elements for each page.
#
# def page_title_helper
# case "#{controller_name}##{action_name}"
# when "questions#show" then @question.title
# when "questions#index" then