Class: Recruiter::ArticlesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Recruiter::ArticlesController
- Defined in:
- app/controllers/recruiter/articles_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
5 6 7 8 |
# File 'app/controllers/recruiter/articles_controller.rb', line 5 def index @articles = scope respond_with(@articles) end |
#show ⇒ Object
10 11 12 13 |
# File 'app/controllers/recruiter/articles_controller.rb', line 10 def show @article = scope.find(params[:id]) respond_with(@article) end |