Class: Virgo::ColumnsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Virgo::ColumnsController
- Defined in:
- app/controllers/virgo/columns_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
collection_actions, default_sort_order, deploy_key, member_actions
Methods included from RenderHelper
Methods included from ApplicationHelper
#action?, #admin?, #admin_access?, #admin_view?, #alerts, #base_errors, #category_timestamp, #column_timestamp, #compact_html, #controller?, #decode_html_entities, #expanded_post_url, #is_admin_view?, #page_url, #post_time_format, #post_timestamp, #production?, #redis_timestamp_key_for, #site, #site_key, #superuser?, #tabbed_param, #word_count
Instance Method Details
#index ⇒ Object
8 9 10 11 12 |
# File 'app/controllers/virgo/columns_controller.rb', line 8 def index @columns = Column.by_weight render layout: 'virgo/posts' end |
#show ⇒ Object
14 15 16 |
# File 'app/controllers/virgo/columns_controller.rb', line 14 def show @posts = @column.posts.latest.page(params[:page]) end |