Class: Blog::ArticlesController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/phcpresspro/blog/articles_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject

INDEX



10
11
12
# File 'app/controllers/phcpresspro/blog/articles_controller.rb', line 10

def index
  @phcpress_posts_index = Article::Post.where(org_id: current_user.org_id, pststatus: "published")
end

#showObject

SHOW



15
16
17
# File 'app/controllers/phcpresspro/blog/articles_controller.rb', line 15

def show
  @phcpress_posts_single = Article::Post.friendly.find(params[:id])
end