Method: Rostra::Base::ApplicationHelper#include_meta_description
- Defined in:
- app/helpers/rostra/base/application_helper.rb
#include_meta_description ⇒ Object
Used to add meta description tags to rostra pages
32 33 34 35 36 37 38 |
# File 'app/helpers/rostra/base/application_helper.rb', line 32 def description = case "#{controller_name}##{action_name}" when "questions#show" then @question.title when "questions#index" then "Recently asked questions" end tag(:meta, { :name => "description", :content => description }) end |