123
This commit is contained in:
parent
1080aab583
commit
caa88092ab
|
@ -12,6 +12,10 @@ class Admin::TestingsController < OrbitAdminController
|
||||||
@qas = search_data(@qas,[:title]).page(params[:page]).per(10)
|
@qas = search_data(@qas,[:title]).page(params[:page]).per(10)
|
||||||
render :partial => "index" if request.xhr?
|
render :partial => "index" if request.xhr?
|
||||||
end
|
end
|
||||||
|
def hello
|
||||||
|
@trash = '123'
|
||||||
|
render :partial => "hello" if request.xhr?
|
||||||
|
end
|
||||||
def new
|
def new
|
||||||
@qa = Qa.new
|
@qa = Qa.new
|
||||||
@tags = @module_app.tags
|
@tags = @module_app.tags
|
||||||
|
@ -80,3 +84,9 @@ class Admin::TestingsController < OrbitAdminController
|
||||||
params.require(:qa).permit!
|
params.require(:qa).permit!
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
module ClassMethods
|
||||||
|
def with_trash(trash)
|
||||||
|
trash = [trash].flatten
|
||||||
|
self.any_of(trash.map{|s| {s.to_sym=>true}})
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
|
@ -1,2 +1,4 @@
|
||||||
<h1>Hello Worlds</h1>
|
<h1>Hello Worlds</h1>
|
||||||
<h2>HOLA</h2>
|
<h2>HOLA</h2>
|
||||||
|
<%= render 'hello' %>
|
||||||
|
<%= @trash %>
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
<%= render_filter @filter_fields, "index_table" %>
|
<%= render_filter @filter_fields, "index_table" %>
|
||||||
<%= puts ['index',@filter_fields].inspect %>
|
|
||||||
<div id="index_table">
|
<div id="index_table">
|
||||||
<%= render 'index'%>
|
<%= render 'index'%>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue