Class: Jabe::EntriesController
Instance Method Summary
collapse
#default_gravatar_url, #javascript, #page_title, #stylesheet
included, #public_entry_url
#body_class_name, included
Instance Method Details
#index ⇒ Object
7
8
9
10
11
|
# File 'app/controllers/jabe/entries_controller.rb', line 7
def index
@entries = Entry.published.
page(params[:page]).
per( Jabe::SETTINGS.entries_per_page || 5)
end
|
#show ⇒ Object
13
14
15
16
17
|
# File 'app/controllers/jabe/entries_controller.rb', line 13
def show
if entry.draft? && ! admin_signed_in?
render 'public/404.html', :layout => false, :status => 404
end
end
|