Module: RobotsDotText::Controller
- Extended by:
- ActiveSupport::Concern
- Included in:
- RobotsDotTextController
- Defined in:
- lib/robots_dot_text/controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/robots_dot_text/controller.rb', line 5 def show begin render file: robots_file_path, layout: false, content_type: 'text/plain' rescue ActionView::MissingTemplate render file: default_robots_path, layout: false, content_type: 'text/plain' end end |