```ruby
class PagesController < FrontendController
  def show
    if @page.nil?
      not_found
    else
      respond_to do |format|
        format.html
        # format.json  { render json: @page }
      end
    end
  end
end
```

Fix bug with not_found method calling
user
```ruby
class PagesController < FrontendController
  def show
    if @page.nil?
      raise ActiveRecord::RecordNotFound, "Record not found"
    else
      respond_to do |format|
        format.html
        # format.json  { render json: @page }
      end
    end
  end
end
```
assistant