Files
railsgoat/app/controllers/tutorials_controller.rb
T
Joseph Mastey d3fce41e60 change to idiomatic use of layouts versus regular views
no functional change here, but familiar Rails users will see view files in the
locations they expect. this also slightly simplifies controller code

there is one attendant change in the wiki at `rails_3/A1-SQL-Injection-Interpolation.md`
that I'm happy to make after the PR is merged.
2017-09-27 19:22:44 -05:00

10 lines
172 B
Ruby
Executable File

class TutorialsController < ApplicationController
skip_before_action :has_info
skip_before_action :authenticated
def credentials
render layout: false
end
end