Method: FormCreation::PostsController#index

Defined in:
app/controllers/form_creation/posts_controller.rb

#indexObject



6
7
8
9
10
11
12
13
14
# File 'app/controllers/form_creation/posts_controller.rb', line 6

def index   
  @posts = Post.order('id ASC')
  @post = Post.new

  respond_to do |format|
    format.html
    format.xls { send_data @posts.to_csv(col_sep: "\t") }
  end   
end