Class: Workarea::Storefront::BlogCommentsController

Inherits:
Storefront::ApplicationController
  • Object
show all
Defined in:
app/controllers/workarea/storefront/blog_comments_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



4
5
6
7
8
9
10
11
# File 'app/controllers/workarea/storefront/blog_comments_controller.rb', line 4

def index
  @entry = Storefront::BlogEntryViewModel.new(
    Content::BlogEntry.find_by(slug: params[:blog_entry_id]),
    view_model_options
  )

  @comment = @entry.comments.build
end