templates/lib/templates/rails/responders_controller/controller.rb in cybele-0.7.0 vs templates/lib/templates/rails/responders_controller/controller.rb in cybele-0.8.0

- old
+ new

@@ -3,10 +3,10 @@ class <%= controller_class_name %>Controller < ApplicationController before_action :<%= "set_#{singular_table_name}" %>, only: [:show, :edit, :update, :destroy] <% unless options[:singleton] -%> def index - @<%= table_name %> = <%= class_name %>.all + @<%= table_name %> = <%= class_name %>.all.page(params[:page]) respond_with(@<%= table_name %>) end <% end -%> def show \ No newline at end of file