Class: Recruiter::ArticlesController

Inherits:
RecruiterController show all
Defined in:
app/controllers/recruiter/articles_controller.rb

Instance Method Summary collapse

Methods included from CrudFlashMessagerHelper

#crud_flash, #set_crud_error_flash, #set_crud_success_flash

Instance Method Details

#indexObject



5
6
7
8
# File 'app/controllers/recruiter/articles_controller.rb', line 5

def index
  @articles = scope
  respond_with(@articles)
end

#showObject



10
11
12
13
14
15
# File 'app/controllers/recruiter/articles_controller.rb', line 10

def show
  @article = scope.find(params[:id])
  ensure_canonical_url(@article) do
    respond_with(@article)
  end
end