ransack_memory:自动保存ransack的过滤参数并将其加载到会话中

时间:2021-05-22 20:34:08
【文件属性】:
文件名称:ransack_memory:自动保存ransack的过滤参数并将其加载到会话中
文件大小:10KB
文件格式:ZIP
更新时间:2021-05-22 20:34:08
Ruby 兰萨克记忆 该宝石可自动将过滤后的Ransack宝石参数保存到Rails会话中。 它还可以将会话中的参数自动加载到您的搜索表单中。 安装 将此行添加到您的应用程序的Gemfile中: gem 'ransack_memory' 将此行添加到您的基本控制器(通常是ApplicationController): class ApplicationController < ActionController :: Base include RansackMemory :: Concern # insert this line before_action :authenticate_user! # only if you use Devise gem before_action :save_and_load_filters # insert this line after Dev
【文件预览】:
ransack_memory-master
----MIT-LICENCE(1KB)
----LICENCE(1KB)
----app()
--------controllers()
--------views()
--------helpers()
----generators()
--------ransack_memory()
----.gitignore(11B)
----lib()
--------templates()
--------ransack_memory.rb(240B)
--------generators()
--------ransack_memory()
----README.md(3KB)
----ransack_memory.gemspec(1KB)

网友评论