simple_search_filter 0.0.29 → 0.0.30
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/controller.rb +6 -2
- data/lib/simple_search_filter/version.rb +1 -1
- data/test/dummy/app/controllers/demos_controller.rb +19 -1
- data/test/dummy/app/controllers/orders_controller.rb +20 -0
- data/test/dummy/app/controllers/products_controller.rb +1 -0
- data/test/dummy/app/models/client.rb +19 -0
- data/test/dummy/app/models/order.rb +30 -0
- data/test/dummy/app/models/order_product.rb +5 -0
- data/test/dummy/app/models/product.rb +1 -0
- data/test/dummy/app/views/demos/client_orders.html.haml +0 -0
- data/test/dummy/app/views/home/index.html.haml +6 -1
- data/test/dummy/app/views/orders/index.html.haml +23 -0
- data/test/dummy/config/routes.rb +12 -0
- data/test/dummy/db/migrate/20150723154723_create_clients.rb +10 -0
- data/test/dummy/db/migrate/20150723154730_create_orders.rb +9 -0
- data/test/dummy/db/migrate/20150723154914_create_order_products.rb +9 -0
- data/test/dummy/db/migrate/20150723230023_add_city_to_client.rb +10 -0
- data/test/dummy/db/schema.rb +23 -4
- data/test/dummy/log/development.log +844 -0
- metadata +22 -6
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/tmp/pids/server.pid +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe03419b2b7ff9aae11cb0fb70188bd934685272
|
4
|
+
data.tar.gz: e5de877b2a475227553909293b362a91a13db91e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2bbd53ab849f10ce194464c565180b6b4c39bd19dcfae2a15c1c5cccf7e77e37e62d7e2bd509ecd3500276992ec191a4ea2fa1a1f7d9337d4328e0df05bedb0a
|
7
|
+
data.tar.gz: f9ceea179c4f6a02d98bc47873b7b21014836572a2578594cc4325e7dfa981472999eaf3cff21a43cc8eb388d53c3f5498d743eacc66b2b51c12aad16fc4a396
|
@@ -58,7 +58,10 @@ module SimpleSearchFilter
|
|
58
58
|
#
|
59
59
|
if cmd=='order'
|
60
60
|
@filter.set_order params[:orderby], params[:orderdir]
|
61
|
-
(redirect_to action: name.to_sym and return) if @filter.search_method_post_and_redirect?
|
61
|
+
#(redirect_to action: name.to_sym and return) if @filter.search_method_post_and_redirect?
|
62
|
+
if @filter.search_method_post_and_redirect?
|
63
|
+
redirect_to main_app.send(@filter.options[:url])
|
64
|
+
end
|
62
65
|
end
|
63
66
|
|
64
67
|
end
|
@@ -89,7 +92,8 @@ module SimpleSearchFilter
|
|
89
92
|
|
90
93
|
#
|
91
94
|
define_method("#{options[:search_action]}") do
|
92
|
-
redirect_to action: name.to_sym
|
95
|
+
#redirect_to action: name.to_sym
|
96
|
+
redirect_to main_app.send(options[:url])
|
93
97
|
end
|
94
98
|
end
|
95
99
|
|
@@ -20,8 +20,26 @@ class DemosController < ApplicationController
|
|
20
20
|
logger.debug "f=#{@filter.inspect}, x=#{x}"
|
21
21
|
|
22
22
|
|
23
|
-
|
23
|
+
end
|
24
|
+
|
25
|
+
|
26
|
+
### DEMO 2
|
27
|
+
|
28
|
+
search_filter :client_orders_index, {save_session: true, search_method: :post_and_redirect, search_url: :search_client_orders_demo_url, search_action: :client_orders_search} do
|
29
|
+
default_order "id", 'desc'
|
30
|
+
|
31
|
+
# fields
|
32
|
+
field :product, :string, :autocomplete, {label: 'Product', default_value: '',
|
33
|
+
search_by: :id, :source_query => :autocomplete_category_title_categories_path,
|
34
|
+
condition: :custom, condition_scope: :of_product
|
35
|
+
}
|
36
|
+
|
37
|
+
|
38
|
+
end
|
39
|
+
|
24
40
|
|
41
|
+
def client_orders_index
|
42
|
+
@items = Client.by_filter(@filter)
|
25
43
|
|
26
44
|
end
|
27
45
|
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
class OrdersController < ApplicationController
|
2
|
+
|
3
|
+
# POST, save in session
|
4
|
+
|
5
|
+
search_filter :index, {save_session: true, search_method: :post_and_redirect, url: :orders_path, search_url: :search_orders_path, search_action: :search} do
|
6
|
+
default_order "id", 'desc'
|
7
|
+
|
8
|
+
# custom scope
|
9
|
+
field :city, :string, :text, {label: 'City', default_value: '', ignore_value: '', search_by: :id, condition: :custom, condition_scope: :of_client_city}
|
10
|
+
|
11
|
+
end
|
12
|
+
|
13
|
+
|
14
|
+
def index
|
15
|
+
@items = Order.includes(:client).by_filter(@filter)
|
16
|
+
|
17
|
+
end
|
18
|
+
|
19
|
+
|
20
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
class Client < ActiveRecord::Base
|
2
|
+
has_many :orders
|
3
|
+
|
4
|
+
# search
|
5
|
+
searchable_by_simple_filter
|
6
|
+
|
7
|
+
scope :bought_product, lambda { |product_id| where_bought_product(product_id) }
|
8
|
+
|
9
|
+
def self.where_bought_product(product_id)
|
10
|
+
v = (product_id.to_i rescue 0)
|
11
|
+
if v>0
|
12
|
+
where(:order_id => DeviceModel.select("id").where(:device_brand_id => id))
|
13
|
+
else
|
14
|
+
where("1=1")
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
|
19
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
class Order < ActiveRecord::Base
|
2
|
+
belongs_to :client
|
3
|
+
|
4
|
+
# search
|
5
|
+
searchable_by_simple_filter
|
6
|
+
|
7
|
+
scope :of_client_city, lambda { |city| where_client_city(city) }
|
8
|
+
|
9
|
+
def self.where_client_city(v)
|
10
|
+
if v.present?
|
11
|
+
where(client_id: Client.select("id").where(:city => v))
|
12
|
+
else
|
13
|
+
where("1=1")
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
|
18
|
+
#
|
19
|
+
scope :of_category, lambda { |category_id| where_category(category_id) }
|
20
|
+
|
21
|
+
def self.where_category(id)
|
22
|
+
v = (id.to_i rescue 0)
|
23
|
+
if v>0
|
24
|
+
where(product_id: Product.select("id").where(:category_id => id))
|
25
|
+
else
|
26
|
+
where("1=1")
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
File without changes
|
@@ -1,5 +1,10 @@
|
|
1
1
|
%h1 Demo
|
2
2
|
|
3
|
+
|
4
|
+
Demos:
|
3
5
|
%ul
|
4
6
|
%li=link_to 'Basic', basic_demo_path
|
5
|
-
%li=link_to 'Products', products_path
|
7
|
+
%li=link_to 'Products', products_path
|
8
|
+
%li=link_to 'Orders', orders_path
|
9
|
+
-#%li=link_to 'Clients and Orders - NOT WORK', clients_orders_demo_path
|
10
|
+
|
@@ -0,0 +1,23 @@
|
|
1
|
+
%h1 Orders
|
2
|
+
|
3
|
+
Filter:
|
4
|
+
= inline_filter_form_for @filter
|
5
|
+
%br
|
6
|
+
%table.table.table-bordered
|
7
|
+
%tr
|
8
|
+
%th= link_to_sortable_column :id, 'ID'
|
9
|
+
%th Date
|
10
|
+
%th Client name
|
11
|
+
%th Client city
|
12
|
+
|
13
|
+
- @items.each do |item|
|
14
|
+
%tr
|
15
|
+
%td=item.created_at
|
16
|
+
%td=item.id
|
17
|
+
%td= item.client.name
|
18
|
+
%td= item.client.city
|
19
|
+
|
20
|
+
= paginate @items
|
21
|
+
%br
|
22
|
+
Found: #{@items.total_count}
|
23
|
+
|
data/test/dummy/config/routes.rb
CHANGED
@@ -6,8 +6,14 @@ Rails.application.routes.draw do
|
|
6
6
|
get 'demos/basic_index' => 'demos#basic_index', as: :basic_demo
|
7
7
|
post 'demos/basic_search' => 'demos#basic_search', as: :search_basic_demo
|
8
8
|
|
9
|
+
#get 'demos/client_orders' => 'demos#client_orders_index', as: :client_orders_demo
|
10
|
+
#post 'demos/client_orders' => 'demos#client_orders_search', as: :search_client_orders_demo
|
11
|
+
|
12
|
+
|
9
13
|
# products
|
10
14
|
resources :products do
|
15
|
+
get :autocomplete_product_title, :on => :collection
|
16
|
+
|
11
17
|
collection do
|
12
18
|
post :search
|
13
19
|
end
|
@@ -18,6 +24,12 @@ Rails.application.routes.draw do
|
|
18
24
|
|
19
25
|
end
|
20
26
|
|
27
|
+
resources :orders do
|
28
|
+
collection do
|
29
|
+
post :search
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
21
33
|
# Example of regular route:
|
22
34
|
# get 'products/:id' => 'catalog#view'
|
23
35
|
|
data/test/dummy/db/schema.rb
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
#
|
12
12
|
# It's strongly recommended that you check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(version:
|
14
|
+
ActiveRecord::Schema.define(version: 20150723230023) do
|
15
15
|
|
16
16
|
create_table "categories", force: :cascade do |t|
|
17
17
|
t.string "title", limit: 255
|
@@ -19,13 +19,32 @@ ActiveRecord::Schema.define(version: 20150526054424) do
|
|
19
19
|
t.datetime "updated_at", null: false
|
20
20
|
end
|
21
21
|
|
22
|
+
create_table "clients", force: :cascade do |t|
|
23
|
+
t.string "name", limit: 255
|
24
|
+
t.string "country", limit: 255
|
25
|
+
t.datetime "created_at", null: false
|
26
|
+
t.datetime "updated_at", null: false
|
27
|
+
t.string "city", limit: 255
|
28
|
+
end
|
29
|
+
|
30
|
+
create_table "order_products", force: :cascade do |t|
|
31
|
+
t.integer "order_id", limit: 4
|
32
|
+
t.integer "product_id", limit: 4
|
33
|
+
end
|
34
|
+
|
35
|
+
create_table "orders", force: :cascade do |t|
|
36
|
+
t.integer "client_id", limit: 4
|
37
|
+
t.datetime "created_at", null: false
|
38
|
+
t.datetime "updated_at", null: false
|
39
|
+
end
|
40
|
+
|
22
41
|
create_table "products", force: :cascade do |t|
|
23
42
|
t.string "title", limit: 255
|
24
43
|
t.decimal "price", precision: 10, scale: 4
|
25
|
-
t.datetime "created_at",
|
26
|
-
t.datetime "updated_at",
|
44
|
+
t.datetime "created_at", null: false
|
45
|
+
t.datetime "updated_at", null: false
|
27
46
|
t.integer "category_id", limit: 4
|
28
|
-
t.boolean "
|
47
|
+
t.boolean "is_archived", default: false
|
29
48
|
end
|
30
49
|
|
31
50
|
end
|
@@ -19706,3 +19706,847 @@ Started GET "/assets/bootstrap3-autocomplete-input.min-0d1eaadef3d4edf55034938c1
|
|
19706
19706
|
|
19707
19707
|
|
19708
19708
|
Started GET "/assets/application-fa8dd3416e69dda490debff7cc3e6061.js?body=1" for 127.0.0.1 at 2015-07-07 19:33:20 +0300
|
19709
|
+
[1m[36mActiveRecord::SchemaMigration Load (280.0ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
19710
|
+
Migrating to CreateClients (20150723154723)
|
19711
|
+
[1m[35m (68.0ms)[0m CREATE TABLE `clients` (`id` int(11) auto_increment PRIMARY KEY, `name` varchar(255), `country` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
|
19712
|
+
[1m[36m (46.0ms)[0m [1mBEGIN[0m
|
19713
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20150723154723')
|
19714
|
+
[1m[36m (2.0ms)[0m [1mCOMMIT[0m
|
19715
|
+
Migrating to CreateOrders (20150723154730)
|
19716
|
+
[1m[35m (86.0ms)[0m CREATE TABLE `orders` (`id` int(11) auto_increment PRIMARY KEY, `client_id` int(11), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
|
19717
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
19718
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20150723154730')
|
19719
|
+
[1m[36m (1.0ms)[0m [1mCOMMIT[0m
|
19720
|
+
Migrating to CreateOrderProducts (20150723154914)
|
19721
|
+
[1m[35m (135.0ms)[0m CREATE TABLE `order_products` (`id` int(11) auto_increment PRIMARY KEY, `order_id` int(11), `product_id` int(11)) ENGINE=InnoDB
|
19722
|
+
[1m[36m (1.0ms)[0m [1mBEGIN[0m
|
19723
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20150723154914')
|
19724
|
+
[1m[36m (1.0ms)[0m [1mCOMMIT[0m
|
19725
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.0ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
|
19726
|
+
[1m[36m (1.0ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
19727
|
+
,fk.referenced_column_name as 'primary_key'
|
19728
|
+
,fk.column_name as 'column'
|
19729
|
+
,fk.constraint_name as 'name'
|
19730
|
+
FROM information_schema.key_column_usage fk
|
19731
|
+
WHERE fk.referenced_column_name is not null
|
19732
|
+
AND fk.table_schema = 'my_gems_simple_filter'
|
19733
|
+
AND fk.table_name = 'categories'
|
19734
|
+
[0m
|
19735
|
+
[1m[35m (1.0ms)[0m SHOW CREATE TABLE `categories`
|
19736
|
+
[1m[36m (1.0ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
19737
|
+
,fk.referenced_column_name as 'primary_key'
|
19738
|
+
,fk.column_name as 'column'
|
19739
|
+
,fk.constraint_name as 'name'
|
19740
|
+
FROM information_schema.key_column_usage fk
|
19741
|
+
WHERE fk.referenced_column_name is not null
|
19742
|
+
AND fk.table_schema = 'my_gems_simple_filter'
|
19743
|
+
AND fk.table_name = 'clients'
|
19744
|
+
[0m
|
19745
|
+
[1m[35m (0.0ms)[0m SHOW CREATE TABLE `clients`
|
19746
|
+
[1m[36m (1.0ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
19747
|
+
,fk.referenced_column_name as 'primary_key'
|
19748
|
+
,fk.column_name as 'column'
|
19749
|
+
,fk.constraint_name as 'name'
|
19750
|
+
FROM information_schema.key_column_usage fk
|
19751
|
+
WHERE fk.referenced_column_name is not null
|
19752
|
+
AND fk.table_schema = 'my_gems_simple_filter'
|
19753
|
+
AND fk.table_name = 'order_products'
|
19754
|
+
[0m
|
19755
|
+
[1m[35m (0.0ms)[0m SHOW CREATE TABLE `order_products`
|
19756
|
+
[1m[36m (1.0ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
19757
|
+
,fk.referenced_column_name as 'primary_key'
|
19758
|
+
,fk.column_name as 'column'
|
19759
|
+
,fk.constraint_name as 'name'
|
19760
|
+
FROM information_schema.key_column_usage fk
|
19761
|
+
WHERE fk.referenced_column_name is not null
|
19762
|
+
AND fk.table_schema = 'my_gems_simple_filter'
|
19763
|
+
AND fk.table_name = 'orders'
|
19764
|
+
[0m
|
19765
|
+
[1m[35m (1.0ms)[0m SHOW CREATE TABLE `orders`
|
19766
|
+
[1m[36m (1.0ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
19767
|
+
,fk.referenced_column_name as 'primary_key'
|
19768
|
+
,fk.column_name as 'column'
|
19769
|
+
,fk.constraint_name as 'name'
|
19770
|
+
FROM information_schema.key_column_usage fk
|
19771
|
+
WHERE fk.referenced_column_name is not null
|
19772
|
+
AND fk.table_schema = 'my_gems_simple_filter'
|
19773
|
+
AND fk.table_name = 'products'
|
19774
|
+
[0m
|
19775
|
+
[1m[35m (1.0ms)[0m SHOW CREATE TABLE `products`
|
19776
|
+
|
19777
|
+
|
19778
|
+
Started GET "/" for 127.0.0.1 at 2015-07-23 22:09:16 +0300
|
19779
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.0ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
19780
|
+
Processing by HomeController#index as HTML
|
19781
|
+
Rendered home/index.html.haml within layouts/application (32.0ms)
|
19782
|
+
Completed 200 OK in 2593ms (Views: 2591.1ms | ActiveRecord: 0.0ms)
|
19783
|
+
|
19784
|
+
|
19785
|
+
Started GET "/assets/jquery_ujs-a07db4513f124c8b2c609ff9b61d7a17.js?body=1" for 127.0.0.1 at 2015-07-23 22:09:20 +0300
|
19786
|
+
|
19787
|
+
|
19788
|
+
Started GET "/assets/bootstrap/affix-21642124464da30e1fd4ac0ab0d5d7b7.js?body=1" for 127.0.0.1 at 2015-07-23 22:09:20 +0300
|
19789
|
+
|
19790
|
+
|
19791
|
+
Started GET "/assets/bootstrap/alert-d072f0c4c23eae61e338a15013d9d7c3.js?body=1" for 127.0.0.1 at 2015-07-23 22:09:20 +0300
|
19792
|
+
|
19793
|
+
|
19794
|
+
Started GET "/assets/application-f651684b8bcb67b8780cdeb79a764512.css?body=1" for 127.0.0.1 at 2015-07-23 22:09:20 +0300
|
19795
|
+
|
19796
|
+
|
19797
|
+
Started GET "/assets/jquery2-b6a71c343bd8624834b3e7fa6beffa93.js?body=1" for 127.0.0.1 at 2015-07-23 22:09:20 +0300
|
19798
|
+
|
19799
|
+
|
19800
|
+
Started GET "/assets/bootstrap/button-e4df0485a6e45da597cf03eb9e2bb798.js?body=1" for 127.0.0.1 at 2015-07-23 22:09:20 +0300
|
19801
|
+
|
19802
|
+
|
19803
|
+
Started GET "/assets/bootstrap/carousel-590056a9387f4fda68a66ae7ff0eb7e4.js?body=1" for 127.0.0.1 at 2015-07-23 22:09:20 +0300
|
19804
|
+
|
19805
|
+
|
19806
|
+
Started GET "/assets/bootstrap/collapse-4ca630e83a258ee32247a026441250ff.js?body=1" for 127.0.0.1 at 2015-07-23 22:09:20 +0300
|
19807
|
+
|
19808
|
+
|
19809
|
+
Started GET "/assets/bootstrap/dropdown-0a9b720cc9208f070cc11759757358c1.js?body=1" for 127.0.0.1 at 2015-07-23 22:09:20 +0300
|
19810
|
+
|
19811
|
+
|
19812
|
+
Started GET "/assets/bootstrap/tab-f269781e4faa37a11bcc0f4116886385.js?body=1" for 127.0.0.1 at 2015-07-23 22:09:20 +0300
|
19813
|
+
|
19814
|
+
|
19815
|
+
Started GET "/assets/bootstrap/transition-02df678bda467d1824eca4ebf4c7ec00.js?body=1" for 127.0.0.1 at 2015-07-23 22:09:20 +0300
|
19816
|
+
|
19817
|
+
|
19818
|
+
Started GET "/assets/bootstrap/scrollspy-147ccd96d5dc755e73ba970b75b92aee.js?body=1" for 127.0.0.1 at 2015-07-23 22:09:20 +0300
|
19819
|
+
|
19820
|
+
|
19821
|
+
Started GET "/assets/bootstrap/modal-fdfe9c2d392da9c0fc3a3b3aa0466639.js?body=1" for 127.0.0.1 at 2015-07-23 22:09:20 +0300
|
19822
|
+
|
19823
|
+
|
19824
|
+
Started GET "/assets/bootstrap/tooltip-8b2964950464c075489415e1d5235170.js?body=1" for 127.0.0.1 at 2015-07-23 22:09:20 +0300
|
19825
|
+
|
19826
|
+
|
19827
|
+
Started GET "/assets/bootstrap/popover-2187660dacf5063d98777f848eabfa2b.js?body=1" for 127.0.0.1 at 2015-07-23 22:09:20 +0300
|
19828
|
+
|
19829
|
+
|
19830
|
+
Started GET "/assets/bootstrap-sprockets-e36e10bcfbabd5af903af169c1bade1c.js?body=1" for 127.0.0.1 at 2015-07-23 22:09:20 +0300
|
19831
|
+
|
19832
|
+
|
19833
|
+
Started GET "/assets/bootstrap3-typeahead.min-0ce198f661330b60afff39eebd8e0c49.js?body=1" for 127.0.0.1 at 2015-07-23 22:09:20 +0300
|
19834
|
+
|
19835
|
+
|
19836
|
+
Started GET "/assets/bootstrap3-autocomplete-input.min-0d1eaadef3d4edf55034938c149e2ca6.js?body=1" for 127.0.0.1 at 2015-07-23 22:09:20 +0300
|
19837
|
+
|
19838
|
+
|
19839
|
+
Started GET "/assets/application-fa8dd3416e69dda490debff7cc3e6061.js?body=1" for 127.0.0.1 at 2015-07-23 22:09:20 +0300
|
19840
|
+
|
19841
|
+
|
19842
|
+
Started GET "/products" for 127.0.0.1 at 2015-07-23 22:10:13 +0300
|
19843
|
+
Processing by ProductsController#index as HTML
|
19844
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/fields_simple_form/_text.html.haml (224.0ms)
|
19845
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_field_simple_form.html.haml (244.0ms)
|
19846
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/fields_simple_form/_text.html.haml (17.0ms)
|
19847
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_field_simple_form.html.haml (21.0ms)
|
19848
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/fields_simple_form/_text.html.haml (45.0ms)
|
19849
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_field_simple_form.html.haml (49.0ms)
|
19850
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_field_simple_form.html.haml (1.0ms)
|
19851
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/fields_simple_form/_autocomplete.html.haml (46.0ms)
|
19852
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_field_simple_form.html.haml (54.0ms)
|
19853
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/fields_simple_form/_checkbox.html.haml (52.0ms)
|
19854
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_field_simple_form.html.haml (59.0ms)
|
19855
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/fields_simple_form/_hidden.html.haml (24.0ms)
|
19856
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_field_simple_form.html.haml (37.0ms)
|
19857
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_fields.html.haml (497.0ms)
|
19858
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_buttons_apply_clear.html.haml (4.0ms)
|
19859
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_buttons_apply_clear_inline.html.haml (15.0ms)
|
19860
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_form_horizontal.html.haml (710.0ms)
|
19861
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_form.html.haml (753.0ms)
|
19862
|
+
[1m[35mProduct Load (0.0ms)[0m SELECT `products`.* FROM `products` WHERE `products`.`is_archived` = 0 AND (1=1 ) ORDER BY price asc LIMIT 3 OFFSET 0
|
19863
|
+
[1m[36mCategory Load (0.0ms)[0m [1mSELECT `categories`.* FROM `categories` WHERE `categories`.`id` IN (2, 1)[0m
|
19864
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM `products` WHERE `products`.`is_archived` = 0 AND (1=1 )
|
19865
|
+
Rendered products/index.html.haml within layouts/application (1104.1ms)
|
19866
|
+
Completed 200 OK in 2486ms (Views: 1973.1ms | ActiveRecord: 35.0ms)
|
19867
|
+
|
19868
|
+
|
19869
|
+
Started GET "/orders" for 127.0.0.1 at 2015-07-23 22:10:15 +0300
|
19870
|
+
Processing by OrdersController#index as HTML
|
19871
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_field_simple_form.html.haml (0.0ms)
|
19872
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/fields_simple_form/_autocomplete.html.haml (15.0ms)
|
19873
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_field_simple_form.html.haml (19.0ms)
|
19874
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_fields.html.haml (26.0ms)
|
19875
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_buttons_apply_clear.html.haml (0.0ms)
|
19876
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_buttons_apply_clear_inline.html.haml (4.0ms)
|
19877
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_form_inline.html.haml (45.0ms)
|
19878
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_form.html.haml (74.0ms)
|
19879
|
+
[1m[36mOrder Load (0.0ms)[0m [1mSELECT `orders`.* FROM `orders` WHERE (1=1 ) ORDER BY id desc LIMIT 25 OFFSET 0[0m
|
19880
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM `orders` WHERE (1=1 )
|
19881
|
+
Rendered orders/index.html.haml within layouts/application (119.0ms)
|
19882
|
+
Completed 200 OK in 1055ms (Views: 1033.1ms | ActiveRecord: 8.0ms)
|
19883
|
+
|
19884
|
+
|
19885
|
+
Started GET "/assets/fontawesome-webfont-2e8d7312bd7f3ebd7a019db78fb7f282.woff2?v=4.3.0" for 127.0.0.1 at 2015-07-23 22:10:17 +0300
|
19886
|
+
|
19887
|
+
|
19888
|
+
Started GET "/categories/autocomplete_category_title?q=a" for 127.0.0.1 at 2015-07-23 22:40:52 +0300
|
19889
|
+
Processing by CategoriesController#autocomplete_category_title as JSON
|
19890
|
+
Parameters: {"q"=>"a"}
|
19891
|
+
[1m[36mCategory Load (0.0ms)[0m [1mSELECT categories.id, categories.title FROM `categories` WHERE (LOWER(categories.title) LIKE 'a%') ORDER BY categories.title ASC LIMIT 10[0m
|
19892
|
+
Completed 200 OK in 8ms (Views: 0.0ms | ActiveRecord: 0.0ms)
|
19893
|
+
|
19894
|
+
|
19895
|
+
Started GET "/categories/autocomplete_category_title?q=f" for 127.0.0.1 at 2015-07-23 22:41:05 +0300
|
19896
|
+
Processing by CategoriesController#autocomplete_category_title as JSON
|
19897
|
+
Parameters: {"q"=>"f"}
|
19898
|
+
[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
|
19899
|
+
Completed 200 OK in 8ms (Views: 1.0ms | ActiveRecord: 1.0ms)
|
19900
|
+
|
19901
|
+
|
19902
|
+
Started POST "/orders/search" for 127.0.0.1 at 2015-07-23 22:41:07 +0300
|
19903
|
+
Processing by OrdersController#search as HTML
|
19904
|
+
Parameters: {"utf8"=>"✓", "authenticity_token"=>"5hEYLpLs0HbbnSgMu4uGMyElONqbijBpSj0Fo+oCzRhR1jy3sou9mbrPAgC/KL+sl5oL71xDvJJOZlFDqt8t2g==", "filter_cmd"=>"apply", "filter"=>{"category_id"=>"1", "category"=>"Fruits"}}
|
19905
|
+
Redirected to http://localhost:3000/orders
|
19906
|
+
Completed 302 Found in 10ms (ActiveRecord: 0.0ms)
|
19907
|
+
|
19908
|
+
|
19909
|
+
Started GET "/orders" for 127.0.0.1 at 2015-07-23 22:41:07 +0300
|
19910
|
+
Processing by OrdersController#index as HTML
|
19911
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_field_simple_form.html.haml (1.0ms)
|
19912
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/fields_simple_form/_autocomplete.html.haml (17.0ms)
|
19913
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_field_simple_form.html.haml (22.0ms)
|
19914
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_fields.html.haml (30.0ms)
|
19915
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_buttons_apply_clear.html.haml (0.0ms)
|
19916
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_buttons_apply_clear_inline.html.haml (4.0ms)
|
19917
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_form_inline.html.haml (46.0ms)
|
19918
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_form.html.haml (50.0ms)
|
19919
|
+
[1m[36mOrder Load (0.0ms)[0m [1mSELECT `orders`.* FROM `orders` WHERE `orders`.`product_id` IN (SELECT `products`.`id` FROM `products` WHERE `products`.`category_id` = 1) AND (1=1 ) ORDER BY id desc LIMIT 25 OFFSET 0[0m
|
19920
|
+
Mysql2::Error: Unknown column 'orders.product_id' in 'IN/ALL/ANY subquery': SELECT `orders`.* FROM `orders` WHERE `orders`.`product_id` IN (SELECT `products`.`id` FROM `products` WHERE `products`.`category_id` = 1) AND (1=1 ) ORDER BY id desc LIMIT 25 OFFSET 0
|
19921
|
+
Rendered orders/index.html.haml within layouts/application (88.0ms)
|
19922
|
+
Completed 500 Internal Server Error in 109ms (ActiveRecord: 0.0ms)
|
19923
|
+
|
19924
|
+
ActionView::Template::Error (Mysql2::Error: Unknown column 'orders.product_id' in 'IN/ALL/ANY subquery': SELECT `orders`.* FROM `orders` WHERE `orders`.`product_id` IN (SELECT `products`.`id` FROM `products` WHERE `products`.`category_id` = 1) AND (1=1 ) ORDER BY id desc LIMIT 25 OFFSET 0):
|
19925
|
+
9: %th Product
|
19926
|
+
10: %th Category
|
19927
|
+
11:
|
19928
|
+
12: - @items.each do |item|
|
19929
|
+
13: %tr
|
19930
|
+
14: %td=item.id
|
19931
|
+
15: %td= item.product.title
|
19932
|
+
app/views/orders/index.html.haml:12:in `_app_views_orders_index_html_haml___685089848_90019608'
|
19933
|
+
|
19934
|
+
|
19935
|
+
Rendered D:/Ruby215/lib/ruby/gems/2.1.0/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.0ms)
|
19936
|
+
Rendered D:/Ruby215/lib/ruby/gems/2.1.0/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (41.0ms)
|
19937
|
+
Rendered D:/Ruby215/lib/ruby/gems/2.1.0/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (4.0ms)
|
19938
|
+
Rendered D:/Ruby215/lib/ruby/gems/2.1.0/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (118.0ms)
|
19939
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
19940
|
+
Migrating to AddCityToClient (20150723230023)
|
19941
|
+
[1m[35m (656.0ms)[0m ALTER TABLE `clients` ADD `city` varchar(255)
|
19942
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
19943
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20150723230023')
|
19944
|
+
[1m[36m (2.0ms)[0m [1mCOMMIT[0m
|
19945
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.0ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
|
19946
|
+
[1m[36m (1.0ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
19947
|
+
,fk.referenced_column_name as 'primary_key'
|
19948
|
+
,fk.column_name as 'column'
|
19949
|
+
,fk.constraint_name as 'name'
|
19950
|
+
FROM information_schema.key_column_usage fk
|
19951
|
+
WHERE fk.referenced_column_name is not null
|
19952
|
+
AND fk.table_schema = 'my_gems_simple_filter'
|
19953
|
+
AND fk.table_name = 'categories'
|
19954
|
+
[0m
|
19955
|
+
[1m[35m (0.0ms)[0m SHOW CREATE TABLE `categories`
|
19956
|
+
[1m[36m (0.0ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
19957
|
+
,fk.referenced_column_name as 'primary_key'
|
19958
|
+
,fk.column_name as 'column'
|
19959
|
+
,fk.constraint_name as 'name'
|
19960
|
+
FROM information_schema.key_column_usage fk
|
19961
|
+
WHERE fk.referenced_column_name is not null
|
19962
|
+
AND fk.table_schema = 'my_gems_simple_filter'
|
19963
|
+
AND fk.table_name = 'clients'
|
19964
|
+
[0m
|
19965
|
+
[1m[35m (1.0ms)[0m SHOW CREATE TABLE `clients`
|
19966
|
+
[1m[36m (0.0ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
19967
|
+
,fk.referenced_column_name as 'primary_key'
|
19968
|
+
,fk.column_name as 'column'
|
19969
|
+
,fk.constraint_name as 'name'
|
19970
|
+
FROM information_schema.key_column_usage fk
|
19971
|
+
WHERE fk.referenced_column_name is not null
|
19972
|
+
AND fk.table_schema = 'my_gems_simple_filter'
|
19973
|
+
AND fk.table_name = 'order_products'
|
19974
|
+
[0m
|
19975
|
+
[1m[35m (0.0ms)[0m SHOW CREATE TABLE `order_products`
|
19976
|
+
[1m[36m (1.0ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
19977
|
+
,fk.referenced_column_name as 'primary_key'
|
19978
|
+
,fk.column_name as 'column'
|
19979
|
+
,fk.constraint_name as 'name'
|
19980
|
+
FROM information_schema.key_column_usage fk
|
19981
|
+
WHERE fk.referenced_column_name is not null
|
19982
|
+
AND fk.table_schema = 'my_gems_simple_filter'
|
19983
|
+
AND fk.table_name = 'orders'
|
19984
|
+
[0m
|
19985
|
+
[1m[35m (0.0ms)[0m SHOW CREATE TABLE `orders`
|
19986
|
+
[1m[36m (0.0ms)[0m [1mSELECT fk.referenced_table_name as 'to_table'
|
19987
|
+
,fk.referenced_column_name as 'primary_key'
|
19988
|
+
,fk.column_name as 'column'
|
19989
|
+
,fk.constraint_name as 'name'
|
19990
|
+
FROM information_schema.key_column_usage fk
|
19991
|
+
WHERE fk.referenced_column_name is not null
|
19992
|
+
AND fk.table_schema = 'my_gems_simple_filter'
|
19993
|
+
AND fk.table_name = 'products'
|
19994
|
+
[0m
|
19995
|
+
[1m[35m (0.0ms)[0m SHOW CREATE TABLE `products`
|
19996
|
+
|
19997
|
+
|
19998
|
+
Started GET "/orders" for 127.0.0.1 at 2015-07-24 02:06:58 +0300
|
19999
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.0ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
|
20000
|
+
Processing by OrdersController#index as HTML
|
20001
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/fields_simple_form/_text.html.haml (18.0ms)
|
20002
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_field_simple_form.html.haml (24.0ms)
|
20003
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_fields.html.haml (30.0ms)
|
20004
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_buttons_apply_clear.html.haml (0.0ms)
|
20005
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_buttons_apply_clear_inline.html.haml (6.0ms)
|
20006
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_form_inline.html.haml (51.0ms)
|
20007
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_form.html.haml (70.0ms)
|
20008
|
+
[1m[36mOrder Load (0.0ms)[0m [1mSELECT `orders`.* FROM `orders` WHERE (1=1 ) ORDER BY id desc LIMIT 25 OFFSET 0[0m
|
20009
|
+
[1m[35mClient Load (1.0ms)[0m SELECT `clients`.* FROM `clients` WHERE `clients`.`id` IN (2, 1)
|
20010
|
+
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM `orders` WHERE (1=1 )[0m
|
20011
|
+
Rendered orders/index.html.haml within layouts/application (205.0ms)
|
20012
|
+
Completed 200 OK in 1258ms (Views: 1225.1ms | ActiveRecord: 18.0ms)
|
20013
|
+
|
20014
|
+
|
20015
|
+
Started GET "/assets/application-f651684b8bcb67b8780cdeb79a764512.css?body=1" for 127.0.0.1 at 2015-07-24 02:07:00 +0300
|
20016
|
+
|
20017
|
+
|
20018
|
+
Started GET "/assets/jquery2-b6a71c343bd8624834b3e7fa6beffa93.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:00 +0300
|
20019
|
+
|
20020
|
+
|
20021
|
+
Started GET "/assets/jquery_ujs-a07db4513f124c8b2c609ff9b61d7a17.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:00 +0300
|
20022
|
+
|
20023
|
+
|
20024
|
+
Started GET "/assets/bootstrap/affix-21642124464da30e1fd4ac0ab0d5d7b7.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:00 +0300
|
20025
|
+
|
20026
|
+
|
20027
|
+
Started GET "/assets/bootstrap/collapse-4ca630e83a258ee32247a026441250ff.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:00 +0300
|
20028
|
+
|
20029
|
+
|
20030
|
+
Started GET "/assets/bootstrap/alert-d072f0c4c23eae61e338a15013d9d7c3.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:00 +0300
|
20031
|
+
|
20032
|
+
|
20033
|
+
Started GET "/assets/bootstrap/button-e4df0485a6e45da597cf03eb9e2bb798.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:00 +0300
|
20034
|
+
|
20035
|
+
|
20036
|
+
Started GET "/assets/bootstrap/dropdown-0a9b720cc9208f070cc11759757358c1.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:00 +0300
|
20037
|
+
|
20038
|
+
|
20039
|
+
Started GET "/assets/bootstrap/carousel-590056a9387f4fda68a66ae7ff0eb7e4.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:00 +0300
|
20040
|
+
|
20041
|
+
|
20042
|
+
Started GET "/assets/bootstrap/tab-f269781e4faa37a11bcc0f4116886385.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:00 +0300
|
20043
|
+
|
20044
|
+
|
20045
|
+
Started GET "/assets/bootstrap/transition-02df678bda467d1824eca4ebf4c7ec00.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:00 +0300
|
20046
|
+
|
20047
|
+
|
20048
|
+
Started GET "/assets/bootstrap/scrollspy-147ccd96d5dc755e73ba970b75b92aee.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:00 +0300
|
20049
|
+
|
20050
|
+
|
20051
|
+
Started GET "/assets/bootstrap/modal-fdfe9c2d392da9c0fc3a3b3aa0466639.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:00 +0300
|
20052
|
+
|
20053
|
+
|
20054
|
+
Started GET "/assets/bootstrap/tooltip-8b2964950464c075489415e1d5235170.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:00 +0300
|
20055
|
+
|
20056
|
+
|
20057
|
+
Started GET "/assets/bootstrap/popover-2187660dacf5063d98777f848eabfa2b.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:00 +0300
|
20058
|
+
|
20059
|
+
|
20060
|
+
Started GET "/assets/bootstrap-sprockets-e36e10bcfbabd5af903af169c1bade1c.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:00 +0300
|
20061
|
+
|
20062
|
+
|
20063
|
+
Started GET "/assets/bootstrap3-typeahead.min-0ce198f661330b60afff39eebd8e0c49.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:00 +0300
|
20064
|
+
|
20065
|
+
|
20066
|
+
Started GET "/assets/bootstrap3-autocomplete-input.min-0d1eaadef3d4edf55034938c149e2ca6.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:00 +0300
|
20067
|
+
|
20068
|
+
|
20069
|
+
Started GET "/assets/application-fa8dd3416e69dda490debff7cc3e6061.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:00 +0300
|
20070
|
+
|
20071
|
+
|
20072
|
+
Started GET "/assets/fontawesome-webfont-2e8d7312bd7f3ebd7a019db78fb7f282.woff2?v=4.3.0" for 127.0.0.1 at 2015-07-24 02:07:00 +0300
|
20073
|
+
|
20074
|
+
|
20075
|
+
Started POST "/orders/search" for 127.0.0.1 at 2015-07-24 02:07:05 +0300
|
20076
|
+
Processing by OrdersController#search as HTML
|
20077
|
+
Parameters: {"utf8"=>"✓", "authenticity_token"=>"VSo3p50at0eOgpqIadQZ8NtzJfmt1WafJXMPMcV8iFbi7RM+vX3aqO/QsIRtdyBvbcwWzGoc6mQhKFvRhaFolA==", "filter_cmd"=>"apply", "filter"=>{"city"=>"london"}}
|
20078
|
+
Redirected to http://localhost:3000/orders
|
20079
|
+
Completed 302 Found in 15ms (ActiveRecord: 0.0ms)
|
20080
|
+
|
20081
|
+
|
20082
|
+
Started GET "/orders" for 127.0.0.1 at 2015-07-24 02:07:05 +0300
|
20083
|
+
Processing by OrdersController#index as HTML
|
20084
|
+
Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.0ms)
|
20085
|
+
|
20086
|
+
NoMethodError (undefined method `where_client_city' for #<Class:0xad02878>):
|
20087
|
+
app/models/order.rb:7:in `block in <class:Order>'
|
20088
|
+
app/controllers/orders_controller.rb:15:in `index'
|
20089
|
+
|
20090
|
+
|
20091
|
+
Rendered D:/Ruby215/lib/ruby/gems/2.1.0/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.0ms)
|
20092
|
+
Rendered D:/Ruby215/lib/ruby/gems/2.1.0/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (31.0ms)
|
20093
|
+
Rendered D:/Ruby215/lib/ruby/gems/2.1.0/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (3.0ms)
|
20094
|
+
Rendered D:/Ruby215/lib/ruby/gems/2.1.0/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (118.0ms)
|
20095
|
+
|
20096
|
+
|
20097
|
+
Started GET "/orders" for 127.0.0.1 at 2015-07-24 02:07:15 +0300
|
20098
|
+
Processing by OrdersController#index as HTML
|
20099
|
+
Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.0ms)
|
20100
|
+
|
20101
|
+
NoMethodError (undefined method `where_client_city' for #<Class:0xad02878>):
|
20102
|
+
app/models/order.rb:7:in `block in <class:Order>'
|
20103
|
+
app/controllers/orders_controller.rb:15:in `index'
|
20104
|
+
|
20105
|
+
|
20106
|
+
Rendered D:/Ruby215/lib/ruby/gems/2.1.0/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.0ms)
|
20107
|
+
Rendered D:/Ruby215/lib/ruby/gems/2.1.0/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (30.0ms)
|
20108
|
+
Rendered D:/Ruby215/lib/ruby/gems/2.1.0/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (3.0ms)
|
20109
|
+
Rendered D:/Ruby215/lib/ruby/gems/2.1.0/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (67.0ms)
|
20110
|
+
|
20111
|
+
|
20112
|
+
Started GET "/orders" for 127.0.0.1 at 2015-07-24 02:07:23 +0300
|
20113
|
+
Processing by OrdersController#index as HTML
|
20114
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/fields_simple_form/_text.html.haml (18.0ms)
|
20115
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_field_simple_form.html.haml (23.0ms)
|
20116
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_fields.html.haml (27.0ms)
|
20117
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_buttons_apply_clear.html.haml (1.0ms)
|
20118
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_buttons_apply_clear_inline.html.haml (5.0ms)
|
20119
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_form_inline.html.haml (42.0ms)
|
20120
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_form.html.haml (46.0ms)
|
20121
|
+
[1m[35mOrder Load (0.0ms)[0m SELECT `orders`.* FROM `orders` WHERE `orders`.`client_id` IN (SELECT `clients`.`id` FROM `clients` WHERE `clients`.`city` = 'london') AND (1=1 ) ORDER BY id desc LIMIT 25 OFFSET 0
|
20122
|
+
[1m[36mClient Load (1.0ms)[0m [1mSELECT `clients`.* FROM `clients` WHERE `clients`.`id` IN (1)[0m
|
20123
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM `orders` WHERE `orders`.`client_id` IN (SELECT `clients`.`id` FROM `clients` WHERE `clients`.`city` = 'london') AND (1=1 )
|
20124
|
+
Rendered orders/index.html.haml within layouts/application (118.0ms)
|
20125
|
+
Completed 200 OK in 1057ms (Views: 1006.1ms | ActiveRecord: 15.0ms)
|
20126
|
+
|
20127
|
+
|
20128
|
+
Started GET "/assets/application-f651684b8bcb67b8780cdeb79a764512.css?body=1" for 127.0.0.1 at 2015-07-24 02:07:25 +0300
|
20129
|
+
|
20130
|
+
|
20131
|
+
Started GET "/assets/bootstrap/alert-d072f0c4c23eae61e338a15013d9d7c3.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:25 +0300
|
20132
|
+
|
20133
|
+
|
20134
|
+
Started GET "/assets/jquery2-b6a71c343bd8624834b3e7fa6beffa93.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:25 +0300
|
20135
|
+
|
20136
|
+
|
20137
|
+
Started GET "/assets/bootstrap/button-e4df0485a6e45da597cf03eb9e2bb798.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:25 +0300
|
20138
|
+
|
20139
|
+
|
20140
|
+
Started GET "/assets/jquery_ujs-a07db4513f124c8b2c609ff9b61d7a17.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:25 +0300
|
20141
|
+
|
20142
|
+
|
20143
|
+
Started GET "/assets/bootstrap/affix-21642124464da30e1fd4ac0ab0d5d7b7.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:25 +0300
|
20144
|
+
|
20145
|
+
|
20146
|
+
Started GET "/assets/bootstrap/carousel-590056a9387f4fda68a66ae7ff0eb7e4.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:25 +0300
|
20147
|
+
|
20148
|
+
|
20149
|
+
Started GET "/assets/bootstrap/collapse-4ca630e83a258ee32247a026441250ff.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:25 +0300
|
20150
|
+
|
20151
|
+
|
20152
|
+
Started GET "/assets/bootstrap/dropdown-0a9b720cc9208f070cc11759757358c1.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:25 +0300
|
20153
|
+
|
20154
|
+
|
20155
|
+
Started GET "/assets/bootstrap/tab-f269781e4faa37a11bcc0f4116886385.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:25 +0300
|
20156
|
+
|
20157
|
+
|
20158
|
+
Started GET "/assets/bootstrap/transition-02df678bda467d1824eca4ebf4c7ec00.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:25 +0300
|
20159
|
+
|
20160
|
+
|
20161
|
+
Started GET "/assets/bootstrap/scrollspy-147ccd96d5dc755e73ba970b75b92aee.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:25 +0300
|
20162
|
+
|
20163
|
+
|
20164
|
+
Started GET "/assets/bootstrap/modal-fdfe9c2d392da9c0fc3a3b3aa0466639.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:25 +0300
|
20165
|
+
|
20166
|
+
|
20167
|
+
Started GET "/assets/bootstrap/tooltip-8b2964950464c075489415e1d5235170.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:25 +0300
|
20168
|
+
|
20169
|
+
|
20170
|
+
Started GET "/assets/bootstrap/popover-2187660dacf5063d98777f848eabfa2b.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:25 +0300
|
20171
|
+
|
20172
|
+
|
20173
|
+
Started GET "/assets/bootstrap-sprockets-e36e10bcfbabd5af903af169c1bade1c.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:25 +0300
|
20174
|
+
|
20175
|
+
|
20176
|
+
Started GET "/assets/bootstrap3-typeahead.min-0ce198f661330b60afff39eebd8e0c49.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:25 +0300
|
20177
|
+
|
20178
|
+
|
20179
|
+
Started GET "/assets/bootstrap3-autocomplete-input.min-0d1eaadef3d4edf55034938c149e2ca6.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:25 +0300
|
20180
|
+
|
20181
|
+
|
20182
|
+
Started GET "/assets/application-fa8dd3416e69dda490debff7cc3e6061.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:25 +0300
|
20183
|
+
|
20184
|
+
|
20185
|
+
Started GET "/orders" for 127.0.0.1 at 2015-07-24 02:07:38 +0300
|
20186
|
+
Processing by OrdersController#index as HTML
|
20187
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/fields_simple_form/_text.html.haml (18.0ms)
|
20188
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_field_simple_form.html.haml (23.0ms)
|
20189
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_fields.html.haml (27.0ms)
|
20190
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_buttons_apply_clear.html.haml (0.0ms)
|
20191
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_buttons_apply_clear_inline.html.haml (4.0ms)
|
20192
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_form_inline.html.haml (43.0ms)
|
20193
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_form.html.haml (47.0ms)
|
20194
|
+
[1m[36mOrder Load (1.0ms)[0m [1mSELECT `orders`.* FROM `orders` WHERE `orders`.`client_id` IN (SELECT `clients`.`id` FROM `clients` WHERE `clients`.`city` = 'london') AND (1=1 ) ORDER BY id desc LIMIT 25 OFFSET 0[0m
|
20195
|
+
[1m[35mClient Load (1.0ms)[0m SELECT `clients`.* FROM `clients` WHERE `clients`.`id` IN (1)
|
20196
|
+
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM `orders` WHERE `orders`.`client_id` IN (SELECT `clients`.`id` FROM `clients` WHERE `clients`.`city` = 'london') AND (1=1 )[0m
|
20197
|
+
Rendered orders/index.html.haml within layouts/application (82.0ms)
|
20198
|
+
Completed 200 OK in 998ms (Views: 984.1ms | ActiveRecord: 3.0ms)
|
20199
|
+
|
20200
|
+
|
20201
|
+
Started GET "/assets/bootstrap/alert-d072f0c4c23eae61e338a15013d9d7c3.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:39 +0300
|
20202
|
+
|
20203
|
+
|
20204
|
+
Started GET "/assets/bootstrap/affix-21642124464da30e1fd4ac0ab0d5d7b7.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:39 +0300
|
20205
|
+
|
20206
|
+
|
20207
|
+
Started GET "/assets/jquery_ujs-a07db4513f124c8b2c609ff9b61d7a17.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:39 +0300
|
20208
|
+
|
20209
|
+
|
20210
|
+
Started GET "/assets/jquery2-b6a71c343bd8624834b3e7fa6beffa93.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:39 +0300
|
20211
|
+
|
20212
|
+
|
20213
|
+
Started GET "/assets/bootstrap/button-e4df0485a6e45da597cf03eb9e2bb798.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:39 +0300
|
20214
|
+
|
20215
|
+
|
20216
|
+
Started GET "/assets/application-f651684b8bcb67b8780cdeb79a764512.css?body=1" for 127.0.0.1 at 2015-07-24 02:07:39 +0300
|
20217
|
+
|
20218
|
+
|
20219
|
+
Started GET "/assets/bootstrap/carousel-590056a9387f4fda68a66ae7ff0eb7e4.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:39 +0300
|
20220
|
+
|
20221
|
+
|
20222
|
+
Started GET "/assets/bootstrap/collapse-4ca630e83a258ee32247a026441250ff.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:39 +0300
|
20223
|
+
|
20224
|
+
|
20225
|
+
Started GET "/assets/bootstrap/dropdown-0a9b720cc9208f070cc11759757358c1.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:39 +0300
|
20226
|
+
|
20227
|
+
|
20228
|
+
Started GET "/assets/bootstrap/tab-f269781e4faa37a11bcc0f4116886385.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:39 +0300
|
20229
|
+
|
20230
|
+
|
20231
|
+
Started GET "/assets/bootstrap/transition-02df678bda467d1824eca4ebf4c7ec00.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:39 +0300
|
20232
|
+
|
20233
|
+
|
20234
|
+
Started GET "/assets/bootstrap/scrollspy-147ccd96d5dc755e73ba970b75b92aee.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:39 +0300
|
20235
|
+
|
20236
|
+
|
20237
|
+
Started GET "/assets/bootstrap/modal-fdfe9c2d392da9c0fc3a3b3aa0466639.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:39 +0300
|
20238
|
+
|
20239
|
+
|
20240
|
+
Started GET "/assets/bootstrap/tooltip-8b2964950464c075489415e1d5235170.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:39 +0300
|
20241
|
+
|
20242
|
+
|
20243
|
+
Started GET "/assets/bootstrap/popover-2187660dacf5063d98777f848eabfa2b.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:39 +0300
|
20244
|
+
|
20245
|
+
|
20246
|
+
Started GET "/assets/bootstrap-sprockets-e36e10bcfbabd5af903af169c1bade1c.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:39 +0300
|
20247
|
+
|
20248
|
+
|
20249
|
+
Started GET "/assets/bootstrap3-typeahead.min-0ce198f661330b60afff39eebd8e0c49.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:39 +0300
|
20250
|
+
|
20251
|
+
|
20252
|
+
Started GET "/assets/bootstrap3-autocomplete-input.min-0d1eaadef3d4edf55034938c149e2ca6.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:39 +0300
|
20253
|
+
|
20254
|
+
|
20255
|
+
Started GET "/assets/application-fa8dd3416e69dda490debff7cc3e6061.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:39 +0300
|
20256
|
+
|
20257
|
+
|
20258
|
+
Started POST "/orders/search" for 127.0.0.1 at 2015-07-24 02:07:43 +0300
|
20259
|
+
Processing by OrdersController#search as HTML
|
20260
|
+
Parameters: {"utf8"=>"✓", "authenticity_token"=>"2IEBccg/qzfqDjk2RFF4bxKa/D0JmrMnHPkili4gb+BvRiXo6FjG2ItcEzpA8kHwpCXPCM5TP9wYonZ2bv2PIg==", "filter_cmd"=>"apply", "filter"=>{"city"=>"new york"}}
|
20261
|
+
Redirected to http://localhost:3000/orders
|
20262
|
+
Completed 302 Found in 14ms (ActiveRecord: 0.0ms)
|
20263
|
+
|
20264
|
+
|
20265
|
+
Started GET "/orders" for 127.0.0.1 at 2015-07-24 02:07:43 +0300
|
20266
|
+
Processing by OrdersController#index as HTML
|
20267
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/fields_simple_form/_text.html.haml (20.0ms)
|
20268
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_field_simple_form.html.haml (25.0ms)
|
20269
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_fields.html.haml (29.0ms)
|
20270
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_buttons_apply_clear.html.haml (0.0ms)
|
20271
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_buttons_apply_clear_inline.html.haml (5.0ms)
|
20272
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_form_inline.html.haml (45.0ms)
|
20273
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_form.html.haml (49.0ms)
|
20274
|
+
[1m[35mOrder Load (1.0ms)[0m SELECT `orders`.* FROM `orders` WHERE `orders`.`client_id` IN (SELECT `clients`.`id` FROM `clients` WHERE `clients`.`city` = 'new york') AND (1=1 ) ORDER BY id desc LIMIT 25 OFFSET 0
|
20275
|
+
[1m[36mClient Load (0.0ms)[0m [1mSELECT `clients`.* FROM `clients` WHERE `clients`.`id` IN (2)[0m
|
20276
|
+
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `orders` WHERE `orders`.`client_id` IN (SELECT `clients`.`id` FROM `clients` WHERE `clients`.`city` = 'new york') AND (1=1 )
|
20277
|
+
Rendered orders/index.html.haml within layouts/application (90.0ms)
|
20278
|
+
Completed 200 OK in 1028ms (Views: 1015.1ms | ActiveRecord: 2.0ms)
|
20279
|
+
|
20280
|
+
|
20281
|
+
Started GET "/assets/jquery2-b6a71c343bd8624834b3e7fa6beffa93.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:45 +0300
|
20282
|
+
|
20283
|
+
|
20284
|
+
Started GET "/assets/bootstrap/button-e4df0485a6e45da597cf03eb9e2bb798.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:45 +0300
|
20285
|
+
|
20286
|
+
|
20287
|
+
Started GET "/assets/jquery_ujs-a07db4513f124c8b2c609ff9b61d7a17.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:45 +0300
|
20288
|
+
|
20289
|
+
|
20290
|
+
Started GET "/assets/bootstrap/affix-21642124464da30e1fd4ac0ab0d5d7b7.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:45 +0300
|
20291
|
+
|
20292
|
+
|
20293
|
+
Started GET "/assets/bootstrap/alert-d072f0c4c23eae61e338a15013d9d7c3.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:45 +0300
|
20294
|
+
|
20295
|
+
|
20296
|
+
Started GET "/assets/application-f651684b8bcb67b8780cdeb79a764512.css?body=1" for 127.0.0.1 at 2015-07-24 02:07:45 +0300
|
20297
|
+
|
20298
|
+
|
20299
|
+
Started GET "/assets/bootstrap/carousel-590056a9387f4fda68a66ae7ff0eb7e4.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:45 +0300
|
20300
|
+
|
20301
|
+
|
20302
|
+
Started GET "/assets/bootstrap/collapse-4ca630e83a258ee32247a026441250ff.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:45 +0300
|
20303
|
+
|
20304
|
+
|
20305
|
+
Started GET "/assets/bootstrap/dropdown-0a9b720cc9208f070cc11759757358c1.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:45 +0300
|
20306
|
+
|
20307
|
+
|
20308
|
+
Started GET "/assets/bootstrap/tab-f269781e4faa37a11bcc0f4116886385.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:45 +0300
|
20309
|
+
|
20310
|
+
|
20311
|
+
Started GET "/assets/bootstrap/transition-02df678bda467d1824eca4ebf4c7ec00.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:45 +0300
|
20312
|
+
|
20313
|
+
|
20314
|
+
Started GET "/assets/bootstrap/scrollspy-147ccd96d5dc755e73ba970b75b92aee.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:45 +0300
|
20315
|
+
|
20316
|
+
|
20317
|
+
Started GET "/assets/bootstrap/modal-fdfe9c2d392da9c0fc3a3b3aa0466639.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:45 +0300
|
20318
|
+
|
20319
|
+
|
20320
|
+
Started GET "/assets/bootstrap/tooltip-8b2964950464c075489415e1d5235170.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:45 +0300
|
20321
|
+
|
20322
|
+
|
20323
|
+
Started GET "/assets/bootstrap/popover-2187660dacf5063d98777f848eabfa2b.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:45 +0300
|
20324
|
+
|
20325
|
+
|
20326
|
+
Started GET "/assets/bootstrap-sprockets-e36e10bcfbabd5af903af169c1bade1c.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:45 +0300
|
20327
|
+
|
20328
|
+
|
20329
|
+
Started GET "/assets/bootstrap3-typeahead.min-0ce198f661330b60afff39eebd8e0c49.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:45 +0300
|
20330
|
+
|
20331
|
+
|
20332
|
+
Started GET "/assets/application-fa8dd3416e69dda490debff7cc3e6061.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:45 +0300
|
20333
|
+
|
20334
|
+
|
20335
|
+
Started GET "/assets/bootstrap3-autocomplete-input.min-0d1eaadef3d4edf55034938c149e2ca6.js?body=1" for 127.0.0.1 at 2015-07-24 02:07:45 +0300
|
20336
|
+
|
20337
|
+
|
20338
|
+
Started GET "/orders" for 127.0.0.1 at 2015-07-24 02:17:19 +0300
|
20339
|
+
Processing by OrdersController#index as HTML
|
20340
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/fields_simple_form/_text.html.haml (19.0ms)
|
20341
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_field_simple_form.html.haml (23.0ms)
|
20342
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_fields.html.haml (27.0ms)
|
20343
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_buttons_apply_clear.html.haml (0.0ms)
|
20344
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_buttons_apply_clear_inline.html.haml (4.0ms)
|
20345
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_form_inline.html.haml (43.0ms)
|
20346
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_form.html.haml (47.0ms)
|
20347
|
+
[1m[36mOrder Load (1.0ms)[0m [1mSELECT `orders`.* FROM `orders` WHERE `orders`.`client_id` IN (SELECT `clients`.`id` FROM `clients` WHERE `clients`.`city` = 'new york') AND (1=1 ) ORDER BY id desc LIMIT 25 OFFSET 0[0m
|
20348
|
+
[1m[35mClient Load (0.0ms)[0m SELECT `clients`.* FROM `clients` WHERE `clients`.`id` IN (2)
|
20349
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM `orders` WHERE `orders`.`client_id` IN (SELECT `clients`.`id` FROM `clients` WHERE `clients`.`city` = 'new york') AND (1=1 )[0m
|
20350
|
+
Rendered orders/index.html.haml within layouts/application (102.0ms)
|
20351
|
+
Completed 200 OK in 1021ms (Views: 1007.1ms | ActiveRecord: 1.0ms)
|
20352
|
+
|
20353
|
+
|
20354
|
+
Started GET "/assets/jquery2-b6a71c343bd8624834b3e7fa6beffa93.js?body=1" for 127.0.0.1 at 2015-07-24 02:17:20 +0300
|
20355
|
+
|
20356
|
+
|
20357
|
+
Started GET "/assets/application-f651684b8bcb67b8780cdeb79a764512.css?body=1" for 127.0.0.1 at 2015-07-24 02:17:20 +0300
|
20358
|
+
|
20359
|
+
|
20360
|
+
Started GET "/assets/bootstrap/affix-21642124464da30e1fd4ac0ab0d5d7b7.js?body=1" for 127.0.0.1 at 2015-07-24 02:17:20 +0300
|
20361
|
+
|
20362
|
+
|
20363
|
+
Started GET "/assets/jquery_ujs-a07db4513f124c8b2c609ff9b61d7a17.js?body=1" for 127.0.0.1 at 2015-07-24 02:17:20 +0300
|
20364
|
+
|
20365
|
+
|
20366
|
+
Started GET "/assets/bootstrap/button-e4df0485a6e45da597cf03eb9e2bb798.js?body=1" for 127.0.0.1 at 2015-07-24 02:17:20 +0300
|
20367
|
+
|
20368
|
+
|
20369
|
+
Started GET "/assets/bootstrap/alert-d072f0c4c23eae61e338a15013d9d7c3.js?body=1" for 127.0.0.1 at 2015-07-24 02:17:20 +0300
|
20370
|
+
|
20371
|
+
|
20372
|
+
Started GET "/assets/bootstrap/carousel-590056a9387f4fda68a66ae7ff0eb7e4.js?body=1" for 127.0.0.1 at 2015-07-24 02:17:20 +0300
|
20373
|
+
|
20374
|
+
|
20375
|
+
Started GET "/assets/bootstrap/collapse-4ca630e83a258ee32247a026441250ff.js?body=1" for 127.0.0.1 at 2015-07-24 02:17:20 +0300
|
20376
|
+
|
20377
|
+
|
20378
|
+
Started GET "/assets/bootstrap/dropdown-0a9b720cc9208f070cc11759757358c1.js?body=1" for 127.0.0.1 at 2015-07-24 02:17:20 +0300
|
20379
|
+
|
20380
|
+
|
20381
|
+
Started GET "/assets/bootstrap/tab-f269781e4faa37a11bcc0f4116886385.js?body=1" for 127.0.0.1 at 2015-07-24 02:17:20 +0300
|
20382
|
+
|
20383
|
+
|
20384
|
+
Started GET "/assets/bootstrap/transition-02df678bda467d1824eca4ebf4c7ec00.js?body=1" for 127.0.0.1 at 2015-07-24 02:17:20 +0300
|
20385
|
+
|
20386
|
+
|
20387
|
+
Started GET "/assets/bootstrap/scrollspy-147ccd96d5dc755e73ba970b75b92aee.js?body=1" for 127.0.0.1 at 2015-07-24 02:17:20 +0300
|
20388
|
+
|
20389
|
+
|
20390
|
+
Started GET "/assets/bootstrap/modal-fdfe9c2d392da9c0fc3a3b3aa0466639.js?body=1" for 127.0.0.1 at 2015-07-24 02:17:20 +0300
|
20391
|
+
|
20392
|
+
|
20393
|
+
Started GET "/assets/bootstrap/tooltip-8b2964950464c075489415e1d5235170.js?body=1" for 127.0.0.1 at 2015-07-24 02:17:20 +0300
|
20394
|
+
|
20395
|
+
|
20396
|
+
Started GET "/assets/bootstrap/popover-2187660dacf5063d98777f848eabfa2b.js?body=1" for 127.0.0.1 at 2015-07-24 02:17:20 +0300
|
20397
|
+
|
20398
|
+
|
20399
|
+
Started GET "/assets/bootstrap-sprockets-e36e10bcfbabd5af903af169c1bade1c.js?body=1" for 127.0.0.1 at 2015-07-24 02:17:20 +0300
|
20400
|
+
|
20401
|
+
|
20402
|
+
Started GET "/assets/bootstrap3-typeahead.min-0ce198f661330b60afff39eebd8e0c49.js?body=1" for 127.0.0.1 at 2015-07-24 02:17:20 +0300
|
20403
|
+
|
20404
|
+
|
20405
|
+
Started GET "/assets/bootstrap3-autocomplete-input.min-0d1eaadef3d4edf55034938c149e2ca6.js?body=1" for 127.0.0.1 at 2015-07-24 02:17:20 +0300
|
20406
|
+
|
20407
|
+
|
20408
|
+
Started GET "/assets/application-fa8dd3416e69dda490debff7cc3e6061.js?body=1" for 127.0.0.1 at 2015-07-24 02:17:20 +0300
|
20409
|
+
|
20410
|
+
|
20411
|
+
Started POST "/orders/search" for 127.0.0.1 at 2015-07-24 02:19:00 +0300
|
20412
|
+
Processing by OrdersController#search as HTML
|
20413
|
+
Parameters: {"utf8"=>"✓", "authenticity_token"=>"kimBzGmjo+u04b/52tVSIx1WVTfQKy2CEZIA3uGAhFIl7qVVScTOBNWzlfXedmu8q+lmAhfioXkVyVQ+oV1kkA==", "filter_cmd"=>"apply", "filter"=>{"city"=>"london"}}
|
20414
|
+
Redirected to http://localhost:3000/orders
|
20415
|
+
Completed 302 Found in 9ms (ActiveRecord: 0.0ms)
|
20416
|
+
|
20417
|
+
|
20418
|
+
Started GET "/orders" for 127.0.0.1 at 2015-07-24 02:19:00 +0300
|
20419
|
+
Processing by OrdersController#index as HTML
|
20420
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/fields_simple_form/_text.html.haml (19.0ms)
|
20421
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_field_simple_form.html.haml (23.0ms)
|
20422
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_fields.html.haml (27.0ms)
|
20423
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_buttons_apply_clear.html.haml (0.0ms)
|
20424
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_buttons_apply_clear_inline.html.haml (4.0ms)
|
20425
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_form_inline.html.haml (43.0ms)
|
20426
|
+
Rendered W:/myrails/mygems/simple_search_filter/app/views/simple_search_filter/_form.html.haml (47.0ms)
|
20427
|
+
[1m[35mOrder Load (1.0ms)[0m SELECT `orders`.* FROM `orders` WHERE `orders`.`client_id` IN (SELECT `clients`.`id` FROM `clients` WHERE `clients`.`city` = 'london') AND (1=1 ) ORDER BY id desc LIMIT 25 OFFSET 0
|
20428
|
+
[1m[36mClient Load (0.0ms)[0m [1mSELECT `clients`.* FROM `clients` WHERE `clients`.`id` IN (1)[0m
|
20429
|
+
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM `orders` WHERE `orders`.`client_id` IN (SELECT `clients`.`id` FROM `clients` WHERE `clients`.`city` = 'london') AND (1=1 )
|
20430
|
+
Rendered orders/index.html.haml within layouts/application (89.0ms)
|
20431
|
+
Completed 200 OK in 989ms (Views: 976.1ms | ActiveRecord: 2.0ms)
|
20432
|
+
|
20433
|
+
|
20434
|
+
Started GET "/assets/jquery2-b6a71c343bd8624834b3e7fa6beffa93.js?body=1" for 127.0.0.1 at 2015-07-24 02:19:01 +0300
|
20435
|
+
|
20436
|
+
|
20437
|
+
Started GET "/assets/bootstrap/button-e4df0485a6e45da597cf03eb9e2bb798.js?body=1" for 127.0.0.1 at 2015-07-24 02:19:01 +0300
|
20438
|
+
|
20439
|
+
|
20440
|
+
Started GET "/assets/application-f651684b8bcb67b8780cdeb79a764512.css?body=1" for 127.0.0.1 at 2015-07-24 02:19:01 +0300
|
20441
|
+
|
20442
|
+
|
20443
|
+
Started GET "/assets/bootstrap/alert-d072f0c4c23eae61e338a15013d9d7c3.js?body=1" for 127.0.0.1 at 2015-07-24 02:19:01 +0300
|
20444
|
+
|
20445
|
+
|
20446
|
+
Started GET "/assets/bootstrap/carousel-590056a9387f4fda68a66ae7ff0eb7e4.js?body=1" for 127.0.0.1 at 2015-07-24 02:19:01 +0300
|
20447
|
+
|
20448
|
+
|
20449
|
+
Started GET "/assets/jquery_ujs-a07db4513f124c8b2c609ff9b61d7a17.js?body=1" for 127.0.0.1 at 2015-07-24 02:19:01 +0300
|
20450
|
+
|
20451
|
+
|
20452
|
+
Started GET "/assets/bootstrap/collapse-4ca630e83a258ee32247a026441250ff.js?body=1" for 127.0.0.1 at 2015-07-24 02:19:01 +0300
|
20453
|
+
|
20454
|
+
|
20455
|
+
Started GET "/assets/bootstrap/affix-21642124464da30e1fd4ac0ab0d5d7b7.js?body=1" for 127.0.0.1 at 2015-07-24 02:19:01 +0300
|
20456
|
+
|
20457
|
+
|
20458
|
+
Started GET "/assets/bootstrap/tab-f269781e4faa37a11bcc0f4116886385.js?body=1" for 127.0.0.1 at 2015-07-24 02:19:01 +0300
|
20459
|
+
|
20460
|
+
|
20461
|
+
Started GET "/assets/bootstrap/dropdown-0a9b720cc9208f070cc11759757358c1.js?body=1" for 127.0.0.1 at 2015-07-24 02:19:01 +0300
|
20462
|
+
|
20463
|
+
|
20464
|
+
Started GET "/assets/bootstrap/transition-02df678bda467d1824eca4ebf4c7ec00.js?body=1" for 127.0.0.1 at 2015-07-24 02:19:01 +0300
|
20465
|
+
|
20466
|
+
|
20467
|
+
Started GET "/assets/bootstrap/scrollspy-147ccd96d5dc755e73ba970b75b92aee.js?body=1" for 127.0.0.1 at 2015-07-24 02:19:01 +0300
|
20468
|
+
|
20469
|
+
|
20470
|
+
Started GET "/assets/bootstrap/modal-fdfe9c2d392da9c0fc3a3b3aa0466639.js?body=1" for 127.0.0.1 at 2015-07-24 02:19:01 +0300
|
20471
|
+
|
20472
|
+
|
20473
|
+
Started GET "/assets/bootstrap/tooltip-8b2964950464c075489415e1d5235170.js?body=1" for 127.0.0.1 at 2015-07-24 02:19:01 +0300
|
20474
|
+
|
20475
|
+
|
20476
|
+
Started GET "/assets/bootstrap/popover-2187660dacf5063d98777f848eabfa2b.js?body=1" for 127.0.0.1 at 2015-07-24 02:19:01 +0300
|
20477
|
+
|
20478
|
+
|
20479
|
+
Started GET "/assets/bootstrap-sprockets-e36e10bcfbabd5af903af169c1bade1c.js?body=1" for 127.0.0.1 at 2015-07-24 02:19:01 +0300
|
20480
|
+
|
20481
|
+
|
20482
|
+
Started GET "/assets/bootstrap3-typeahead.min-0ce198f661330b60afff39eebd8e0c49.js?body=1" for 127.0.0.1 at 2015-07-24 02:19:01 +0300
|
20483
|
+
|
20484
|
+
|
20485
|
+
Started GET "/assets/bootstrap3-autocomplete-input.min-0d1eaadef3d4edf55034938c149e2ca6.js?body=1" for 127.0.0.1 at 2015-07-24 02:19:01 +0300
|
20486
|
+
|
20487
|
+
|
20488
|
+
Started GET "/assets/application-fa8dd3416e69dda490debff7cc3e6061.js?body=1" for 127.0.0.1 at 2015-07-24 02:19:01 +0300
|
20489
|
+
|
20490
|
+
|
20491
|
+
Started GET "/" for 127.0.0.1 at 2015-11-09 11:39:41 +0200
|
20492
|
+
[1m[36mActiveRecord::SchemaMigration Load (73.0ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
20493
|
+
Processing by HomeController#index as HTML
|
20494
|
+
Rendered home/index.html.haml within layouts/application (35.0ms)
|
20495
|
+
Completed 200 OK in 1903ms (Views: 1901.1ms | ActiveRecord: 0.0ms)
|
20496
|
+
|
20497
|
+
|
20498
|
+
Started GET "/assets/jquery2-b6a71c343bd8624834b3e7fa6beffa93.js?body=1" for 127.0.0.1 at 2015-11-09 11:39:44 +0200
|
20499
|
+
|
20500
|
+
|
20501
|
+
Started GET "/assets/application-f651684b8bcb67b8780cdeb79a764512.css?body=1" for 127.0.0.1 at 2015-11-09 11:39:44 +0200
|
20502
|
+
|
20503
|
+
|
20504
|
+
Started GET "/assets/bootstrap/button-e4df0485a6e45da597cf03eb9e2bb798.js?body=1" for 127.0.0.1 at 2015-11-09 11:39:44 +0200
|
20505
|
+
|
20506
|
+
|
20507
|
+
Started GET "/assets/jquery_ujs-a07db4513f124c8b2c609ff9b61d7a17.js?body=1" for 127.0.0.1 at 2015-11-09 11:39:44 +0200
|
20508
|
+
|
20509
|
+
|
20510
|
+
Started GET "/assets/bootstrap/alert-d072f0c4c23eae61e338a15013d9d7c3.js?body=1" for 127.0.0.1 at 2015-11-09 11:39:44 +0200
|
20511
|
+
|
20512
|
+
|
20513
|
+
Started GET "/assets/bootstrap/affix-21642124464da30e1fd4ac0ab0d5d7b7.js?body=1" for 127.0.0.1 at 2015-11-09 11:39:44 +0200
|
20514
|
+
|
20515
|
+
|
20516
|
+
Started GET "/assets/bootstrap/carousel-590056a9387f4fda68a66ae7ff0eb7e4.js?body=1" for 127.0.0.1 at 2015-11-09 11:39:44 +0200
|
20517
|
+
|
20518
|
+
|
20519
|
+
Started GET "/assets/bootstrap/collapse-4ca630e83a258ee32247a026441250ff.js?body=1" for 127.0.0.1 at 2015-11-09 11:39:44 +0200
|
20520
|
+
|
20521
|
+
|
20522
|
+
Started GET "/assets/bootstrap/dropdown-0a9b720cc9208f070cc11759757358c1.js?body=1" for 127.0.0.1 at 2015-11-09 11:39:45 +0200
|
20523
|
+
|
20524
|
+
|
20525
|
+
Started GET "/assets/bootstrap/tab-f269781e4faa37a11bcc0f4116886385.js?body=1" for 127.0.0.1 at 2015-11-09 11:39:45 +0200
|
20526
|
+
|
20527
|
+
|
20528
|
+
Started GET "/assets/bootstrap/transition-02df678bda467d1824eca4ebf4c7ec00.js?body=1" for 127.0.0.1 at 2015-11-09 11:39:45 +0200
|
20529
|
+
|
20530
|
+
|
20531
|
+
Started GET "/assets/bootstrap/scrollspy-147ccd96d5dc755e73ba970b75b92aee.js?body=1" for 127.0.0.1 at 2015-11-09 11:39:45 +0200
|
20532
|
+
|
20533
|
+
|
20534
|
+
Started GET "/assets/bootstrap/modal-fdfe9c2d392da9c0fc3a3b3aa0466639.js?body=1" for 127.0.0.1 at 2015-11-09 11:39:45 +0200
|
20535
|
+
|
20536
|
+
|
20537
|
+
Started GET "/assets/bootstrap/tooltip-8b2964950464c075489415e1d5235170.js?body=1" for 127.0.0.1 at 2015-11-09 11:39:45 +0200
|
20538
|
+
|
20539
|
+
|
20540
|
+
Started GET "/assets/bootstrap/popover-2187660dacf5063d98777f848eabfa2b.js?body=1" for 127.0.0.1 at 2015-11-09 11:39:45 +0200
|
20541
|
+
|
20542
|
+
|
20543
|
+
Started GET "/assets/bootstrap-sprockets-e36e10bcfbabd5af903af169c1bade1c.js?body=1" for 127.0.0.1 at 2015-11-09 11:39:45 +0200
|
20544
|
+
|
20545
|
+
|
20546
|
+
Started GET "/assets/bootstrap3-typeahead.min-0ce198f661330b60afff39eebd8e0c49.js?body=1" for 127.0.0.1 at 2015-11-09 11:39:45 +0200
|
20547
|
+
|
20548
|
+
|
20549
|
+
Started GET "/assets/bootstrap3-autocomplete-input.min-0d1eaadef3d4edf55034938c149e2ca6.js?body=1" for 127.0.0.1 at 2015-11-09 11:39:45 +0200
|
20550
|
+
|
20551
|
+
|
20552
|
+
Started GET "/assets/application-fa8dd3416e69dda490debff7cc3e6061.js?body=1" for 127.0.0.1 at 2015-11-09 11:39:45 +0200
|