Add Redux and use it for state management

This commit is contained in:
riggraz
2019-09-11 18:30:59 +02:00
parent db4c1445ba
commit 8d9ab0f717
22 changed files with 656 additions and 246 deletions

View File

@@ -3,8 +3,7 @@ class PostsController < ApplicationController
def index
posts = Post
.left_outer_joins(:post_status)
.select('posts.title, posts.description, post_statuses.name as post_status_name, post_statuses.color as post_status_color')
.select(:title, :description, :post_status_id)
.where(filter_params)
.search_by_name_or_description(params[:search])
.page(params[:page])