Class: LowVoltage::PostsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/low_voltage/posts_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



9
10
11
12
# File 'app/controllers/low_voltage/posts_controller.rb', line 9

def index
  @offset = params[:offset].to_i || 0
  @total_posts, @posts = load_posts(@offset)
end

#showObject



14
15
16
# File 'app/controllers/low_voltage/posts_controller.rb', line 14

def show
  @post = post_factory.new(current_post)
end