Hi,
On Wed, Feb 27, 2019, at 21:30, Don Bottles wrote:
> thanks @nanaya , i checked my gem list and found this;
>
> bundler (2.0.1, default: 1.17.2).
>
> any help??.
>
Check the last part of my previous message.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/bb69913e-a45b-484a-bac7-fc5522364e5e%40www.fastmail.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAJvOKtFf811jXv%3DXacY2zEJHXmgeKs2ADeeRcghaSda%3Dr-w3xw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Hi,
On Wed, Feb 27, 2019, at 21:30, Don Bottles wrote:
> thanks @nanaya , i checked my gem list and found this;
>
> bundler (2.0.1, default: 1.17.2).
>
> any help??.
>
Check the last part of my previous message.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/bb69913e-a45b-484a-bac7-fc5522364e5e%40www.fastmail.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAJvOKtF9P-dcZbHNoT7CV6r7cSYJ-TB6DcUwrBhD-e9XYUD-QA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Hi,
On Wed, Feb 27, 2019, at 21:30, Don Bottles wrote:
> thanks @nanaya , i checked my gem list and found this;
>
> bundler (2.0.1, default: 1.17.2).
>
> any help??.
>
Check the last part of my previous message.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/bb69913e-a45b-484a-bac7-fc5522364e5e%40www.fastmail.com.
For more options, visit https://groups.google.com/d/optout.
Hi,
On Wed, Feb 27, 2019, at 20:42, Don Bottles wrote:
> HELLO, PLEASE I NEED HELP
> VERSIONS:
> ruby 2.6.1p33 (2019-01-30 revision 66950) [x64-mingw32]
> RAILS 5.2.2
>
Please avoid writing in all caps.
>
> when i run Rails server, this is what i get ::
> "You must use Bundler 2 or greater with this lockfile."
> though my using Bundler version 2.0.1
>
Try
bundle --version
If you have 2.0.1 installed (check using `gem list`) but the command above returns 1.x, try
bundle _2.0.1_
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/8a552e5e-a846-4ac0-9c85-88a9e452d4de%40www.fastmail.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAJvOKtG1z2PkMgqdfC2k9nxZJRvYaW7PFbZP76PmCk4pK5wVyQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Hi,
On Wed, Feb 27, 2019, at 20:42, Don Bottles wrote:
> HELLO, PLEASE I NEED HELP
> VERSIONS:
> ruby 2.6.1p33 (2019-01-30 revision 66950) [x64-mingw32]
> RAILS 5.2.2
>
Please avoid writing in all caps.
>
> when i run Rails server, this is what i get ::
> "You must use Bundler 2 or greater with this lockfile."
> though my using Bundler version 2.0.1
>
Try
bundle --version
If you have 2.0.1 installed (check using `gem list`) but the command above returns 1.x, try
bundle _2.0.1_
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/8a552e5e-a846-4ac0-9c85-88a9e452d4de%40www.fastmail.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAJvOKtHUyz7wAyJGS0Nd3v-23ikGro7-mbqCWoBefzuje5LUMQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAJR%2B9kZutcZ3g9Y%3DwwMZ-1cn%2BzZpJt%3D%3DMGPHtt2AnzuUB83UEQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
New User Created here
2019-02-27T01:06:16.101419+00:00 app[web.1]: I, [2019-02-27T01:06:16.101310 #4] INFO -- : [0babc969-bf43-44e5-9fac-06b8d5d38540] Started GET "/users/sign_up" for 125.238.205.235 at 2019-02-27 01:06:16 +0000
2019-02-27T01:06:16.102497+00:00 app[web.1]: I, [2019-02-27T01:06:16.102428 #4] INFO -- : [0babc969-bf43-44e5-9fac-06b8d5d38540] Processing by Devise::RegistrationsController#new as HTML
2019-02-27T01:06:16.107503+00:00 app[web.1]: I, [2019-02-27T01:06:16.107410 #4] INFO -- : [0babc969-bf43-44e5-9fac-06b8d5d38540] Rendering devise/registrations/new.html.erb within layouts/application
2019-02-27T01:06:16.115779+00:00 app[web.1]: I, [2019-02-27T01:06:16.115680 #4] INFO -- : [0babc969-bf43-44e5-9fac-06b8d5d38540] Rendered devise/registrations/new.html.erb within layouts/application (8.1ms)
2019-02-27T01:06:16.119735+00:00 app[web.1]: I, [2019-02-27T01:06:16.119658 #4] INFO -- : [0babc969-bf43-44e5-9fac-06b8d5d38540] Rendered home/_header.html.erb (2.6ms)
2019-02-27T01:06:16.120188+00:00 app[web.1]: I, [2019-02-27T01:06:16.120116 #4] INFO -- : [0babc969-bf43-44e5-9fac-06b8d5d38540] Completed 200 OK in 18ms (Views: 16.1ms | ActiveRecord: 0.0ms)
2019-02-27T01:07:02.203764+00:00 app[web.1]: I, [2019-02-27T01:07:02.203488 #4] INFO -- : [026266ef-55cf-4c7d-8ae1-ee9dda3b46d6] Started POST "/users" for 125.238.205.235 at 2019-02-27 01:07:02 +0000
2019-02-27T01:07:02.209950+00:00 app[web.1]: I, [2019-02-27T01:07:02.209644 #4] INFO -- : [026266ef-55cf-4c7d-8ae1-ee9dda3b46d6] Processing by Devise::RegistrationsController#create as HTML
2019-02-27T01:07:02.210309+00:00 app[web.1]: I, [2019-02-27T01:07:02.210022 #4] INFO -- : [026266ef-55cf-4c7d-8ae1-ee9dda3b46d6] Parameters: {"utf8"=>"✓", "authenticity_token"=>"mPPYQxM68q5VHUt67onbloIp3MfPYIPWzrM4FBthHgUWMb4wWvkoOPSkokMg6vGmtQjpP0DfbJsZYLU5TpnI+w==", "user"=>{"name"=>"Mike Merrick", "email"=>"merrickdav@hotmail.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
2019-02-27T01:07:02.433662+00:00 app[web.1]: D, [2019-02-27T01:07:02.433483 #4] DEBUG -- : [026266ef-55cf-4c7d-8ae1-ee9dda3b46d6] [1m[35m (1.3ms)[0m [1m[35mBEGIN[0m
2019-02-27T01:07:02.438653+00:00 app[web.1]: D, [2019-02-27T01:07:02.438558 #4] DEBUG -- : [026266ef-55cf-4c7d-8ae1-ee9dda3b46d6] [1m[36mUser Exists (2.3ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2[0m [["email", "merrickdav@hotmail.com"], ["LIMIT", 1]]
2019-02-27T01:07:02.442130+00:00 app[web.1]: D, [2019-02-27T01:07:02.442050 #4] DEBUG -- : [026266ef-55cf-4c7d-8ae1-ee9dda3b46d6] [1m[35mSQL (1.6ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "name") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["email", "merrickdav@hotmail.com"], ["encrypted_password", "$2a$11$/hTEqRBWc5SM6k.S38uMiub6X0d7zDs1OZJyDy68aWj0SyuwmTJZK"], ["created_at", "2019-02-27 01:07:02.439070"], ["updated_at", "2019-02-27 01:07:02.439070"], ["name", "Mike Merrick"]]
2019-02-27T01:07:02.444910+00:00 app[web.1]: D, [2019-02-27T01:07:02.444840 #4] DEBUG -- : [026266ef-55cf-4c7d-8ae1-ee9dda3b46d6] [1m[35m (2.1ms)[0m [1m[35mCOMMIT[0m
2019-02-27T01:07:02.453093+00:00 app[web.1]: I, [2019-02-27T01:07:02.453002 #4] INFO -- : [026266ef-55cf-4c7d-8ae1-ee9dda3b46d6] Redirected to https://pininterestdave.herokuapp.com/
2019-02-27T01:07:02.453360+00:00 app[web.1]: I, [2019-02-27T01:07:02.453294 #4] INFO -- : [026266ef-55cf-4c7d-8ae1-ee9dda3b46d6] Completed 302 Found in 243ms (ActiveRecord: 7.3ms)
2019-02-27T01:07:02.454982+00:00 heroku[router]: at=info method=POST path="/users" host=pininterestdave.herokuapp.com request_id=026266ef-55cf-4c7d-8ae1-ee9dda3b46d6 fwd="125.238.205.235" dyno=web.1 connect=0ms service=260ms status=302 bytes=1084 protocol=https
2019-02-27T01:07:02.773457+00:00 heroku[router]: at=info method=GET path="/" host=pininterestdave.herokuapp.com request_id=ede6a0e9-5ea5-41f7-b59d-6623382c93de fwd="125.238.205.235" dyno=web.1 connect=0ms service=95ms status=200 bytes=5889 protocol=https
2019-02-27T01:07:02.685600+00:00 app[web.1]: I, [2019-02-27T01:07:02.685507 #4] INFO -- : [ede6a0e9-5ea5-41f7-b59d-6623382c93de] Started GET "/" for 125.238.205.235 at 2019-02-27 01:07:02 +0000
2019-02-27T01:07:02.687346+00:00 app[web.1]: I, [2019-02-27T01:07:02.687219 #4] INFO -- : [ede6a0e9-5ea5-41f7-b59d-6623382c93de] Processing by PinsController#index as HTML
2019-02-27T01:07:02.691176+00:00 app[web.1]: I, [2019-02-27T01:07:02.691081 #4] INFO -- : [ede6a0e9-5ea5-41f7-b59d-6623382c93de] Rendering pins/index.html.erb within layouts/application
2019-02-27T01:07:02.701178+00:00 app[web.1]: D, [2019-02-27T01:07:02.701058 #4] DEBUG -- : [ede6a0e9-5ea5-41f7-b59d-6623382c93de] [1m[36mUser Load (4.9ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["id", 11], ["LIMIT", 1]]
2019-02-27T01:07:02.704328+00:00 app[web.1]: D, [2019-02-27T01:07:02.704196 #4] DEBUG -- : [ede6a0e9-5ea5-41f7-b59d-6623382c93de] [1m[35m (1.6ms)[0m [1m[34mSELECT COUNT(*) FROM "pins"[0m
2019-02-27T01:07:02.706815+00:00 app[web.1]: D, [2019-02-27T01:07:02.706704 #4] DEBUG -- : [ede6a0e9-5ea5-41f7-b59d-6623382c93de] [1m[36mPin Load (1.5ms)[0m [1m[34mSELECT "pins".* FROM "pins" ORDER BY created_at DESC LIMIT $1 OFFSET $2[0m [["LIMIT", 10], ["OFFSET", 0]]
2019-02-27T01:07:02.714930+00:00 app[web.1]: D, [2019-02-27T01:07:02.714821 #4] DEBUG -- : [ede6a0e9-5ea5-41f7-b59d-6623382c93de] [1m[36mUser Load (1.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
2019-02-27T01:07:02.730184+00:00 app[web.1]: D, [2019-02-27T01:07:02.729870 #4] DEBUG -- : [ede6a0e9-5ea5-41f7-b59d-6623382c93de] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
2019-02-27T01:07:02.735282+00:00 app[web.1]: D, [2019-02-27T01:07:02.734887 #4] DEBUG -- : [ede6a0e9-5ea5-41f7-b59d-6623382c93de] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
2019-02-27T01:07:02.741795+00:00 app[web.1]: D, [2019-02-27T01:07:02.741466 #4] DEBUG -- : [ede6a0e9-5ea5-41f7-b59d-6623382c93de] [1m[36mCACHE User Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
2019-02-27T01:07:02.748437+00:00 app[web.1]: D, [2019-02-27T01:07:02.748320 #4] DEBUG -- : [ede6a0e9-5ea5-41f7-b59d-6623382c93de] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
2019-02-27T01:07:02.760972+00:00 app[web.1]: D, [2019-02-27T01:07:02.757823 #4] DEBUG -- : [ede6a0e9-5ea5-41f7-b59d-6623382c93de] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
2019-02-27T01:07:02.760976+00:00 app[web.1]: D, [2019-02-27T01:07:02.760298 #4] DEBUG -- : [ede6a0e9-5ea5-41f7-b59d-6623382c93de] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
2019-02-27T01:07:02.762746+00:00 app[web.1]: D, [2019-02-27T01:07:02.762654 #4] DEBUG -- : [ede6a0e9-5ea5-41f7-b59d-6623382c93de] [1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
2019-02-27T01:07:02.763171+00:00 app[web.1]: I, [2019-02-27T01:07:02.763093 #4] INFO -- : [ede6a0e9-5ea5-41f7-b59d-6623382c93de] Rendered pins/index.html.erb within layouts/application (71.8ms)
2019-02-27T01:07:02.770614+00:00 app[web.1]: I, [2019-02-27T01:07:02.770437 #4] INFO -- : [ede6a0e9-5ea5-41f7-b59d-6623382c93de] Rendered home/_header.html.erb (1.7ms)
2019-02-27T01:07:02.771339+00:00 app[web.1]: I, [2019-02-27T01:07:02.771266 #4] INFO -- : [ede6a0e9-5ea5-41f7-b59d-6623382c93de] Completed 200 OK in 84ms (Views: 72.4ms | ActiveRecord: 9.9ms)
2019-02-27T01:07:03.104912+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=pininterestdave.herokuapp.com request_id=9537dc2a-dfba-4a81-a930-49e04363740d fwd="125.238.205.235" dyno=web.1 connect=0ms service=6ms status=304 bytes=48 protocol=https
2019-02-27T00:17:09.431478+00:00 app[web.1]: I, [2019-02-27T00:17:09.431412 #4] INFO -- : [2f126671-a5c5-416e-addd-621a1ee15c45] Rendered home/_header.html.erb (0.6ms)
2019-02-27T00:17:09.431901+00:00 app[web.1]: I, [2019-02-27T00:17:09.431837 #4] INFO -- : [2f126671-a5c5-416e-addd-621a1ee15c45] Completed 200 OK in 15ms (Views: 12.9ms | ActiveRecord: 0.0ms)
2019-02-27T00:17:35.840573+00:00 heroku[router]: at=info method=GET path="/users/password/new" host=pininterestdave.herokuapp.com request_id=7e71e14a-f8bb-45e4-9f48-d2d4c28c2c6c fwd="125.238.205.235" dyno=web.1 connect=1ms service=19ms status=200 bytes=3412 protocol=https
2019-02-27T00:17:35.822824+00:00 app[web.1]: I, [2019-02-27T00:17:35.822709 #4] INFO -- : [7e71e14a-f8bb-45e4-9f48-d2d4c28c2c6c] Started GET "/users/password/new" for 125.238.205.235 at 2019-02-27 00:17:35 +0000
2019-02-27T00:17:35.824909+00:00 app[web.1]: I, [2019-02-27T00:17:35.824832 #4] INFO -- : [7e71e14a-f8bb-45e4-9f48-d2d4c28c2c6c] Processing by Devise::PasswordsController#new as HTML
2019-02-27T00:17:35.828744+00:00 app[web.1]: I, [2019-02-27T00:17:35.828649 #4] INFO -- : [7e71e14a-f8bb-45e4-9f48-d2d4c28c2c6c] Rendering devise/passwords/new.html.erb within layouts/application
2019-02-27T00:17:35.832415+00:00 app[web.1]: I, [2019-02-27T00:17:35.832318 #4] INFO -- : [7e71e14a-f8bb-45e4-9f48-d2d4c28c2c6c] Rendered devise/shared/_links.html.erb (0.6ms)
2019-02-27T00:17:35.832558+00:00 app[web.1]: I, [2019-02-27T00:17:35.832487 #4] INFO -- : [7e71e14a-f8bb-45e4-9f48-d2d4c28c2c6c] Rendered devise/passwords/new.html.erb within layouts/application (3.7ms)
2019-02-27T00:17:35.834428+00:00 app[web.1]: I, [2019-02-27T00:17:35.834354 #4] INFO -- : [7e71e14a-f8bb-45e4-9f48-d2d4c28c2c6c] Rendered home/_header.html.erb (0.7ms)
2019-02-27T00:17:35.834966+00:00 app[web.1]: I, [2019-02-27T00:17:35.834892 #4] INFO -- : [7e71e14a-f8bb-45e4-9f48-d2d4c28c2c6c] Completed 200 OK in 10ms (Views: 7.7ms | ActiveRecord: 0.0ms)
2019-02-27T00:18:59.389835+00:00 app[web.1]: I, [2019-02-27T00:18:59.389721 #4] INFO -- : [729d88f3-bd1e-467f-a389-d6d870940d8c] Started POST "/users/password" for 125.238.205.235 at 2019-02-27 00:18:59 +0000
2019-02-27T00:18:59.390738+00:00 app[web.1]: I, [2019-02-27T00:18:59.390679 #4] INFO -- : [729d88f3-bd1e-467f-a389-d6d870940d8c] Processing by Devise::PasswordsController#create as HTML
2019-02-27T00:18:59.390802+00:00 app[web.1]: I, [2019-02-27T00:18:59.390753 #4] INFO -- : [729d88f3-bd1e-467f-a389-d6d870940d8c] Parameters: {"utf8"=>"✓", "authenticity_token"=>"OrWOqZ+P9jKtwDur/+oWCUFDtGX6hyqlr4KWAN2gX+qzZtRAPOH2roD70gL5BFokr7x1M4/RCMsdDEXf8DtJpQ==", "user"=>{"email"=>"merrickdav@hotmail.com"}, "commit"=>"Send me reset password instructions"}
2019-02-27T00:18:59.396319+00:00 app[web.1]: D, [2019-02-27T00:18:59.396242 #4] DEBUG -- : [729d88f3-bd1e-467f-a389-d6d870940d8c] [1m[36mUser Load (1.9ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["email", "merrickdav@hotmail.com"], ["LIMIT", 1]]
2019-02-27T00:18:59.590953+00:00 app[web.1]: D, [2019-02-27T00:18:59.590839 #4] DEBUG -- : [729d88f3-bd1e-467f-a389-d6d870940d8c] [1m[36mUser Load (1.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."reset_password_token" = $1 ORDER BY "users"."id" ASC LIMIT $2[0m [["reset_password_token", "03928fe49361390b9babbab2a61cb84b839f2537cd6072df69adb8c34cf5bf71"], ["LIMIT", 1]]
2019-02-27T00:18:59.592305+00:00 app[web.1]: D, [2019-02-27T00:18:59.592248 #4] DEBUG -- : [729d88f3-bd1e-467f-a389-d6d870940d8c] [1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
2019-02-27T00:18:59.594769+00:00 app[web.1]: D, [2019-02-27T00:18:59.594701 #4] DEBUG -- : [729d88f3-bd1e-467f-a389-d6d870940d8c] [1m[35mSQL (1.1ms)[0m [1m[33mUPDATE "users" SET "reset_password_token" = $1, "reset_password_sent_at" = $2, "updated_at" = $3 WHERE "users"."id" = $4[0m [["reset_password_token", "03928fe49361390b9babbab2a61cb84b839f2537cd6072df69adb8c34cf5bf71"], ["reset_password_sent_at", "2019-02-27 00:18:59.591084"], ["updated_at", "2019-02-27 00:18:59.592555"], ["id", 6]]
2019-02-27T00:18:59.597029+00:00 app[web.1]: D, [2019-02-27T00:18:59.596963 #4] DEBUG -- : [729d88f3-bd1e-467f-a389-d6d870940d8c] [1m[35m
(1.8ms)[0m [1m[35mCOMMIT[0m
2019-02-27T00:18:59.605273+00:00 app[web.1]: I, [2019-02-27T00:18:59.605189 #4] INFO -- : [729d88f3-bd1e-467f-a389-d6d870940d8c] Rendering devise/mailer/reset_password_instructions.html.erb
2019-02-27T00:18:59.606659+00:00 app[web.1]: I, [2019-02-27T00:18:59.606586 #4] INFO -- : [729d88f3-bd1e-467f-a389-d6d870940d8c] Rendered devise/mailer/reset_password_instructions.html.erb (1.2ms)
2019-02-27T00:18:59.805849+00:00 app[web.1]: D, [2019-02-27T00:18:59.805742 #4] DEBUG -- : [729d88f3-bd1e-467f-a389-d6d870940d8c] Devise::Mailer#reset_password_instructions: processed outbound mail in 207.9ms
2019-02-27T00:19:00.860310+00:00 heroku[router]: at=info method=POST path="/users/password" host=pininterestdave.herokuapp.com request_id=729d88f3-bd1e-467f-a389-d6d870940d8c fwd="125.238.205.235" dyno=web.1 connect=1ms service=1480ms status=302 bytes=1090 protocol=https
2019-02-27T00:19:00.856072+00:00 app[web.1]: I, [2019-02-27T00:19:00.855959 #4] INFO -- : [729d88f3-bd1e-467f-a389-d6d870940d8c] Sent mail to merrickdav@hotmail.com (1050.0ms)
2019-02-27T00:19:00.856112+00:00 app[web.1]: D, [2019-02-27T00:19:00.856060 #4] DEBUG -- : [729d88f3-bd1e-467f-a389-d6d870940d8c] Date: Wed, 27 Feb 2019 0:18:59 +0000
2019-02-27T00:19:00.856115+00:00 app[web.1]: From: please-change-me-at-config-initializers-devise@example.com
2019-02-27T00:19:00.856117+00:00 app[web.1]: Reply-To: please-change-me-at-config-initializers-devise@example.com
2019-02-27T00:19:00.856119+00:00 app[web.1]: To: merrickdav@hotmail.com
2019-02-27T00:19:00.856121+00:00 app[web.1]: Message-ID: <5c75d773c64c4_42ae141661fc8204e0@eb88763c-109c-4793-aaec-68d9ac1c59bc.mail>
2019-02-27T00:19:00.856123+00:00 app[web.1]: Subject: Reset password instructions
2019-02-27T00:19:00.856125+00:00 app[web.1]: Mime-Version: 1.0
2019-02-27T00:19:00.856126+00:00 app[web.1]: Content-Type: text/html;
2019-02-27T00:19:00.856128+00:00 app[web.1]: charset=UTF-8
2019-02-27T00:19:00.856129+00:00 app[web.1]: Content-Transfer-Encoding: 7bit
2019-02-27T00:19:00.856130+00:00 app[web.1]:
2019-02-27T00:19:00.856132+00:00 app[web.1]: <p>Hello merrickdav@hotmail.com!</p>
2019-02-27T00:19:00.856133+00:00 app[web.1]:
2019-02-27T00:19:00.856134+00:00 app[web.1]: <p>Someone has requested a link to change your password. You can do this through the link below.</p>
2019-02-27T00:19:00.856135+00:00 app[web.1]:
2019-02-27T00:19:00.856136+00:00 app[web.1]: <p><a href="https://pininterestdave.herokuapp.com///users/password/edit?reset_password_token=fj52vx1TvoQgPLk43SnL">Change my password</a></p>
2019-02-27T00:19:00.856137+00:00 app[web.1]:
2019-02-27T00:19:00.856139+00:00 app[web.1]: <p>If you didn't request this, please ignore this email.</p>
2019-02-27T00:19:00.856140+00:00 app[web.1]: <p>Your password won't change until you access the link above and create a new one.</p>
2019-02-27T00:19:00.856141+00:00 app[web.1]:
2019-02-27T00:19:00.858911+00:00 app[web.1]: I, [2019-02-27T00:19:00.858854 #4] INFO -- : [729d88f3-bd1e-467f-a389-d6d870940d8c] Redirected to https://pininterestdave.herokuapp.com/users/sign_in
2019-02-27T00:19:00.859119+00:00 app[web.1]: I, [2019-02-27T00:19:00.859066 #4] INFO -- : [729d88f3-bd1e-467f-a389-d6d870940d8c] Completed 302 Found in 1468ms (ActiveRecord: 7.0ms)
2019-02-27T00:19:01.081708+00:00 app[web.1]: I, [2019-02-27T00:19:01.081617 #4] INFO -- : [7cb27230-f9c8-4f6c-9efb-398bc50cdc35] Started GET "/users/sign_in" for 125.238.205.235 at 2019-02-27 00:19:01 +0000
2019-02-27T00:19:01.082619+00:00 app[web.1]: I, [2019-02-27T00:19:01.082558 #4] INFO -- : [7cb27230-f9c8-4f6c-9efb-398bc50cdc35] Processing by Devise::SessionsController#new as HTML
2019-02-27T00:19:01.084387+00:00 app[web.1]: I, [2019-02-27T00:19:01.084324 #4] INFO -- : [7cb27230-f9c8-4f6c-9efb-398bc50cdc35] Rendering devise/sessions/new.html.erb within layouts/application
2019-02-27T00:19:01.086977+00:00 app[web.1]: I, [2019-02-27T00:19:01.086916 #4] INFO -- : [7cb27230-f9c8-4f6c-9efb-398bc50cdc35] Rendered devise/shared/_links.html.erb (0.3ms)
2019-02-27T00:19:01.087077+00:00 app[web.1]: I, [2019-02-27T00:19:01.087014 #4] INFO -- : [7cb27230-f9c8-4f6c-9efb-398bc50cdc35] Rendered devise/sessions/new.html.erb within layouts/application (2.6ms)
2019-02-27T00:19:01.088571+00:00 app[web.1]: I, [2019-02-27T00:19:01.088511 #4] INFO -- : [7cb27230-f9c8-4f6c-9efb-398bc50cdc35] Rendered home/_header.html.erb (0.5ms)
2019-02-27T00:19:01.089414+00:00 app[web.1]: I, [2019-02-27T00:19:01.089353 #4] INFO -- : [7cb27230-f9c8-4f6c-9efb-398bc50cdc35] Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.0ms)
2019-02-27T00:19:01.090775+00:00 heroku[router]: at=info method=GET path="/users/sign_in" host=pininterestdave.herokuapp.com request_id=7cb27230-f9c8-4f6c-9efb-398bc50cdc35 fwd="125.238.205.235" dyno=web.1 connect=1ms service=11ms status=200 bytes=4142 protocol=https
On Tue, 26 Feb 2019 at 03:32, David Merrick <merrickdav@gmail.com> wrote:
>
> I don't see any errors in the logs. No errors are displayed sorry
Well what *do* you see in the logs when you click the link. Comparing
it with the one that does work might give you a clue.
Colin
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLuwV46e%3DVvWcKfC9wA3UTbuxp6zduQ4UfqCEUFxaN%2BcGA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Cell 027 3089 169
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKbhxBZtsdWTAXWPXqYHhadEeV54LzxHY_TPaNKkj9OOog%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAKxHnE1QHDF5ag4mGgxk6X_9xO_6bWbxrWVdqXHRGdTGzK5U7g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
On Tue, 26 Feb 2019 at 03:32, David Merrick <merrickdav@gmail.com> wrote:
>
> I don't see any errors in the logs. No errors are displayed sorry
Well what *do* you see in the logs when you click the link. Comparing
it with the one that does work might give you a clue.
Colin
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLuwV46e%3DVvWcKfC9wA3UTbuxp6zduQ4UfqCEUFxaN%2BcGA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Cell 027 3089 169
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKZpquiqPJ_Fs68reFbeWkUj2Xrw4aPtDx%2Bx%3Dqtu3WsBrA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
On Tue, 26 Feb 2019 at 03:32, David Merrick <merrickdav@gmail.com> wrote:
>
> I don't see any errors in the logs. No errors are displayed sorry
Well what *do* you see in the logs when you click the link. Comparing
it with the one that does work might give you a clue.
Colin
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLuwV46e%3DVvWcKfC9wA3UTbuxp6zduQ4UfqCEUFxaN%2BcGA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
What do the errors look like? When you say it doesn't work, what exactly are you seeing?
Walter
> On Feb 25, 2019, at 4:56 PM, David Merrick <merrickdav@gmail.com> wrote:
>
> Hi Rob at the moment only the password reset email works. Are you able to check them please?
>
> Password reset
>
> <p>Hello <%= @resource.email %>!</p>
>
> <p>Someone has requested a link to change your password. You can do this through the link below.</p>
>
> <p><%= link_to 'Change my password', edit_password_url(@resource, reset_password_token: @token) %></p>
>
> <p>If you didn't request this, please ignore this email.</p>
> <p>Your password won't change until you access the link above and create a new one.</p>
>
> Confirmations dosen't
>
> <p>Welcome <%= @email %>!</p>
>
> <p>You can confirm your account email through the link below:</p>
>
> <p><%= link_to 'Confirm my account', confirmation_url(@resource, confirmation_token: @token) %></p>
>
> Email changed doesn't
>
> <p>Hello <%= @email %>!</p>
>
> <% if @resource.try(:unconfirmed_email?) %>
> <p>We're contacting you to notify you that your email is being changed to <%= @resource.unconfirmed_email %>.</p>
> <% else %>
> <p>We're contacting you to notify you that your email has been changed to <%= @resource.email %>.</p>
> <% end %>
>
> Cheers Dave
>
> On Tue, Feb 26, 2019 at 10:40 AM Rob Jonson <rob.jonson@gmail.com> wrote:
> What problem are you having?
> I have always found it worked pretty much out of the box (assuming you have set up your mail config)
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/8481c189-06b0-4068-8716-587518893cd0%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> Dave Merrick
>
> Daves Web Designs
>
> Website http://www.daveswebdesigns.co.nz
>
> Email merrickdav@gmail.com
>
> Ph 03 216 2053
>
> Cell 027 3089 169
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKaCp1hGMDa_pz__x7aUiu3H7VMZjmcwHdZMdUMgKeMeqw%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/F330F48E-3A1D-4DF4-8AB3-CC69BD4F843D%40wdstudio.com.
For more options, visit https://groups.google.com/d/optout.
Cell 027 3089 169
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKZAzhfHx5BPUTU1ihDmtAyK1e3Zv7VBB5RpxvvDCmamsQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Multiple Remote Ruby On Rails long term opportunites (Urgent)--
Job Description
---------------
Required technologies:
3+ years of experience in Ruby On Rails, Java
scripting, Mysql/Mongo
experience working in REST Services using Ruby On
Rails.
Angular experience is a must have.
Technology stack: Angular, Nodejs, JSON web token,
cucumber or mockito unit testing, docker services, AWS
cloud, CI/CD, Github, branching and tagging.
David Brainard
716.817.6710
david@eminenttech.com
Eminent Technology Solutions, Inc.
www.eminenttech.com
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/7bed327e-4827-4827-9d4c-27b6aff44bc2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACwTLPuCY3xXS_NTnu9RHhMcoEWzexPhAeh3ww6qf8A2v8gw-w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
What do the errors look like? When you say it doesn't work, what exactly are you seeing?
Walter
> On Feb 25, 2019, at 4:56 PM, David Merrick <merrickdav@gmail.com> wrote:
>
> Hi Rob at the moment only the password reset email works. Are you able to check them please?
>
> Password reset
>
> <p>Hello <%= @resource.email %>!</p>
>
> <p>Someone has requested a link to change your password. You can do this through the link below.</p>
>
> <p><%= link_to 'Change my password', edit_password_url(@resource, reset_password_token: @token) %></p>
>
> <p>If you didn't request this, please ignore this email.</p>
> <p>Your password won't change until you access the link above and create a new one.</p>
>
> Confirmations dosen't
>
> <p>Welcome <%= @email %>!</p>
>
> <p>You can confirm your account email through the link below:</p>
>
> <p><%= link_to 'Confirm my account', confirmation_url(@resource, confirmation_token: @token) %></p>
>
> Email changed doesn't
>
> <p>Hello <%= @email %>!</p>
>
> <% if @resource.try(:unconfirmed_email?) %>
> <p>We're contacting you to notify you that your email is being changed to <%= @resource.unconfirmed_email %>.</p>
> <% else %>
> <p>We're contacting you to notify you that your email has been changed to <%= @resource.email %>.</p>
> <% end %>
>
> Cheers Dave
>
> On Tue, Feb 26, 2019 at 10:40 AM Rob Jonson <rob.jonson@gmail.com> wrote:
> What problem are you having?
> I have always found it worked pretty much out of the box (assuming you have set up your mail config)
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/8481c189-06b0-4068-8716-587518893cd0%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> Dave Merrick
>
> Daves Web Designs
>
> Website http://www.daveswebdesigns.co.nz
>
> Email merrickdav@gmail.com
>
> Ph 03 216 2053
>
> Cell 027 3089 169
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKaCp1hGMDa_pz__x7aUiu3H7VMZjmcwHdZMdUMgKeMeqw%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/F330F48E-3A1D-4DF4-8AB3-CC69BD4F843D%40wdstudio.com.
For more options, visit https://groups.google.com/d/optout.
What problem are you having?
I have always found it worked pretty much out of the box (assuming you have set up your mail config)
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/8481c189-06b0-4068-8716-587518893cd0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Cell 027 3089 169
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKaCp1hGMDa_pz__x7aUiu3H7VMZjmcwHdZMdUMgKeMeqw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
What problem are you having?
I have always found it worked pretty much out of the box (assuming you have set up your mail config)
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/8481c189-06b0-4068-8716-587518893cd0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Job Description
---------------
Required technologies:
3+ years of experience in Ruby On Rails, Java
scripting, Mysql/Mongo
experience working in REST Services using Ruby On
Rails.
Angular experience is a must have.
Technology stack: Angular, Nodejs, JSON web token,
cucumber or mockito unit testing, docker services, AWS
cloud, CI/CD, Github, branching and tagging.
David Brainard
716.817.6710
david@eminenttech.com
Eminent Technology Solutions, Inc.
www.eminenttech.com
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/7bed327e-4827-4827-9d4c-27b6aff44bc2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Does anyone know how to do this with Rails 5.2.2?
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAP%2BbYWAXydX%2BsuVpMYJ20twCHpX3rWHHQrfKt2ZBcjEoS6u1Qw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/caa5e8b4-1e80-4ab1-9855-a7c72e1131df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thank you for replying to the query with detailed explanation. This is what I wanted to do in my code but the code was not clear but you tried to understand my issue and provided the solution so thanks for that. I was not aware with the combination method before.
On Saturday, February 23, 2019 at 2:40:53 AM UTC+5:30, Marco Antonio Almeida wrote:
Hi Sapna,This is a fun exercise to do and also to do some refactoring after I got to understand what you are aiming to do.First of all, your code is not optimal yet. Let's look at the output of the example you gave:{"1"=>"( true ) || ( false ) || ( true )", "2"=>"( true && false ) || ( true && true ) || ( false && true ) || ( false && true ) || ( true && true ) || ( true && false )", "3"=>"( true && false && true ) || ( true && true && false ) || ( false && true && true ) || ( false && true && true ) || ( true && true && false ) || ( true && false && true )"}The combination of 2 and 3 have duplicated information. For example: (true && false && true) are the same as (true && true && false). I have provided a solution for what I understood from your problem below with some comments.I am considering that you need to solve this in one method, otherwise, I would split in many different methods to make the code more clear. I am also being very cheeky here to introduce many features of the language that would make your life easier and your code much more understandable.I hope this helps.# Evaluate the combinations of conditions.## step_conditions_labels - The Array of conditions.## Examples## conditions_combination(%w[true false true])# # => {1=>true, 2=>true, 3=>false}## conditions_combination(%w[true false true false true])# # => {1=>true, 2=>true, 3=>true, 4=>false, 5=>false}## Returns a hash of the evaluation of respective combinations.def conditions_combination(step_conditions_labels) # Reduce the Array to the result Hash.step_conditions_labels.each_with_index.reduce({}) do |hash, (_, index)| # Update each of the Hash keys with the evalutation of the combination.hash.update(index + 1 =># Eval is the way to go here as Tales mentioned, but it's a very# dangerous method. Be careful!eval(# Array#combination is what does the trick for you. Check it out:# The other lines just help on building the condition String.step_conditions_labels.combination(index + 1).map { |combination| "(#{combination.join(' && ')})" }.join(' || ')))endendconditions_combination(%w[true false true])Best regards,/ MarcoOn Fri, Feb 22, 2019 at 6:56 PM Hassan Schroeder <hassan.s...@gmail.com> wrote:On Fri, Feb 22, 2019 at 4:36 AM Sapna Mishra <sapna....@gmail.com> wrote:
> Issue is now I am not able use this combination to check whether it satisfies the condition as it is consider as string class.
If I saw something like that in a PR I would reject it in ~2 seconds.
What actual problem are you trying to solve?
--
Hassan Schroeder ------------------------ hassan.s...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com .
To post to this group, send email to rubyonra...@googlegroups.com .
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ .CACmC4yCg%2Bm9gv5% 3DuESBmdzYOSYCV% 3DCspNdbkhB3hucVEXgbFcQ% 40mail.gmail.com
For more options, visit https://groups.google.com/d/optout .
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a6777a65-fb5d-4f65-8b85-c208d4a6ec55%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/c4000b8e-3e50-4957-aeff-901da9462389%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Feb 22, 2019, at 3:10 PM, Marco Antonio Almeida <marcoafilho@gmail.com> wrote:Hi Sapna,This is a fun exercise to do and also to do some refactoring after I got to understand what you are aiming to do.First of all, your code is not optimal yet. Let's look at the output of the example you gave:{"1"=>"( true ) || ( false ) || ( true )", "2"=>"( true && false ) || ( true && true ) || ( false && true ) || ( false && true ) || ( true && true ) || ( true && false )", "3"=>"( true && false && true ) || ( true && true && false ) || ( false && true && true ) || ( false && true && true ) || ( true && true && false ) || ( true && false && true )"}The combination of 2 and 3 have duplicated information. For example: (true && false && true) are the same as (true && true && false). I have provided a solution for what I understood from your problem below with some comments.I am considering that you need to solve this in one method, otherwise, I would split in many different methods to make the code more clear. I am also being very cheeky here to introduce many features of the language that would make your life easier and your code much more understandable.I hope this helps.# Evaluate the combinations of conditions.## step_conditions_labels - The Array of conditions.## Examples## conditions_combination(%w[true false true])# # => {1=>true, 2=>true, 3=>false}## conditions_combination(%w[true false true false true])# # => {1=>true, 2=>true, 3=>true, 4=>false, 5=>false}## Returns a hash of the evaluation of respective combinations.def conditions_combination(step_conditions_labels)# Reduce the Array to the result Hash.step_conditions_labels.each_with_index.reduce({}) do |hash, (_, index)|# Update each of the Hash keys with the evalutation of the combination.hash.update(index + 1 =># Eval is the way to go here as Tales mentioned, but it's a very# dangerous method. Be careful!eval(# Array#combination is what does the trick for you. Check it out:# The other lines just help on building the condition String.step_conditions_labels.combination(index + 1).map { |combination| "(#{combination.join(' && ')})" }.join(' || ')))endendconditions_combination(%w[true false true])Best regards,/ MarcoOn Fri, Feb 22, 2019 at 6:56 PM Hassan Schroeder <hassan.schroeder@gmail.com> wrote:On Fri, Feb 22, 2019 at 4:36 AM Sapna Mishra <sapna.spaceo@gmail.com> wrote:
> Issue is now I am not able use this combination to check whether it satisfies the condition as it is consider as string class.
If I saw something like that in a PR I would reject it in ~2 seconds.
What actual problem are you trying to solve?
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yCg%2Bm9gv5%3DuESBmdzYOSYCV%3DCspNdbkhB3hucVEXgbFcQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACMkcE5HWvKpa8%3D8YWgdnVgwYW03OCbBw3%2BCetMPrH-9Xj31yQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.