simple_search_filter 0.0.28 → 0.0.29
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/simple_search_filter/filter.rb +2 -1
- data/lib/simple_search_filter/version.rb +1 -1
- data/test/dummy/app/controllers/products_controller.rb +6 -1
- data/test/dummy/app/models/product.rb +12 -0
- data/test/dummy/log/development.log +360 -0
- data/test/dummy/tmp/pids/server.pid +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e1f69d8e08c1eec2f0f8ea779749271ae0ce6bbf
|
4
|
+
data.tar.gz: 9558c51868f35f03204940f8d71034d65f0aee86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c558b9d101a79cd1933ce8d73fda13fb73f02410c778f5cb8e06d65e9fa365dde4750cf2a80a548df9bc3c09cdd4ce96a571297ec8aecf29e4fb8ddad19913cb
|
7
|
+
data.tar.gz: a4510b51e30532be6303558c6e23b19590bbeaa11930004b7036a1b00403db38171dade76622c7a8d0bf3a36d982253035763b930901673f9c610c5e467aaef3
|
@@ -69,7 +69,8 @@ module SimpleSearchFilter
|
|
69
69
|
opt_id = opt.clone
|
70
70
|
opt_id[:default_value] = 0
|
71
71
|
opt_id[:ignore_value] = 0
|
72
|
-
opt_id[:condition] = FilterField::QUERY_CONDITION_EQUAL
|
72
|
+
opt_id[:condition] = opt[:condition] || FilterField::QUERY_CONDITION_EQUAL
|
73
|
+
opt_id[:condition_scope] = opt[:condition_scope]
|
73
74
|
|
74
75
|
id_name = field_name_for_id_autocomplete(name).to_sym
|
75
76
|
add_field FilterField.new(id_name, FilterField::TYPE_INT, FilterField::FORM_TYPE_EMPTY, opt_id)
|
@@ -37,7 +37,12 @@ class ProductsController < ApplicationController
|
|
37
37
|
field :price_to, :string, :text, {label: 'to', default_value: '', condition: :custom, condition_where: 'price <= ?', input_html: {style: "width: 140px"} }
|
38
38
|
|
39
39
|
#field :category_id, :int, :select, {label: 'Category', default_value: 0, ignore_value: 0, collection: Category.all, label_method: :title, value_method: :id, include_blank: true }
|
40
|
-
|
40
|
+
|
41
|
+
# autocomplete - basic
|
42
|
+
#field :category, :string, :autocomplete, {label: 'Category', default_value: '', ignore_value: '', search_by: :id, source_query: :autocomplete_category_title_categories_path}
|
43
|
+
|
44
|
+
# autocomplete with custom scope
|
45
|
+
field :category, :string, :autocomplete, {label: 'Category', default_value: '', ignore_value: '', search_by: :id, source_query: :autocomplete_category_title_categories_path, condition: :custom, condition_scope: :of_category}
|
41
46
|
|
42
47
|
field :archived, :boolean, :checkbox, {label: 'Include archived', default_value: false, ignore_value: true, condition: :custom, condition_scope: :archived}
|
43
48
|
|
@@ -7,5 +7,17 @@ class Product < ActiveRecord::Base
|
|
7
7
|
|
8
8
|
scope :archived, lambda { |include_archived| where(is_archived: false) if !include_archived}
|
9
9
|
|
10
|
+
scope :of_category, lambda { |category_id| where_category(category_id) }
|
11
|
+
|
12
|
+
|
13
|
+
def self.where_category(id)
|
14
|
+
v = (id.to_i rescue 0)
|
15
|
+
if v>0
|
16
|
+
where(category_id: id)
|
17
|
+
else
|
18
|
+
where("1=1")
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
10
22
|
|
11
23
|
end
|
@@ -19346,3 +19346,363 @@ Started GET "/assets/bootstrap3-autocomplete-input.min-0d1eaadef3d4edf55034938c1
|
|
19346
19346
|
|
19347
19347
|
|
19348
19348
|
Started GET "/assets/application-fa8dd3416e69dda490debff7cc3e6061.js?body=1" for 127.0.0.1 at 2015-07-02 00:12:06 +0300
|
19349
|
+
|
19350
|
+
|
19351
|
+
Started GET "/" for 127.0.0.1 at 2015-07-07 19:32:48 +0300
|
19352
|
+
[1m[36mActiveRecord::SchemaMigration Load (50.0ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
19353
|
+
Processing by HomeController#index as HTML
|
19354
|
+
Rendered home/index.html.haml within layouts/application (24.0ms)
|
19355
|
+
Completed 200 OK in 2474ms (Views: 2473.1ms | ActiveRecord: 0.0ms)
|
19356
|
+
|
19357
|
+
|
19358
|
+
Started GET "/assets/application-f651684b8bcb67b8780cdeb79a764512.css?body=1" for 127.0.0.1 at 2015-07-07 19:32:51 +0300
|
19359
|
+
|
19360
|
+
|
19361
|
+
Started GET "/assets/jquery2-b6a71c343bd8624834b3e7fa6beffa93.js?body=1" for 127.0.0.1 at 2015-07-07 19:32:51 +0300
|
19362
|
+
|
19363
|
+
|
19364
|
+
Started GET "/assets/jquery_ujs-a07db4513f124c8b2c609ff9b61d7a17.js?body=1" for 127.0.0.1 at 2015-07-07 19:32:51 +0300
|
19365
|
+
|
19366
|
+
|
19367
|
+
Started GET "/assets/bootstrap/affix-21642124464da30e1fd4ac0ab0d5d7b7.js?body=1" for 127.0.0.1 at 2015-07-07 19:32:51 +0300
|
19368
|
+
|
19369
|
+
|
19370
|
+
Started GET "/assets/bootstrap/alert-d072f0c4c23eae61e338a15013d9d7c3.js?body=1" for 127.0.0.1 at 2015-07-07 19:32:51 +0300
|
19371
|
+
|
19372
|
+
|
19373
|
+
Started GET "/assets/bootstrap/button-e4df0485a6e45da597cf03eb9e2bb798.js?body=1" for 127.0.0.1 at 2015-07-07 19:32:51 +0300
|
19374
|
+
|
19375
|
+
|
19376
|
+
Started GET "/assets/bootstrap/carousel-590056a9387f4fda68a66ae7ff0eb7e4.js?body=1" for 127.0.0.1 at 2015-07-07 19:32:51 +0300
|
19377
|
+
|
19378
|
+
|
19379
|
+
Started GET "/assets/bootstrap/collapse-4ca630e83a258ee32247a026441250ff.js?body=1" for 127.0.0.1 at 2015-07-07 19:32:51 +0300
|
19380
|
+
|
19381
|
+
|
19382
|
+
Started GET "/assets/bootstrap/dropdown-0a9b720cc9208f070cc11759757358c1.js?body=1" for 127.0.0.1 at 2015-07-07 19:32:51 +0300
|
19383
|
+
|
19384
|
+
|
19385
|
+
Started GET "/assets/bootstrap/tab-f269781e4faa37a11bcc0f4116886385.js?body=1" for 127.0.0.1 at 2015-07-07 19:32:51 +0300
|
19386
|
+
|
19387
|
+
|
19388
|
+
Started GET "/assets/bootstrap/transition-02df678bda467d1824eca4ebf4c7ec00.js?body=1" for 127.0.0.1 at 2015-07-07 19:32:51 +0300
|
19389
|
+
|
19390
|
+
|
19391
|
+
Started GET "/assets/bootstrap/scrollspy-147ccd96d5dc755e73ba970b75b92aee.js?body=1" for 127.0.0.1 at 2015-07-07 19:32:51 +0300
|
19392
|
+
|
19393
|
+
|
19394
|
+
Started GET "/assets/bootstrap/modal-fdfe9c2d392da9c0fc3a3b3aa0466639.js?body=1" for 127.0.0.1 at 2015-07-07 19:32:51 +0300
|
19395
|
+
|
19396
|
+
|
19397
|
+
Started GET "/assets/bootstrap/tooltip-8b2964950464c075489415e1d5235170.js?body=1" for 127.0.0.1 at 2015-07-07 19:32:51 +0300
|
19398
|
+
|
19399
|
+
|
19400
|
+
Started GET "/assets/bootstrap/popover-2187660dacf5063d98777f848eabfa2b.js?body=1" for 127.0.0.1 at 2015-07-07 19:32:51 +0300
|
19401
|
+
|
19402
|
+
|
19403
|
+
Started GET "/assets/bootstrap-sprockets-e36e10bcfbabd5af903af169c1bade1c.js?body=1" for 127.0.0.1 at 2015-07-07 19:32:51 +0300
|
19404
|
+
|
19405
|
+
|
19406
|
+
Started GET "/assets/bootstrap3-typeahead.min-0ce198f661330b60afff39eebd8e0c49.js?body=1" for 127.0.0.1 at 2015-07-07 19:32:52 +0300
|
19407
|
+
|
19408
|
+
|
19409
|
+
Started GET "/assets/bootstrap3-autocomplete-input.min-0d1eaadef3d4edf55034938c149e2ca6.js?body=1" for 127.0.0.1 at 2015-07-07 19:32:52 +0300
|
19410
|
+
|
19411
|
+
|
19412
|
+
Started GET "/assets/application-fa8dd3416e69dda490debff7cc3e6061.js?body=1" for 127.0.0.1 at 2015-07-07 19:32:52 +0300
|
19413
|
+
|
19414
|
+
|
19415
|
+
Started GET "/products" for 127.0.0.1 at 2015-07-07 19:32:53 +0300
|
19416
|
+
Processing by ProductsController#index as HTML
|
19417
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/fields_simple_form/_text.html.haml (199.0ms)
|
19418
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_field_simple_form.html.haml (216.0ms)
|
19419
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/fields_simple_form/_text.html.haml (25.0ms)
|
19420
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_field_simple_form.html.haml (29.0ms)
|
19421
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/fields_simple_form/_text.html.haml (17.0ms)
|
19422
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_field_simple_form.html.haml (21.0ms)
|
19423
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_field_simple_form.html.haml (1.0ms)
|
19424
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/fields_simple_form/_autocomplete.html.haml (48.0ms)
|
19425
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_field_simple_form.html.haml (55.0ms)
|
19426
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/fields_simple_form/_checkbox.html.haml (58.0ms)
|
19427
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_field_simple_form.html.haml (65.0ms)
|
19428
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/fields_simple_form/_hidden.html.haml (39.0ms)
|
19429
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_field_simple_form.html.haml (47.0ms)
|
19430
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_fields.html.haml (470.0ms)
|
19431
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_buttons_apply_clear.html.haml (4.0ms)
|
19432
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_buttons_apply_clear_inline.html.haml (15.0ms)
|
19433
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_form_horizontal.html.haml (608.0ms)
|
19434
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_form.html.haml (643.0ms)
|
19435
|
+
[1m[35mProduct Load (1.0ms)[0m SELECT `products`.* FROM `products` WHERE `products`.`is_archived` = 0 AND (1=1 ) ORDER BY price desc LIMIT 3 OFFSET 0
|
19436
|
+
[1m[36mCategory Load (1.0ms)[0m [1mSELECT `categories`.* FROM `categories` WHERE `categories`.`id` IN (1)[0m
|
19437
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM `products` WHERE `products`.`is_archived` = 0 AND (1=1 )
|
19438
|
+
Rendered products/index.html.haml within layouts/application (1049.1ms)
|
19439
|
+
Completed 200 OK in 2269ms (Views: 2040.1ms | ActiveRecord: 110.0ms)
|
19440
|
+
|
19441
|
+
|
19442
|
+
Started GET "/assets/fontawesome-webfont-9e0b13c9080eac6e17a893bd7737fec7.woff?v=4.3.0" for 127.0.0.1 at 2015-07-07 19:32:56 +0300
|
19443
|
+
|
19444
|
+
|
19445
|
+
Started GET "/categories/autocomplete_category_title?q=b" for 127.0.0.1 at 2015-07-07 19:32:59 +0300
|
19446
|
+
Processing by CategoriesController#autocomplete_category_title as JSON
|
19447
|
+
Parameters: {"q"=>"b"}
|
19448
|
+
[1m[36mCategory Load (1.0ms)[0m [1mSELECT categories.id, categories.title FROM `categories` WHERE (LOWER(categories.title) LIKE 'b%') ORDER BY categories.title ASC LIMIT 10[0m
|
19449
|
+
Completed 200 OK in 8ms (Views: 1.0ms | ActiveRecord: 1.0ms)
|
19450
|
+
|
19451
|
+
|
19452
|
+
Started GET "/categories/autocomplete_category_title?q=ba" for 127.0.0.1 at 2015-07-07 19:33:00 +0300
|
19453
|
+
Processing by CategoriesController#autocomplete_category_title as JSON
|
19454
|
+
Parameters: {"q"=>"ba"}
|
19455
|
+
[1m[35mCategory Load (1.0ms)[0m SELECT categories.id, categories.title FROM `categories` WHERE (LOWER(categories.title) LIKE 'ba%') ORDER BY categories.title ASC LIMIT 10
|
19456
|
+
Completed 200 OK in 7ms (Views: 1.0ms | ActiveRecord: 1.0ms)
|
19457
|
+
|
19458
|
+
|
19459
|
+
Started GET "/categories/autocomplete_category_title?q=ban" for 127.0.0.1 at 2015-07-07 19:33:01 +0300
|
19460
|
+
Processing by CategoriesController#autocomplete_category_title as JSON
|
19461
|
+
Parameters: {"q"=>"ban"}
|
19462
|
+
[1m[36mCategory Load (0.0ms)[0m [1mSELECT categories.id, categories.title FROM `categories` WHERE (LOWER(categories.title) LIKE 'ban%') ORDER BY categories.title ASC LIMIT 10[0m
|
19463
|
+
Completed 200 OK in 8ms (Views: 1.0ms | ActiveRecord: 0.0ms)
|
19464
|
+
|
19465
|
+
|
19466
|
+
Started GET "/categories/autocomplete_category_title?q=bana" for 127.0.0.1 at 2015-07-07 19:33:02 +0300
|
19467
|
+
Processing by CategoriesController#autocomplete_category_title as JSON
|
19468
|
+
Parameters: {"q"=>"bana"}
|
19469
|
+
[1m[35mCategory Load (0.0ms)[0m SELECT categories.id, categories.title FROM `categories` WHERE (LOWER(categories.title) LIKE 'bana%') ORDER BY categories.title ASC LIMIT 10
|
19470
|
+
Completed 200 OK in 8ms (Views: 0.0ms | ActiveRecord: 0.0ms)
|
19471
|
+
|
19472
|
+
|
19473
|
+
Started GET "/categories/autocomplete_category_title?q=b" for 127.0.0.1 at 2015-07-07 19:33:05 +0300
|
19474
|
+
Processing by CategoriesController#autocomplete_category_title as JSON
|
19475
|
+
Parameters: {"q"=>"b"}
|
19476
|
+
[1m[36mCategory Load (0.0ms)[0m [1mSELECT categories.id, categories.title FROM `categories` WHERE (LOWER(categories.title) LIKE 'b%') ORDER BY categories.title ASC LIMIT 10[0m
|
19477
|
+
Completed 200 OK in 12ms (Views: 0.0ms | ActiveRecord: 0.0ms)
|
19478
|
+
|
19479
|
+
|
19480
|
+
Started GET "/categories/autocomplete_category_title?q=a" for 127.0.0.1 at 2015-07-07 19:33:06 +0300
|
19481
|
+
Processing by CategoriesController#autocomplete_category_title as JSON
|
19482
|
+
Parameters: {"q"=>"a"}
|
19483
|
+
[1m[35mCategory Load (0.0ms)[0m SELECT categories.id, categories.title FROM `categories` WHERE (LOWER(categories.title) LIKE 'a%') ORDER BY categories.title ASC LIMIT 10
|
19484
|
+
Completed 200 OK in 8ms (Views: 0.0ms | ActiveRecord: 0.0ms)
|
19485
|
+
|
19486
|
+
|
19487
|
+
Started GET "/categories/autocomplete_category_title?q=an" for 127.0.0.1 at 2015-07-07 19:33:06 +0300
|
19488
|
+
Processing by CategoriesController#autocomplete_category_title as JSON
|
19489
|
+
Parameters: {"q"=>"an"}
|
19490
|
+
[1m[36mCategory Load (1.0ms)[0m [1mSELECT categories.id, categories.title FROM `categories` WHERE (LOWER(categories.title) LIKE 'an%') ORDER BY categories.title ASC LIMIT 10[0m
|
19491
|
+
Completed 200 OK in 8ms (Views: 1.0ms | ActiveRecord: 1.0ms)
|
19492
|
+
|
19493
|
+
|
19494
|
+
Started GET "/categories/autocomplete_category_title?q=ana" for 127.0.0.1 at 2015-07-07 19:33:07 +0300
|
19495
|
+
Processing by CategoriesController#autocomplete_category_title as JSON
|
19496
|
+
Parameters: {"q"=>"ana"}
|
19497
|
+
[1m[35mCategory Load (0.0ms)[0m SELECT categories.id, categories.title FROM `categories` WHERE (LOWER(categories.title) LIKE 'ana%') ORDER BY categories.title ASC LIMIT 10
|
19498
|
+
Completed 200 OK in 8ms (Views: 0.0ms | ActiveRecord: 0.0ms)
|
19499
|
+
|
19500
|
+
|
19501
|
+
Started GET "/categories/autocomplete_category_title?q=ana" for 127.0.0.1 at 2015-07-07 19:33:08 +0300
|
19502
|
+
Processing by CategoriesController#autocomplete_category_title as JSON
|
19503
|
+
Parameters: {"q"=>"ana"}
|
19504
|
+
[1m[36mCategory Load (1.0ms)[0m [1mSELECT categories.id, categories.title FROM `categories` WHERE (LOWER(categories.title) LIKE 'ana%') ORDER BY categories.title ASC LIMIT 10[0m
|
19505
|
+
Completed 200 OK in 8ms (Views: 1.0ms | ActiveRecord: 1.0ms)
|
19506
|
+
|
19507
|
+
|
19508
|
+
Started GET "/categories/autocomplete_category_title?q=a" for 127.0.0.1 at 2015-07-07 19:33:10 +0300
|
19509
|
+
Processing by CategoriesController#autocomplete_category_title as JSON
|
19510
|
+
Parameters: {"q"=>"a"}
|
19511
|
+
[1m[35mCategory Load (1.0ms)[0m SELECT categories.id, categories.title FROM `categories` WHERE (LOWER(categories.title) LIKE 'a%') ORDER BY categories.title ASC LIMIT 10
|
19512
|
+
Completed 200 OK in 8ms (Views: 1.0ms | ActiveRecord: 1.0ms)
|
19513
|
+
|
19514
|
+
|
19515
|
+
Started GET "/products" for 127.0.0.1 at 2015-07-07 19:33:12 +0300
|
19516
|
+
Processing by ProductsController#index as HTML
|
19517
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/fields_simple_form/_text.html.haml (21.0ms)
|
19518
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_field_simple_form.html.haml (26.0ms)
|
19519
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/fields_simple_form/_text.html.haml (45.0ms)
|
19520
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_field_simple_form.html.haml (49.0ms)
|
19521
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/fields_simple_form/_text.html.haml (17.0ms)
|
19522
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_field_simple_form.html.haml (21.0ms)
|
19523
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_field_simple_form.html.haml (0.0ms)
|
19524
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/fields_simple_form/_autocomplete.html.haml (19.0ms)
|
19525
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_field_simple_form.html.haml (23.0ms)
|
19526
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/fields_simple_form/_checkbox.html.haml (28.0ms)
|
19527
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_field_simple_form.html.haml (32.0ms)
|
19528
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/fields_simple_form/_hidden.html.haml (9.0ms)
|
19529
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_field_simple_form.html.haml (13.0ms)
|
19530
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_fields.html.haml (191.0ms)
|
19531
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_buttons_apply_clear.html.haml (1.0ms)
|
19532
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_buttons_apply_clear_inline.html.haml (5.0ms)
|
19533
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_form_horizontal.html.haml (216.0ms)
|
19534
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_form.html.haml (221.0ms)
|
19535
|
+
[1m[36mProduct Load (0.0ms)[0m [1mSELECT `products`.* FROM `products` WHERE `products`.`is_archived` = 0 AND (1=1 ) ORDER BY price desc LIMIT 3 OFFSET 0[0m
|
19536
|
+
[1m[35mCategory Load (1.0ms)[0m SELECT `categories`.* FROM `categories` WHERE `categories`.`id` IN (1)
|
19537
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM `products` WHERE `products`.`is_archived` = 0 AND (1=1 )[0m
|
19538
|
+
Rendered products/index.html.haml within layouts/application (298.0ms)
|
19539
|
+
Completed 200 OK in 1355ms (Views: 1344.1ms | ActiveRecord: 1.0ms)
|
19540
|
+
|
19541
|
+
|
19542
|
+
Started GET "/categories/autocomplete_category_title?q=a" for 127.0.0.1 at 2015-07-07 19:33:13 +0300
|
19543
|
+
Processing by CategoriesController#autocomplete_category_title as JSON
|
19544
|
+
Parameters: {"q"=>"a"}
|
19545
|
+
[1m[35mCategory Load (1.0ms)[0m SELECT categories.id, categories.title FROM `categories` WHERE (LOWER(categories.title) LIKE 'a%') ORDER BY categories.title ASC LIMIT 10
|
19546
|
+
Completed 200 OK in 9ms (Views: 1.0ms | ActiveRecord: 1.0ms)
|
19547
|
+
|
19548
|
+
|
19549
|
+
Started GET "/assets/bootstrap/affix-21642124464da30e1fd4ac0ab0d5d7b7.js?body=1" for 127.0.0.1 at 2015-07-07 19:33:13 +0300
|
19550
|
+
|
19551
|
+
|
19552
|
+
Started GET "/assets/bootstrap/transition-02df678bda467d1824eca4ebf4c7ec00.js?body=1" for 127.0.0.1 at 2015-07-07 19:33:13 +0300
|
19553
|
+
|
19554
|
+
|
19555
|
+
Started GET "/assets/bootstrap/carousel-590056a9387f4fda68a66ae7ff0eb7e4.js?body=1" for 127.0.0.1 at 2015-07-07 19:33:13 +0300
|
19556
|
+
|
19557
|
+
|
19558
|
+
Started GET "/assets/bootstrap/dropdown-0a9b720cc9208f070cc11759757358c1.js?body=1" for 127.0.0.1 at 2015-07-07 19:33:13 +0300
|
19559
|
+
|
19560
|
+
|
19561
|
+
Started GET "/assets/bootstrap/tab-f269781e4faa37a11bcc0f4116886385.js?body=1" for 127.0.0.1 at 2015-07-07 19:33:13 +0300
|
19562
|
+
|
19563
|
+
|
19564
|
+
Started GET "/assets/bootstrap/button-e4df0485a6e45da597cf03eb9e2bb798.js?body=1" for 127.0.0.1 at 2015-07-07 19:33:13 +0300
|
19565
|
+
|
19566
|
+
|
19567
|
+
Started GET "/assets/bootstrap/collapse-4ca630e83a258ee32247a026441250ff.js?body=1" for 127.0.0.1 at 2015-07-07 19:33:13 +0300
|
19568
|
+
|
19569
|
+
|
19570
|
+
Started GET "/assets/bootstrap/alert-d072f0c4c23eae61e338a15013d9d7c3.js?body=1" for 127.0.0.1 at 2015-07-07 19:33:13 +0300
|
19571
|
+
|
19572
|
+
|
19573
|
+
Started GET "/assets/bootstrap/modal-fdfe9c2d392da9c0fc3a3b3aa0466639.js?body=1" for 127.0.0.1 at 2015-07-07 19:33:13 +0300
|
19574
|
+
|
19575
|
+
|
19576
|
+
Started GET "/assets/bootstrap/scrollspy-147ccd96d5dc755e73ba970b75b92aee.js?body=1" for 127.0.0.1 at 2015-07-07 19:33:13 +0300
|
19577
|
+
|
19578
|
+
|
19579
|
+
Started GET "/assets/bootstrap/tooltip-8b2964950464c075489415e1d5235170.js?body=1" for 127.0.0.1 at 2015-07-07 19:33:13 +0300
|
19580
|
+
|
19581
|
+
|
19582
|
+
Started GET "/assets/bootstrap-sprockets-e36e10bcfbabd5af903af169c1bade1c.js?body=1" for 127.0.0.1 at 2015-07-07 19:33:13 +0300
|
19583
|
+
|
19584
|
+
|
19585
|
+
Started GET "/assets/bootstrap/popover-2187660dacf5063d98777f848eabfa2b.js?body=1" for 127.0.0.1 at 2015-07-07 19:33:13 +0300
|
19586
|
+
|
19587
|
+
|
19588
|
+
Started GET "/assets/application-fa8dd3416e69dda490debff7cc3e6061.js?body=1" for 127.0.0.1 at 2015-07-07 19:33:13 +0300
|
19589
|
+
|
19590
|
+
|
19591
|
+
Started GET "/assets/bootstrap3-autocomplete-input.min-0d1eaadef3d4edf55034938c149e2ca6.js?body=1" for 127.0.0.1 at 2015-07-07 19:33:14 +0300
|
19592
|
+
|
19593
|
+
|
19594
|
+
Started GET "/assets/bootstrap3-typeahead.min-0ce198f661330b60afff39eebd8e0c49.js?body=1" for 127.0.0.1 at 2015-07-07 19:33:14 +0300
|
19595
|
+
|
19596
|
+
|
19597
|
+
Started GET "/assets/application-f651684b8bcb67b8780cdeb79a764512.css?body=1" for 127.0.0.1 at 2015-07-07 19:33:14 +0300
|
19598
|
+
|
19599
|
+
|
19600
|
+
Started GET "/assets/jquery2-b6a71c343bd8624834b3e7fa6beffa93.js?body=1" for 127.0.0.1 at 2015-07-07 19:33:14 +0300
|
19601
|
+
|
19602
|
+
|
19603
|
+
Started GET "/assets/jquery_ujs-a07db4513f124c8b2c609ff9b61d7a17.js?body=1" for 127.0.0.1 at 2015-07-07 19:33:14 +0300
|
19604
|
+
|
19605
|
+
|
19606
|
+
Started GET "/categories/autocomplete_category_title?q=a" for 127.0.0.1 at 2015-07-07 19:33:15 +0300
|
19607
|
+
Processing by CategoriesController#autocomplete_category_title as JSON
|
19608
|
+
Parameters: {"q"=>"a"}
|
19609
|
+
[1m[36mCategory Load (1.0ms)[0m [1mSELECT categories.id, categories.title FROM `categories` WHERE (LOWER(categories.title) LIKE 'a%') ORDER BY categories.title ASC LIMIT 10[0m
|
19610
|
+
Completed 200 OK in 7ms (Views: 1.0ms | ActiveRecord: 1.0ms)
|
19611
|
+
|
19612
|
+
|
19613
|
+
Started GET "/categories/autocomplete_category_title?q=f" for 127.0.0.1 at 2015-07-07 19:33:17 +0300
|
19614
|
+
Processing by CategoriesController#autocomplete_category_title as JSON
|
19615
|
+
Parameters: {"q"=>"f"}
|
19616
|
+
[1m[35mCategory Load (1.0ms)[0m SELECT categories.id, categories.title FROM `categories` WHERE (LOWER(categories.title) LIKE 'f%') ORDER BY categories.title ASC LIMIT 10
|
19617
|
+
Completed 200 OK in 8ms (Views: 1.0ms | ActiveRecord: 1.0ms)
|
19618
|
+
|
19619
|
+
|
19620
|
+
Started POST "/products/search" for 127.0.0.1 at 2015-07-07 19:33:18 +0300
|
19621
|
+
Processing by ProductsController#search as HTML
|
19622
|
+
Parameters: {"utf8"=>"✓", "authenticity_token"=>"V0K4hHQKv7/yVXzpsxi+OaDJkmjMiuMz70MULExaL6QoJa6uydLOzJKZ0H2WQGUpAJrOhKEYSnwtYrGnOymqKg==", "filter_cmd"=>"apply", "filter"=>{"title"=>"", "price_from"=>"", "price_to"=>"", "category_id"=>"1", "category"=>"Fruits", "archived"=>"0", "user_id"=>"101"}}
|
19623
|
+
Redirected to http://localhost:3000/products
|
19624
|
+
Completed 302 Found in 20ms (ActiveRecord: 0.0ms)
|
19625
|
+
|
19626
|
+
|
19627
|
+
Started GET "/products" for 127.0.0.1 at 2015-07-07 19:33:18 +0300
|
19628
|
+
Processing by ProductsController#index as HTML
|
19629
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/fields_simple_form/_text.html.haml (25.0ms)
|
19630
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_field_simple_form.html.haml (30.0ms)
|
19631
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/fields_simple_form/_text.html.haml (21.0ms)
|
19632
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_field_simple_form.html.haml (26.0ms)
|
19633
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/fields_simple_form/_text.html.haml (17.0ms)
|
19634
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_field_simple_form.html.haml (23.0ms)
|
19635
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_field_simple_form.html.haml (0.0ms)
|
19636
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/fields_simple_form/_autocomplete.html.haml (21.0ms)
|
19637
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_field_simple_form.html.haml (25.0ms)
|
19638
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/fields_simple_form/_checkbox.html.haml (27.0ms)
|
19639
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_field_simple_form.html.haml (31.0ms)
|
19640
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/fields_simple_form/_hidden.html.haml (8.0ms)
|
19641
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_field_simple_form.html.haml (13.0ms)
|
19642
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_fields.html.haml (178.0ms)
|
19643
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_buttons_apply_clear.html.haml (1.0ms)
|
19644
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_buttons_apply_clear_inline.html.haml (4.0ms)
|
19645
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_form_horizontal.html.haml (197.0ms)
|
19646
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_form.html.haml (201.0ms)
|
19647
|
+
[1m[36mProduct Load (1.0ms)[0m [1mSELECT `products`.* FROM `products` WHERE `products`.`category_id` = 1 AND `products`.`is_archived` = 0 AND (1=1 ) ORDER BY price asc LIMIT 3 OFFSET 0[0m
|
19648
|
+
[1m[35mCategory Load (1.0ms)[0m SELECT `categories`.* FROM `categories` WHERE `categories`.`id` IN (1)
|
19649
|
+
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM `products` WHERE `products`.`category_id` = 1 AND `products`.`is_archived` = 0 AND (1=1 )[0m
|
19650
|
+
Rendered products/index.html.haml within layouts/application (304.0ms)
|
19651
|
+
Completed 200 OK in 1377ms (Views: 1361.1ms | ActiveRecord: 3.0ms)
|
19652
|
+
|
19653
|
+
|
19654
|
+
Started GET "/assets/bootstrap/button-e4df0485a6e45da597cf03eb9e2bb798.js?body=1" for 127.0.0.1 at 2015-07-07 19:33:20 +0300
|
19655
|
+
|
19656
|
+
|
19657
|
+
Started GET "/assets/bootstrap/carousel-590056a9387f4fda68a66ae7ff0eb7e4.js?body=1" for 127.0.0.1 at 2015-07-07 19:33:20 +0300
|
19658
|
+
|
19659
|
+
|
19660
|
+
Started GET "/assets/bootstrap/dropdown-0a9b720cc9208f070cc11759757358c1.js?body=1" for 127.0.0.1 at 2015-07-07 19:33:20 +0300
|
19661
|
+
|
19662
|
+
|
19663
|
+
Started GET "/assets/bootstrap/alert-d072f0c4c23eae61e338a15013d9d7c3.js?body=1" for 127.0.0.1 at 2015-07-07 19:33:20 +0300
|
19664
|
+
|
19665
|
+
|
19666
|
+
Started GET "/assets/bootstrap/affix-21642124464da30e1fd4ac0ab0d5d7b7.js?body=1" for 127.0.0.1 at 2015-07-07 19:33:20 +0300
|
19667
|
+
|
19668
|
+
|
19669
|
+
Started GET "/assets/bootstrap/scrollspy-147ccd96d5dc755e73ba970b75b92aee.js?body=1" for 127.0.0.1 at 2015-07-07 19:33:20 +0300
|
19670
|
+
|
19671
|
+
|
19672
|
+
Started GET "/assets/bootstrap/transition-02df678bda467d1824eca4ebf4c7ec00.js?body=1" for 127.0.0.1 at 2015-07-07 19:33:20 +0300
|
19673
|
+
|
19674
|
+
|
19675
|
+
Started GET "/assets/bootstrap/modal-fdfe9c2d392da9c0fc3a3b3aa0466639.js?body=1" for 127.0.0.1 at 2015-07-07 19:33:20 +0300
|
19676
|
+
|
19677
|
+
|
19678
|
+
Started GET "/assets/bootstrap/collapse-4ca630e83a258ee32247a026441250ff.js?body=1" for 127.0.0.1 at 2015-07-07 19:33:20 +0300
|
19679
|
+
|
19680
|
+
|
19681
|
+
Started GET "/assets/bootstrap/tab-f269781e4faa37a11bcc0f4116886385.js?body=1" for 127.0.0.1 at 2015-07-07 19:33:20 +0300
|
19682
|
+
|
19683
|
+
|
19684
|
+
Started GET "/assets/bootstrap/tooltip-8b2964950464c075489415e1d5235170.js?body=1" for 127.0.0.1 at 2015-07-07 19:33:20 +0300
|
19685
|
+
|
19686
|
+
|
19687
|
+
Started GET "/assets/bootstrap/popover-2187660dacf5063d98777f848eabfa2b.js?body=1" for 127.0.0.1 at 2015-07-07 19:33:20 +0300
|
19688
|
+
|
19689
|
+
|
19690
|
+
Started GET "/assets/bootstrap-sprockets-e36e10bcfbabd5af903af169c1bade1c.js?body=1" for 127.0.0.1 at 2015-07-07 19:33:20 +0300
|
19691
|
+
|
19692
|
+
|
19693
|
+
Started GET "/assets/bootstrap3-typeahead.min-0ce198f661330b60afff39eebd8e0c49.js?body=1" for 127.0.0.1 at 2015-07-07 19:33:20 +0300
|
19694
|
+
|
19695
|
+
|
19696
|
+
Started GET "/assets/jquery2-b6a71c343bd8624834b3e7fa6beffa93.js?body=1" for 127.0.0.1 at 2015-07-07 19:33:20 +0300
|
19697
|
+
|
19698
|
+
|
19699
|
+
Started GET "/assets/application-f651684b8bcb67b8780cdeb79a764512.css?body=1" for 127.0.0.1 at 2015-07-07 19:33:20 +0300
|
19700
|
+
|
19701
|
+
|
19702
|
+
Started GET "/assets/jquery_ujs-a07db4513f124c8b2c609ff9b61d7a17.js?body=1" for 127.0.0.1 at 2015-07-07 19:33:20 +0300
|
19703
|
+
|
19704
|
+
|
19705
|
+
Started GET "/assets/bootstrap3-autocomplete-input.min-0d1eaadef3d4edf55034938c149e2ca6.js?body=1" for 127.0.0.1 at 2015-07-07 19:33:20 +0300
|
19706
|
+
|
19707
|
+
|
19708
|
+
Started GET "/assets/application-fa8dd3416e69dda490debff7cc3e6061.js?body=1" for 127.0.0.1 at 2015-07-07 19:33:20 +0300
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
15868
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_search_filter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.29
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Max Ivak
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|