Class: Account::WritersController
- Inherits:
-
BaseController
- Object
- ActionController::Base
- ApplicationController
- BaseController
- Account::WritersController
- Defined in:
- app/controllers/account/writers_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
caches_page_with_cache_marker, #raise_not_found!
Instance Method Details
#show ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'app/controllers/account/writers_controller.rb', line 7 def show params[:per] = 10 if params[:per].blank? || params[:per].to_i < 1 api_responce = TranslationCms::Api::Customers::Writer.find(params[:id]) raise ActiveRecord::RecordNotFound, "Writer #{params[:id]} not found" if api_responce.errors.present? @writer = api_responce.first @feedbacks = @writer.writer_feedbacks @industries = TranslationCms::Api::IndustryExpertise.all! # Seo meta tags @meta_record = @writer respond_with @writer end |