how to use kaminari from array

June 09, 2015

Reading time ~1 minute

You can generate pager object using kaminari from array object.

# select admin user and push to array
user_array = User.select_admin_user

@pager = Kaminari.paginate_array(user_array).page(params[:page]).per(20)

then you can use like this.

<%= paginate @pager %>

add ticket number to git commit automatically

Most of ticket tracker like Github, pivotal tracker have function to connect your commit to ticket(story).But every time when you commit ...… Continue reading

I will build frontend and backend separately

Published on September 28, 2016

order of angular controller's initialisation

Published on October 05, 2015