demarches-normaliennes/app/controllers/demo_controller.rb
2017-07-13 14:46:07 +02:00

13 lines
337 B
Ruby

class DemoController < ApplicationController
include SmartListing::Helper::ControllerExtensions
helper SmartListing::Helper
def index
return redirect_to root_path if Rails.env.production?
smart_listing_create :procedures,
Procedure.publiees.order("id DESC"),
partial: "demo/list",
array: true
end
end