diff --git a/.byebug_history b/.byebug_history new file mode 100644 index 0000000..57c035d --- /dev/null +++ b/.byebug_history @@ -0,0 +1,2 @@ +continue +con diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b4d77fd --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +tmp/* +log/* +db/* diff --git a/AfricasTalkingGateway.rb b/AfricasTalkingGateway.rb new file mode 100644 index 0000000..3d43d9c --- /dev/null +++ b/AfricasTalkingGateway.rb @@ -0,0 +1,495 @@ +require 'rubygems' +require 'net/http' +require 'uri' +require 'json' + +class AfricasTalkingGatewayException < Exception +end + +class SMSMessages + attr_accessor :id, :text, :from, :to, :linkId, :date + + def initialize(id_, text_, from_, to_, linkId_, date_) + @id = id_ + @text = text_ + @from = from_ + @to = to_ + @linkId = linkId_ + @date = date_ + end +end + +class StatusReport + attr_accessor :number, :status, :cost, :messageId + + def initialize(number_, status_, cost_,messageId_) + @number = number_ + @status = status_ + @cost = cost_ + @messageId = messageId_ + end +end + +class PremiumSubscriptionNumbers + attr_accessor :phoneNumber, :id + + def initialize(number_, id_) + @phoneNumber = number_ + @id = id_ + end +end + +class AirtimeResult + attr_accessor :amount, :phoneNumber, :requestId, :status, :errorMessage, :discount + + def initialize(status_, number_, amount_, requestId_, errorMessage_, discount_) + @status = status_ + @phoneNumber = number_ + @amount = amount_ + @requestId = requestId_ + @errorMessage = errorMessage_ + @discount = discount_ + end +end + +class CallResponse + attr_accessor :phoneNumber, :status + + def initialize(status_, number_) + @status = status_ + @phoneNumber = number_ + end +end + +class QueuedCalls + attr_accessor :numCalls, :phoneNumber, :queueName + + def initialize(number_, numCalls_, queueName_) + @phoneNumber = number_ + @numCalls = numCalls_ + @queueName = queueName_ + end +end + +class AfricasTalkingGateway + + HTTP_CREATED = 201 + HTTP_OK = 200 + + #Set debug flag to to true to view response body + DEBUG = false + + + def initialize(user_name,api_key, environment = nil) + @user_name = user_name + @api_key = api_key + @environment = environment + + @response_code = nil + end + + def sendMessage(recipients_, message_, from_ = nil, bulkSMSMode_ = 1, enqueue_ = 0, keyword_ = nil, linkId_ = nil, retryDurationInHours_ = nil) + post_body = { + 'username' => @user_name, + 'message' => message_, + 'to' => recipients_, + 'bulkSMSMode' => bulkSMSMode_ + } + if (from_ != nil) + post_body['from'] = from_ + end + + if (enqueue_ > 0) + post_body['enqueue'] = enqueue_ + end + + if (keyword_ != nil) + post_body['keyword'] = keyword_ + end + + if (linkId_ != nil) + post_body['linkId'] = linkId_ + end + + if (retryDurationInHours_ != nil) + post_body['retryDurationInHours'] = retryDurationInHours_ + end + + response = executePost(getSmsUrl(), post_body) + if @response_code == HTTP_CREATED + messageData = JSON.parse(response,:quirks_mode=>true)["SMSMessageData"] + recipients = messageData["Recipients"] + + if recipients.length > 0 + reports = recipients.collect { |entry| + StatusReport.new entry["number"], entry["status"], entry["cost"], entry["messageId"] + } + return reports + end + + raise AfricasTalkingGatewayException, messageData["Message"] + + else + raise AfricasTalkingGatewayException, response + end + end + + def fetchMessages(last_received_id_) + url = getSmsUrl() + "?username=#{@user_name}&lastReceivedId=#{last_received_id_}" + response = executePost(url) + if @response_code == HTTP_OK + messages = JSON.parse(response, :quirky_mode => true)["SMSMessageData"]["Messages"].collect { |msg| + SMSMessage.new msg["id"], msg["text"], msg["from"] , msg["to"], msg["linkId"], msg["date"] + } + return messages + else + raise AfricasTalkingGatewayException, response + end + end + + def createSubcription(phone_number_, short_code_, keyword_) + if(phone_number_.length == 0 || short_code.length == 0 || keyword_.length == 0) + raise AfricasTalkingGatewayException, "Please supply phone number, short code and keyword" + end + + post_body = { + 'username' => @user_name, + 'phoneNumber' => phone_number_, + 'shortCode' => short_code_, + 'keyword' => keyword_ + } + url = getSmsSubscriptionUrl() + "/create" + response = executePost(url, post_body) + if(@response_code == HTTP_CREATED) + return JSON.parse(response, :quirky_mode => true) + else + raise AfricasTalkingGatewayException, response + end + end + + def deleteSubcription(phone_number_, short_code_, keyword_) + if(phone_number_.length == 0 || short_code.length == 0 || keyword_.length == 0) + raise AfricasTalkingGatewayException, "Please supply phone number, short code and keyword" + end + + post_body = { + 'username' => @user_name, + 'phoneNumber' => phone_number_, + 'shortCode' => short_code_, + 'keyword' => keyword_ + } + url = getSmsSubscriptionUrl() + "/delete" + + response = executePost(url, post_body) + + if(@response_code == HTTP_CREATED) + return JSON.parse(response, :quirky_mode => true) + else + raise AfricasTalkingGatewayException, response + end + end + + def fetchPremiumSubscriptions(short_code_, keyword_, last_received_id_ = 0) + if(short_code_.length == 0 || keyword_.length == 0) + raise AfricasTalkingGatewayException, "Please supply the short code and keyword" + end + + url = getSmsSubscriptionUrl() + "?username=#{@user_name}&shortCode=#{short_code_}&keyword=#{keyword_}&lastReceivedId=#{last_received_id_}" + + response = executePost(url) + + if(@response_code == HTTP_OK) + subscriptions = JSON.parse(response)['responses'].collect{ |subscriber| + PremiumSubscriptionNumbers.new subscriber['phoneNumber'], subscriber['id'] + } + return subscriptions + else + raise AfricasTalkingGatewayException, response + end + end + + def call(from_, to_) + post_body = { + 'username' => @user_name, + 'from' => from_, + 'to' => to_ + } + response = executePost(getVoiceHost() + "/call", post_body) + if(@response_code == HTTP_OK || @response_code == HTTP_CREATED) + jObject = JSON.parse(response, :quirky_mode => true) + + if (jObject['errorMessage'] == "None") + results = jObject['entries'].collect{|result| + CallResponse.new result['status'], result['phoneNumber'] + } + return results + end + + raise AfricasTalkingGatewayException, jObject['errorMessage'] + end + + raise AfricasTalkingGatewayException, response + end + + def getNumQueuedCalls(phone_number_, queue_name_ = nil) + post_body = { + 'username' => @user_name, + 'phoneNumbers' => phone_number_, + } + if (queue_name_ != nil) + post_body['queueName'] = queue_name_ + end + url = getVoiceHost() + "/queueStatus" + response = executePost(url, post_body) + + jsObject = JSON.parse(response, :quirky_mode => true) + + if(@response_code == HTTP_OK || @response_code == HTTP_CREATED) + if (jsObject['errorMessage'] == "None") + results = jsObject['entries'].collect{|result| + QueuedCalls.new result['phoneNumber'], result['numCalls'], result['queueName'] + } + return results + end + + raise AfricasTalkingGatewayException, jsObject['errorMessage'] + end + + raise AfricasTalkingGatewayException, response + end + + def uploadMediaFile(url_string_) + post_body = { + 'username' => @user_name, + 'url' => url_string_ + } + url = getVoiceHost() + "/mediaUpload" + response = executePost(url, post_body) + + jsObject = JSON.parse(response, :quirky_mode => true) + + raise AfricasTalkingGatewayException, jsObject['errorMessage'] if jsObject['errorMessage'] != "None" + end + + def sendAirtime(recipients_) + recipients = recipients_.to_json + post_body = { + 'username' => @user_name, + 'recipients' => recipients + } + url = getAirtimeUrl() + "/send" + response = executePost(url, post_body) + if (@response_code == HTTP_CREATED) + responses = JSON.parse(response, :quirky_mode =>true)['responses'] + if (responses.length > 0) + results = responses.collect{ |result| + AirtimeResult.new result['status'], result['phoneNumber'],result['amount'],result['requestId'], result['errorMessage'], result['discount'] + } + return results + else + raise AfricasTalkingGatewayException, response['errorMessage'] + end + else + raise AfricasTalkingGatewayException, response + end + + end + + #Payment Methods + def initiateMobilePaymentCheckout(productName_, phoneNumber_, currencyCode_, amount_, metadata_ = {}) + parameters = { + 'username' => @user_name, + 'productName' => productName_, + 'phoneNumber' => phoneNumber_, + 'currencyCode' => currencyCode_, + 'amount' => amount_, + 'metadata' => metadata_ + } + + url = getMobilePaymentCheckoutUrl() + response = sendJSONRequest(url, parameters) + + if (@response_code == HTTP_CREATED) + resultObj = JSON.parse(response, :quirky_mode =>true) + if (resultObj['status'] == 'PendingConfirmation') + return resultObj['transactionId'] + end + raise AfricasTalkingGatewayException, resultObj['description'] + end + raise AfricasTalkingGatewayException, response + end + + def mobilePaymentB2CRequest(productName_, recipients_) + parameters = { + 'username' => @user_name, + 'productName' => productName_, + 'recipients' => recipients_ + } + + url = getMobilePaymentB2CUrl() + response = sendJSONRequest(url, parameters) + + if (@response_code == HTTP_CREATED) + resultObj = JSON.parse(response, :quirky_mode =>true) + if (resultObj['entries'].length > 0) + return resultObj['entries'] + end + raise AfricasTalkingGatewayException, resultObj['errorMessage'] + end + raise AfricasTalkingGatewayException, response + end + + def mobilePaymentB2BRequest(productName_, providerData_, currencyCode_, amount_, metadata_ = {}) + if (!providerData_.key?('provider')) + raise AfricasTalkingGatewayException("Missing field provider") + end + + if (!providerData_.key?('destinationChannel')) + raise AfricasTalkingGatewayException("Missing field destinationChannel") + end + + if (!providerData_.key?('destinationAccount')) + raise AfricasTalkingGatewayException("Missing field destinationAccount") + end + + if (!providerData_.key?('transferType')) + raise AfricasTalkingGatewayException("Missing field transferType") + end + + parameters = { + 'username' => @user_name, + 'productName' => productName_, + 'provider' => providerData_['provider'], + 'destinationChannel' => providerData_['destinationChannel'], + 'destinationAccount' => providerData_['destinationAccount'], + 'transferType' => providerData_['transferType'], + 'currencyCode' => currencyCode_, + 'amount' =>amount_, + 'metadata' =>metadata_ + } + + url = getMobilePaymentB2BUrl() + response = self.sendJSONRequest(url, parameters) + + if (@response_code == HTTP_CREATED) + resultObj = JSON.parse(response, :quirky_mode =>true) + return resultObj + end + raise AfricasTalkingGatewayException(response) + end + + def getUserData() + url = getUserDataUrl() + "?username=#{@user_name}" + response = executePost(url) + if (@response_code == HTTP_OK) + result = JSON.parse(response, :quirky_mode =>true)['UserData'] + return result + else + raise AfricasTalkingGatewayException, response + end + end + + def executePost(url_, data_ = nil) + uri = URI.parse(url_) + http = Net::HTTP.new(uri.host, uri.port) + http.use_ssl = true + headers = { + "apikey" => @api_key, + "Accept" => "application/json" + } + if(data_ != nil) + request = Net::HTTP::Post.new(uri.request_uri) + request.set_form_data(data_) + else + request = Net::HTTP::Get.new(uri.request_uri) + end + request["apikey"] = @api_key + request["Accept"] = "application/json" + + response = http.request(request) + + if (DEBUG) + puts "Full response #{response.body}" + end + + @response_code = response.code.to_i + return response.body + end + + def sendJSONRequest(url_, data_) + uri = URI.parse(url_) + http = Net::HTTP.new(uri.host, uri.port) + http.use_ssl = true + req = Net::HTTP::Post.new(uri.request_uri, 'Content-Type'=>"application/json") + + req["apikey"] = @api_key + req["Accept"] = "application/json" + + req.body = data_.to_json + + response = http.request(req) + + if (DEBUG) + puts "Full response #{response.body}" + end + + @response_code = response.code.to_i + return response.body + end + + def getApiHost() + if(@environment == "sandbox") + return "https://api.sandbox.africastalking.com" + else + return "https://api.africastalking.com" + end + end + + def getVoiceHost() + if(@environment == "sandbox") + return "https://voice.sandbox.africastalking.com" + else + return "https://voice.africastalking.com" + end + end + + def getPaymentHost() + if(@environment == "sandbox") + return "https://payments.sandbox.africastalking.com" + else + return "https://payments.africastalking.com" + end + end + + def getSmsUrl() + return getApiHost() + "/version1/messaging" + end + + def getVoiceUrl() + return getVoiceHost() + end + + def getSmsSubscriptionUrl() + return getApiHost() + "/version1/subscription" + end + + def getUserDataUrl() + return getApiHost() + "/version1/user" + end + + def getAirtimeUrl() + return getApiHost() + "/version1/airtime" + end + + def getMobilePaymentCheckoutUrl() + return getPaymentHost() + "/mobile/checkout/request" + end + + def getMobilePaymentB2CUrl() + return getPaymentHost() + "/mobile/b2c/request" + end + + def getMobilePaymentB2BUrl() + return getPaymentHost() + "/mobile/b2b/request" + end +end diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..f807fa6 --- /dev/null +++ b/Gemfile @@ -0,0 +1,63 @@ +source 'https://rubygems.org' +git_source(:github) { |repo| "https://github.com/#{repo}.git" } + +ruby '2.4.1' + +# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' +gem 'rails', '~> 5.2.1' +gem 'devise' +# Use sqlite3 as the database for Active Record +gem 'sqlite3' +# Use Puma as the app server +gem 'puma', '~> 3.11' +# Use SCSS for stylesheets +gem 'sass-rails', '~> 5.0' +# Use Uglifier as compressor for JavaScript assets +gem 'uglifier', '>= 1.3.0' +# See https://github.com/rails/execjs#readme for more supported runtimes +# gem 'mini_racer', platforms: :ruby + +# Use CoffeeScript for .coffee assets and views +gem 'coffee-rails', '~> 4.2' +# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks +gem 'turbolinks', '~> 5' +# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder +gem 'jbuilder', '~> 2.5' +# Use Redis adapter to run Action Cable in production +# gem 'redis', '~> 4.0' +# Use ActiveModel has_secure_password +# gem 'bcrypt', '~> 3.1.7' + +# Use ActiveStorage variant +# gem 'mini_magick', '~> 4.8' + +# Use Capistrano for deployment +# gem 'capistrano-rails', group: :development + +# Reduces boot times through caching; required in config/boot.rb +gem 'bootsnap', '>= 1.1.0', require: false + +group :development, :test do + # Call 'byebug' anywhere in the code to stop execution and get a debugger console + gem 'byebug', platforms: [:mri, :mingw, :x64_mingw] +end + +group :development do + # Access an interactive console on exception pages or by calling 'console' anywhere in the code. + gem 'web-console', '>= 3.3.0' + gem 'listen', '>= 3.0.5', '< 3.2' + # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring + gem 'spring' + gem 'spring-watcher-listen', '~> 2.0.0' +end + +group :test do + # Adds support for Capybara system testing and selenium driver + gem 'capybara', '>= 2.15' + gem 'selenium-webdriver' + # Easy installation and use of chromedriver to run system tests with Chrome + gem 'chromedriver-helper' +end + +# Windows does not include zoneinfo files, so bundle the tzinfo-data gem +gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..16b6122 --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,232 @@ +GEM + remote: https://rubygems.org/ + specs: + actioncable (5.2.1) + actionpack (= 5.2.1) + nio4r (~> 2.0) + websocket-driver (>= 0.6.1) + actionmailer (5.2.1) + actionpack (= 5.2.1) + actionview (= 5.2.1) + activejob (= 5.2.1) + mail (~> 2.5, >= 2.5.4) + rails-dom-testing (~> 2.0) + actionpack (5.2.1) + actionview (= 5.2.1) + activesupport (= 5.2.1) + rack (~> 2.0) + rack-test (>= 0.6.3) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.2) + actionview (5.2.1) + activesupport (= 5.2.1) + builder (~> 3.1) + erubi (~> 1.4) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.3) + activejob (5.2.1) + activesupport (= 5.2.1) + globalid (>= 0.3.6) + activemodel (5.2.1) + activesupport (= 5.2.1) + activerecord (5.2.1) + activemodel (= 5.2.1) + activesupport (= 5.2.1) + arel (>= 9.0) + activestorage (5.2.1) + actionpack (= 5.2.1) + activerecord (= 5.2.1) + marcel (~> 0.3.1) + activesupport (5.2.1) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (>= 0.7, < 2) + minitest (~> 5.1) + tzinfo (~> 1.1) + addressable (2.5.2) + public_suffix (>= 2.0.2, < 4.0) + archive-zip (0.11.0) + io-like (~> 0.3.0) + arel (9.0.0) + bcrypt (3.1.12) + bindex (0.5.0) + bootsnap (1.3.2) + msgpack (~> 1.0) + builder (3.2.3) + byebug (10.0.2) + capybara (3.7.2) + addressable + mini_mime (>= 0.1.3) + nokogiri (~> 1.8) + rack (>= 1.6.0) + rack-test (>= 0.6.3) + xpath (~> 3.1) + childprocess (0.9.0) + ffi (~> 1.0, >= 1.0.11) + chromedriver-helper (2.1.0) + archive-zip (~> 0.10) + nokogiri (~> 1.8) + coffee-rails (4.2.2) + coffee-script (>= 2.2.0) + railties (>= 4.0.0) + coffee-script (2.4.1) + coffee-script-source + execjs + coffee-script-source (1.12.2) + concurrent-ruby (1.0.5) + crass (1.0.4) + devise (4.5.0) + bcrypt (~> 3.0) + orm_adapter (~> 0.1) + railties (>= 4.1.0, < 6.0) + responders + warden (~> 1.2.3) + erubi (1.7.1) + execjs (2.7.0) + ffi (1.9.25) + globalid (0.4.1) + activesupport (>= 4.2.0) + i18n (1.1.0) + concurrent-ruby (~> 1.0) + io-like (0.3.0) + jbuilder (2.7.0) + activesupport (>= 4.2.0) + multi_json (>= 1.2) + listen (3.1.5) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + ruby_dep (~> 1.2) + loofah (2.2.2) + crass (~> 1.0.2) + nokogiri (>= 1.5.9) + mail (2.7.0) + mini_mime (>= 0.1.1) + marcel (0.3.3) + mimemagic (~> 0.3.2) + method_source (0.9.0) + mimemagic (0.3.2) + mini_mime (1.0.1) + mini_portile2 (2.3.0) + minitest (5.11.3) + msgpack (1.2.4) + multi_json (1.13.1) + nio4r (2.3.1) + nokogiri (1.8.4) + mini_portile2 (~> 2.3.0) + orm_adapter (0.5.0) + public_suffix (3.0.3) + puma (3.12.0) + rack (2.0.5) + rack-test (1.1.0) + rack (>= 1.0, < 3) + rails (5.2.1) + actioncable (= 5.2.1) + actionmailer (= 5.2.1) + actionpack (= 5.2.1) + actionview (= 5.2.1) + activejob (= 5.2.1) + activemodel (= 5.2.1) + activerecord (= 5.2.1) + activestorage (= 5.2.1) + activesupport (= 5.2.1) + bundler (>= 1.3.0) + railties (= 5.2.1) + sprockets-rails (>= 2.0.0) + rails-dom-testing (2.0.3) + activesupport (>= 4.2.0) + nokogiri (>= 1.6) + rails-html-sanitizer (1.0.4) + loofah (~> 2.2, >= 2.2.2) + railties (5.2.1) + actionpack (= 5.2.1) + activesupport (= 5.2.1) + method_source + rake (>= 0.8.7) + thor (>= 0.19.0, < 2.0) + rake (12.3.1) + rb-fsevent (0.10.3) + rb-inotify (0.9.10) + ffi (>= 0.5.0, < 2) + responders (2.4.0) + actionpack (>= 4.2.0, < 5.3) + railties (>= 4.2.0, < 5.3) + ruby_dep (1.5.0) + rubyzip (1.2.2) + sass (3.6.0) + sass-listen (~> 4.0.0) + sass-listen (4.0.0) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + sass-rails (5.0.7) + railties (>= 4.0.0, < 6) + sass (~> 3.1) + sprockets (>= 2.8, < 4.0) + sprockets-rails (>= 2.0, < 4.0) + tilt (>= 1.1, < 3) + selenium-webdriver (3.14.0) + childprocess (~> 0.5) + rubyzip (~> 1.2) + spring (2.0.2) + activesupport (>= 4.2) + spring-watcher-listen (2.0.1) + listen (>= 2.7, < 4.0) + spring (>= 1.2, < 3.0) + sprockets (3.7.2) + concurrent-ruby (~> 1.0) + rack (> 1, < 3) + sprockets-rails (3.2.1) + actionpack (>= 4.0) + activesupport (>= 4.0) + sprockets (>= 3.0.0) + sqlite3 (1.3.13) + thor (0.20.0) + thread_safe (0.3.6) + tilt (2.0.8) + turbolinks (5.2.0) + turbolinks-source (~> 5.2) + turbolinks-source (5.2.0) + tzinfo (1.2.5) + thread_safe (~> 0.1) + uglifier (4.1.19) + execjs (>= 0.3.0, < 3) + warden (1.2.7) + rack (>= 1.0) + web-console (3.7.0) + actionview (>= 5.0) + activemodel (>= 5.0) + bindex (>= 0.4.0) + railties (>= 5.0) + websocket-driver (0.7.0) + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.3) + xpath (3.1.0) + nokogiri (~> 1.8) + +PLATFORMS + ruby + +DEPENDENCIES + bootsnap (>= 1.1.0) + byebug + capybara (>= 2.15) + chromedriver-helper + coffee-rails (~> 4.2) + devise + jbuilder (~> 2.5) + listen (>= 3.0.5, < 3.2) + puma (~> 3.11) + rails (~> 5.2.1) + sass-rails (~> 5.0) + selenium-webdriver + spring + spring-watcher-listen (~> 2.0.0) + sqlite3 + turbolinks (~> 5) + tzinfo-data + uglifier (>= 1.3.0) + web-console (>= 3.3.0) + +RUBY VERSION + ruby 2.4.1p111 + +BUNDLED WITH + 1.16.3 diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..e85f913 --- /dev/null +++ b/Rakefile @@ -0,0 +1,6 @@ +# Add your own tasks in files placed in lib/tasks ending in .rake, +# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. + +require_relative 'config/application' + +Rails.application.load_tasks diff --git a/app/assets/config/manifest.js b/app/assets/config/manifest.js new file mode 100644 index 0000000..b16e53d --- /dev/null +++ b/app/assets/config/manifest.js @@ -0,0 +1,3 @@ +//= link_tree ../images +//= link_directory ../javascripts .js +//= link_directory ../stylesheets .css diff --git a/app/assets/images/.keep b/app/assets/images/.keep new file mode 100644 index 0000000..e69de29 diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js new file mode 100644 index 0000000..82e6f0f --- /dev/null +++ b/app/assets/javascripts/application.js @@ -0,0 +1,16 @@ +// This is a manifest file that'll be compiled into application.js, which will include all the files +// listed below. +// +// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, or any plugin's +// vendor/assets/javascripts directory can be referenced here using a relative path. +// +// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the +// compiled file. JavaScript code in this file should be added after the last require_* statement. +// +// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details +// about supported directives. +// +//= require rails-ujs +//= require activestorage +//= require turbolinks +//= require_tree . diff --git a/app/assets/javascripts/cable.js b/app/assets/javascripts/cable.js new file mode 100644 index 0000000..739aa5f --- /dev/null +++ b/app/assets/javascripts/cable.js @@ -0,0 +1,13 @@ +// Action Cable provides the framework to deal with WebSockets in Rails. +// You can generate new channels where WebSocket features live using the `rails generate channel` command. +// +//= require action_cable +//= require_self +//= require_tree ./channels + +(function() { + this.App || (this.App = {}); + + App.cable = ActionCable.createConsumer(); + +}).call(this); diff --git a/app/assets/javascripts/channels/.keep b/app/assets/javascripts/channels/.keep new file mode 100644 index 0000000..e69de29 diff --git a/app/assets/javascripts/contacts.coffee b/app/assets/javascripts/contacts.coffee new file mode 100644 index 0000000..24f83d1 --- /dev/null +++ b/app/assets/javascripts/contacts.coffee @@ -0,0 +1,3 @@ +# Place all the behaviors and hooks related to the matching controller here. +# All this logic will automatically be available in application.js. +# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/app/assets/javascripts/sms_sends.coffee b/app/assets/javascripts/sms_sends.coffee new file mode 100644 index 0000000..24f83d1 --- /dev/null +++ b/app/assets/javascripts/sms_sends.coffee @@ -0,0 +1,3 @@ +# Place all the behaviors and hooks related to the matching controller here. +# All this logic will automatically be available in application.js. +# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css new file mode 100644 index 0000000..d05ea0f --- /dev/null +++ b/app/assets/stylesheets/application.css @@ -0,0 +1,15 @@ +/* + * This is a manifest file that'll be compiled into application.css, which will include all the files + * listed below. + * + * Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's + * vendor/assets/stylesheets directory can be referenced here using a relative path. + * + * You're free to add application-wide styles to this file and they'll appear at the bottom of the + * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS + * files in this directory. Styles in this file should be added after the last require_* statement. + * It is generally better to create a new file per style scope. + * + *= require_tree . + *= require_self + */ diff --git a/app/assets/stylesheets/contacts.scss b/app/assets/stylesheets/contacts.scss new file mode 100644 index 0000000..1f995de --- /dev/null +++ b/app/assets/stylesheets/contacts.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the Contacts controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/assets/stylesheets/sms_sends.scss b/app/assets/stylesheets/sms_sends.scss new file mode 100644 index 0000000..0c94387 --- /dev/null +++ b/app/assets/stylesheets/sms_sends.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the SmsSends controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/channels/application_cable/channel.rb b/app/channels/application_cable/channel.rb new file mode 100644 index 0000000..d672697 --- /dev/null +++ b/app/channels/application_cable/channel.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Channel < ActionCable::Channel::Base + end +end diff --git a/app/channels/application_cable/connection.rb b/app/channels/application_cable/connection.rb new file mode 100644 index 0000000..0ff5442 --- /dev/null +++ b/app/channels/application_cable/connection.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Connection < ActionCable::Connection::Base + end +end diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb new file mode 100644 index 0000000..6b4dcfa --- /dev/null +++ b/app/controllers/application_controller.rb @@ -0,0 +1,3 @@ +class ApplicationController < ActionController::Base + before_action :authenticate_user! +end diff --git a/app/controllers/concerns/.keep b/app/controllers/concerns/.keep new file mode 100644 index 0000000..e69de29 diff --git a/app/controllers/contacts_controller.rb b/app/controllers/contacts_controller.rb new file mode 100644 index 0000000..4e4d412 --- /dev/null +++ b/app/controllers/contacts_controller.rb @@ -0,0 +1,26 @@ +class ContactsController < ApplicationController + def index + @contacts = current_user.contacts + end + def new + @contact = Contact.new + end + def create + @contact = current_user.contacts.build(contact_params) + if @contact.save + redirect_to contacts_path + else + render 'new' + end + end + def destroy + @contact = Contact.find(params[:id]) + @contact.destroy + redirect_to contacts_path + end + + private + def contact_params + params.require(:contact).permit(:first_name, :last_name, :phonenumber) + end +end diff --git a/app/controllers/sms_sends_controller.rb b/app/controllers/sms_sends_controller.rb new file mode 100644 index 0000000..301d59a --- /dev/null +++ b/app/controllers/sms_sends_controller.rb @@ -0,0 +1,35 @@ +require './AfricasTalkingGateway' +class SmsSendsController < ApplicationController + def new + @at = SmsSend.new + @contact = Contact.find_by(id: params[:id]) + end + def create + @at = SmsSend.create(sms_params) + if @at.save! + @con = current_user.contacts.find_by(id: @at.contact_id) + AfricasTalkingGateway.new("trial-error", "29f7557bfacfe4335ea850fc3fe258b7f70064d069a014e39d5d2eece16659a9").sendMessage(@con.phonenumber, @at.message) + redirect_to contacts_path + flash[:success] = "Message Successfully sent to #{@con.first_name}!" + end + end + def new_all + @at = SmsSend.new + @contact = Contact.find_by(id: params[:id]) + end + def create_all + @at = SmsSend.create(sms_params) + if @at.save! + current_user.contacts.each do |c| + AfricasTalkingGateway.new("trial-error", "29f7557bfacfe4335ea850fc3fe258b7f70064d069a014e39d5d2eece16659a9").sendMessage(c.phonenumber, @at.message) + end + redirect_to contacts_path + flash[:success] = "Message Successfully sent to all your contacts!" + end + end + + private + def sms_params + params.require(:sms_send).permit(:mobile, :message, :contact_id) + end +end diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb new file mode 100644 index 0000000..de6be79 --- /dev/null +++ b/app/helpers/application_helper.rb @@ -0,0 +1,2 @@ +module ApplicationHelper +end diff --git a/app/helpers/contacts_helper.rb b/app/helpers/contacts_helper.rb new file mode 100644 index 0000000..593025b --- /dev/null +++ b/app/helpers/contacts_helper.rb @@ -0,0 +1,2 @@ +module ContactsHelper +end diff --git a/app/helpers/sms_sends_helper.rb b/app/helpers/sms_sends_helper.rb new file mode 100644 index 0000000..4ec4133 --- /dev/null +++ b/app/helpers/sms_sends_helper.rb @@ -0,0 +1,2 @@ +module SmsSendsHelper +end diff --git a/app/jobs/application_job.rb b/app/jobs/application_job.rb new file mode 100644 index 0000000..a009ace --- /dev/null +++ b/app/jobs/application_job.rb @@ -0,0 +1,2 @@ +class ApplicationJob < ActiveJob::Base +end diff --git a/app/mailers/application_mailer.rb b/app/mailers/application_mailer.rb new file mode 100644 index 0000000..286b223 --- /dev/null +++ b/app/mailers/application_mailer.rb @@ -0,0 +1,4 @@ +class ApplicationMailer < ActionMailer::Base + default from: 'from@example.com' + layout 'mailer' +end diff --git a/app/models/AfricasTalkingGateway.rb b/app/models/AfricasTalkingGateway.rb new file mode 100644 index 0000000..3d43d9c --- /dev/null +++ b/app/models/AfricasTalkingGateway.rb @@ -0,0 +1,495 @@ +require 'rubygems' +require 'net/http' +require 'uri' +require 'json' + +class AfricasTalkingGatewayException < Exception +end + +class SMSMessages + attr_accessor :id, :text, :from, :to, :linkId, :date + + def initialize(id_, text_, from_, to_, linkId_, date_) + @id = id_ + @text = text_ + @from = from_ + @to = to_ + @linkId = linkId_ + @date = date_ + end +end + +class StatusReport + attr_accessor :number, :status, :cost, :messageId + + def initialize(number_, status_, cost_,messageId_) + @number = number_ + @status = status_ + @cost = cost_ + @messageId = messageId_ + end +end + +class PremiumSubscriptionNumbers + attr_accessor :phoneNumber, :id + + def initialize(number_, id_) + @phoneNumber = number_ + @id = id_ + end +end + +class AirtimeResult + attr_accessor :amount, :phoneNumber, :requestId, :status, :errorMessage, :discount + + def initialize(status_, number_, amount_, requestId_, errorMessage_, discount_) + @status = status_ + @phoneNumber = number_ + @amount = amount_ + @requestId = requestId_ + @errorMessage = errorMessage_ + @discount = discount_ + end +end + +class CallResponse + attr_accessor :phoneNumber, :status + + def initialize(status_, number_) + @status = status_ + @phoneNumber = number_ + end +end + +class QueuedCalls + attr_accessor :numCalls, :phoneNumber, :queueName + + def initialize(number_, numCalls_, queueName_) + @phoneNumber = number_ + @numCalls = numCalls_ + @queueName = queueName_ + end +end + +class AfricasTalkingGateway + + HTTP_CREATED = 201 + HTTP_OK = 200 + + #Set debug flag to to true to view response body + DEBUG = false + + + def initialize(user_name,api_key, environment = nil) + @user_name = user_name + @api_key = api_key + @environment = environment + + @response_code = nil + end + + def sendMessage(recipients_, message_, from_ = nil, bulkSMSMode_ = 1, enqueue_ = 0, keyword_ = nil, linkId_ = nil, retryDurationInHours_ = nil) + post_body = { + 'username' => @user_name, + 'message' => message_, + 'to' => recipients_, + 'bulkSMSMode' => bulkSMSMode_ + } + if (from_ != nil) + post_body['from'] = from_ + end + + if (enqueue_ > 0) + post_body['enqueue'] = enqueue_ + end + + if (keyword_ != nil) + post_body['keyword'] = keyword_ + end + + if (linkId_ != nil) + post_body['linkId'] = linkId_ + end + + if (retryDurationInHours_ != nil) + post_body['retryDurationInHours'] = retryDurationInHours_ + end + + response = executePost(getSmsUrl(), post_body) + if @response_code == HTTP_CREATED + messageData = JSON.parse(response,:quirks_mode=>true)["SMSMessageData"] + recipients = messageData["Recipients"] + + if recipients.length > 0 + reports = recipients.collect { |entry| + StatusReport.new entry["number"], entry["status"], entry["cost"], entry["messageId"] + } + return reports + end + + raise AfricasTalkingGatewayException, messageData["Message"] + + else + raise AfricasTalkingGatewayException, response + end + end + + def fetchMessages(last_received_id_) + url = getSmsUrl() + "?username=#{@user_name}&lastReceivedId=#{last_received_id_}" + response = executePost(url) + if @response_code == HTTP_OK + messages = JSON.parse(response, :quirky_mode => true)["SMSMessageData"]["Messages"].collect { |msg| + SMSMessage.new msg["id"], msg["text"], msg["from"] , msg["to"], msg["linkId"], msg["date"] + } + return messages + else + raise AfricasTalkingGatewayException, response + end + end + + def createSubcription(phone_number_, short_code_, keyword_) + if(phone_number_.length == 0 || short_code.length == 0 || keyword_.length == 0) + raise AfricasTalkingGatewayException, "Please supply phone number, short code and keyword" + end + + post_body = { + 'username' => @user_name, + 'phoneNumber' => phone_number_, + 'shortCode' => short_code_, + 'keyword' => keyword_ + } + url = getSmsSubscriptionUrl() + "/create" + response = executePost(url, post_body) + if(@response_code == HTTP_CREATED) + return JSON.parse(response, :quirky_mode => true) + else + raise AfricasTalkingGatewayException, response + end + end + + def deleteSubcription(phone_number_, short_code_, keyword_) + if(phone_number_.length == 0 || short_code.length == 0 || keyword_.length == 0) + raise AfricasTalkingGatewayException, "Please supply phone number, short code and keyword" + end + + post_body = { + 'username' => @user_name, + 'phoneNumber' => phone_number_, + 'shortCode' => short_code_, + 'keyword' => keyword_ + } + url = getSmsSubscriptionUrl() + "/delete" + + response = executePost(url, post_body) + + if(@response_code == HTTP_CREATED) + return JSON.parse(response, :quirky_mode => true) + else + raise AfricasTalkingGatewayException, response + end + end + + def fetchPremiumSubscriptions(short_code_, keyword_, last_received_id_ = 0) + if(short_code_.length == 0 || keyword_.length == 0) + raise AfricasTalkingGatewayException, "Please supply the short code and keyword" + end + + url = getSmsSubscriptionUrl() + "?username=#{@user_name}&shortCode=#{short_code_}&keyword=#{keyword_}&lastReceivedId=#{last_received_id_}" + + response = executePost(url) + + if(@response_code == HTTP_OK) + subscriptions = JSON.parse(response)['responses'].collect{ |subscriber| + PremiumSubscriptionNumbers.new subscriber['phoneNumber'], subscriber['id'] + } + return subscriptions + else + raise AfricasTalkingGatewayException, response + end + end + + def call(from_, to_) + post_body = { + 'username' => @user_name, + 'from' => from_, + 'to' => to_ + } + response = executePost(getVoiceHost() + "/call", post_body) + if(@response_code == HTTP_OK || @response_code == HTTP_CREATED) + jObject = JSON.parse(response, :quirky_mode => true) + + if (jObject['errorMessage'] == "None") + results = jObject['entries'].collect{|result| + CallResponse.new result['status'], result['phoneNumber'] + } + return results + end + + raise AfricasTalkingGatewayException, jObject['errorMessage'] + end + + raise AfricasTalkingGatewayException, response + end + + def getNumQueuedCalls(phone_number_, queue_name_ = nil) + post_body = { + 'username' => @user_name, + 'phoneNumbers' => phone_number_, + } + if (queue_name_ != nil) + post_body['queueName'] = queue_name_ + end + url = getVoiceHost() + "/queueStatus" + response = executePost(url, post_body) + + jsObject = JSON.parse(response, :quirky_mode => true) + + if(@response_code == HTTP_OK || @response_code == HTTP_CREATED) + if (jsObject['errorMessage'] == "None") + results = jsObject['entries'].collect{|result| + QueuedCalls.new result['phoneNumber'], result['numCalls'], result['queueName'] + } + return results + end + + raise AfricasTalkingGatewayException, jsObject['errorMessage'] + end + + raise AfricasTalkingGatewayException, response + end + + def uploadMediaFile(url_string_) + post_body = { + 'username' => @user_name, + 'url' => url_string_ + } + url = getVoiceHost() + "/mediaUpload" + response = executePost(url, post_body) + + jsObject = JSON.parse(response, :quirky_mode => true) + + raise AfricasTalkingGatewayException, jsObject['errorMessage'] if jsObject['errorMessage'] != "None" + end + + def sendAirtime(recipients_) + recipients = recipients_.to_json + post_body = { + 'username' => @user_name, + 'recipients' => recipients + } + url = getAirtimeUrl() + "/send" + response = executePost(url, post_body) + if (@response_code == HTTP_CREATED) + responses = JSON.parse(response, :quirky_mode =>true)['responses'] + if (responses.length > 0) + results = responses.collect{ |result| + AirtimeResult.new result['status'], result['phoneNumber'],result['amount'],result['requestId'], result['errorMessage'], result['discount'] + } + return results + else + raise AfricasTalkingGatewayException, response['errorMessage'] + end + else + raise AfricasTalkingGatewayException, response + end + + end + + #Payment Methods + def initiateMobilePaymentCheckout(productName_, phoneNumber_, currencyCode_, amount_, metadata_ = {}) + parameters = { + 'username' => @user_name, + 'productName' => productName_, + 'phoneNumber' => phoneNumber_, + 'currencyCode' => currencyCode_, + 'amount' => amount_, + 'metadata' => metadata_ + } + + url = getMobilePaymentCheckoutUrl() + response = sendJSONRequest(url, parameters) + + if (@response_code == HTTP_CREATED) + resultObj = JSON.parse(response, :quirky_mode =>true) + if (resultObj['status'] == 'PendingConfirmation') + return resultObj['transactionId'] + end + raise AfricasTalkingGatewayException, resultObj['description'] + end + raise AfricasTalkingGatewayException, response + end + + def mobilePaymentB2CRequest(productName_, recipients_) + parameters = { + 'username' => @user_name, + 'productName' => productName_, + 'recipients' => recipients_ + } + + url = getMobilePaymentB2CUrl() + response = sendJSONRequest(url, parameters) + + if (@response_code == HTTP_CREATED) + resultObj = JSON.parse(response, :quirky_mode =>true) + if (resultObj['entries'].length > 0) + return resultObj['entries'] + end + raise AfricasTalkingGatewayException, resultObj['errorMessage'] + end + raise AfricasTalkingGatewayException, response + end + + def mobilePaymentB2BRequest(productName_, providerData_, currencyCode_, amount_, metadata_ = {}) + if (!providerData_.key?('provider')) + raise AfricasTalkingGatewayException("Missing field provider") + end + + if (!providerData_.key?('destinationChannel')) + raise AfricasTalkingGatewayException("Missing field destinationChannel") + end + + if (!providerData_.key?('destinationAccount')) + raise AfricasTalkingGatewayException("Missing field destinationAccount") + end + + if (!providerData_.key?('transferType')) + raise AfricasTalkingGatewayException("Missing field transferType") + end + + parameters = { + 'username' => @user_name, + 'productName' => productName_, + 'provider' => providerData_['provider'], + 'destinationChannel' => providerData_['destinationChannel'], + 'destinationAccount' => providerData_['destinationAccount'], + 'transferType' => providerData_['transferType'], + 'currencyCode' => currencyCode_, + 'amount' =>amount_, + 'metadata' =>metadata_ + } + + url = getMobilePaymentB2BUrl() + response = self.sendJSONRequest(url, parameters) + + if (@response_code == HTTP_CREATED) + resultObj = JSON.parse(response, :quirky_mode =>true) + return resultObj + end + raise AfricasTalkingGatewayException(response) + end + + def getUserData() + url = getUserDataUrl() + "?username=#{@user_name}" + response = executePost(url) + if (@response_code == HTTP_OK) + result = JSON.parse(response, :quirky_mode =>true)['UserData'] + return result + else + raise AfricasTalkingGatewayException, response + end + end + + def executePost(url_, data_ = nil) + uri = URI.parse(url_) + http = Net::HTTP.new(uri.host, uri.port) + http.use_ssl = true + headers = { + "apikey" => @api_key, + "Accept" => "application/json" + } + if(data_ != nil) + request = Net::HTTP::Post.new(uri.request_uri) + request.set_form_data(data_) + else + request = Net::HTTP::Get.new(uri.request_uri) + end + request["apikey"] = @api_key + request["Accept"] = "application/json" + + response = http.request(request) + + if (DEBUG) + puts "Full response #{response.body}" + end + + @response_code = response.code.to_i + return response.body + end + + def sendJSONRequest(url_, data_) + uri = URI.parse(url_) + http = Net::HTTP.new(uri.host, uri.port) + http.use_ssl = true + req = Net::HTTP::Post.new(uri.request_uri, 'Content-Type'=>"application/json") + + req["apikey"] = @api_key + req["Accept"] = "application/json" + + req.body = data_.to_json + + response = http.request(req) + + if (DEBUG) + puts "Full response #{response.body}" + end + + @response_code = response.code.to_i + return response.body + end + + def getApiHost() + if(@environment == "sandbox") + return "https://api.sandbox.africastalking.com" + else + return "https://api.africastalking.com" + end + end + + def getVoiceHost() + if(@environment == "sandbox") + return "https://voice.sandbox.africastalking.com" + else + return "https://voice.africastalking.com" + end + end + + def getPaymentHost() + if(@environment == "sandbox") + return "https://payments.sandbox.africastalking.com" + else + return "https://payments.africastalking.com" + end + end + + def getSmsUrl() + return getApiHost() + "/version1/messaging" + end + + def getVoiceUrl() + return getVoiceHost() + end + + def getSmsSubscriptionUrl() + return getApiHost() + "/version1/subscription" + end + + def getUserDataUrl() + return getApiHost() + "/version1/user" + end + + def getAirtimeUrl() + return getApiHost() + "/version1/airtime" + end + + def getMobilePaymentCheckoutUrl() + return getPaymentHost() + "/mobile/checkout/request" + end + + def getMobilePaymentB2CUrl() + return getPaymentHost() + "/mobile/b2c/request" + end + + def getMobilePaymentB2BUrl() + return getPaymentHost() + "/mobile/b2b/request" + end +end diff --git a/app/models/application_record.rb b/app/models/application_record.rb new file mode 100644 index 0000000..10a4cba --- /dev/null +++ b/app/models/application_record.rb @@ -0,0 +1,3 @@ +class ApplicationRecord < ActiveRecord::Base + self.abstract_class = true +end diff --git a/app/models/concerns/.keep b/app/models/concerns/.keep new file mode 100644 index 0000000..e69de29 diff --git a/app/models/contact.rb b/app/models/contact.rb new file mode 100644 index 0000000..a531a49 --- /dev/null +++ b/app/models/contact.rb @@ -0,0 +1,6 @@ +class Contact < ApplicationRecord + belongs_to :user + validates :first_name, :last_name, :phonenumber, presence: true + validates :phonenumber, length: { maximum: 12 , minimum: 12} + validates_numericality_of :phonenumber +end diff --git a/app/models/sms_send.rb b/app/models/sms_send.rb new file mode 100644 index 0000000..1fbc180 --- /dev/null +++ b/app/models/sms_send.rb @@ -0,0 +1,2 @@ +class SmsSend < ApplicationRecord +end diff --git a/app/models/user.rb b/app/models/user.rb new file mode 100644 index 0000000..89de6ff --- /dev/null +++ b/app/models/user.rb @@ -0,0 +1,7 @@ +class User < ApplicationRecord + # Include default devise modules. Others available are: + # :confirmable, :lockable, :timeoutable, :trackable and :omniauthable + has_many :contacts + devise :database_authenticatable, :registerable, + :recoverable, :rememberable, :validatable +end diff --git a/app/views/contacts/index.html.erb b/app/views/contacts/index.html.erb new file mode 100644 index 0000000..62eecee --- /dev/null +++ b/app/views/contacts/index.html.erb @@ -0,0 +1,28 @@ +<%= flash[:success] %>
+<%= link_to('Logout', destroy_user_session_path, method: :delete) %> +

All Contacts

+ + + + + + + + + + + + <% @contacts.each do |contact| %> + + + + + + + + <% end %> + +
First NameLast NamePhone NumberSend MessageDelete
<%= contact.first_name %><%= contact.last_name %><%= contact.phonenumber %><%= link_to 'sms', new_sms_send_path(id: contact.id)%><%= link_to 'delete', contact_path(contact), method: :delete, data: {confirm: 'Are you like 100% sure?' }%>
+
+ <%= link_to 'New Contact', new_contact_path %> + <%= link_to 'Message All your Contacts', sms_sends_new_all_sms_sends_path %> diff --git a/app/views/contacts/new.html.erb b/app/views/contacts/new.html.erb new file mode 100644 index 0000000..228dd28 --- /dev/null +++ b/app/views/contacts/new.html.erb @@ -0,0 +1,17 @@ +<%= form_for @contact, url: {action: "create"} do |f|%> + <% if @contact.errors.any? %> +
+

<%= pluralize(@contact.errors.count, "error") %> prohibited this Contact from being saved:

+ + +
+ <% end %> + First Name: <%= f.text_field :first_name%> +Last Name: <%= f.text_field :last_name%> + Phone Number: <%= f.text_field :phonenumber%> + <%= f.submit "create" %> +<% end %> diff --git a/app/views/devise/confirmations/new.html.erb b/app/views/devise/confirmations/new.html.erb new file mode 100644 index 0000000..2dea366 --- /dev/null +++ b/app/views/devise/confirmations/new.html.erb @@ -0,0 +1,16 @@ +

Resend confirmation instructions

+ +<%= form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f| %> + <%= devise_error_messages! %> + +
+ <%= f.label :email %>
+ <%= f.email_field :email, autofocus: true, autocomplete: "email", value: (resource.pending_reconfirmation? ? resource.unconfirmed_email : resource.email) %> +
+ +
+ <%= f.submit "Resend confirmation instructions" %> +
+<% end %> + +<%= render "devise/shared/links" %> diff --git a/app/views/devise/mailer/confirmation_instructions.html.erb b/app/views/devise/mailer/confirmation_instructions.html.erb new file mode 100644 index 0000000..dc55f64 --- /dev/null +++ b/app/views/devise/mailer/confirmation_instructions.html.erb @@ -0,0 +1,5 @@ +

Welcome <%= @email %>!

+ +

You can confirm your account email through the link below:

+ +

<%= link_to 'Confirm my account', confirmation_url(@resource, confirmation_token: @token) %>

diff --git a/app/views/devise/mailer/email_changed.html.erb b/app/views/devise/mailer/email_changed.html.erb new file mode 100644 index 0000000..32f4ba8 --- /dev/null +++ b/app/views/devise/mailer/email_changed.html.erb @@ -0,0 +1,7 @@ +

Hello <%= @email %>!

+ +<% if @resource.try(:unconfirmed_email?) %> +

We're contacting you to notify you that your email is being changed to <%= @resource.unconfirmed_email %>.

+<% else %> +

We're contacting you to notify you that your email has been changed to <%= @resource.email %>.

+<% end %> diff --git a/app/views/devise/mailer/password_change.html.erb b/app/views/devise/mailer/password_change.html.erb new file mode 100644 index 0000000..b41daf4 --- /dev/null +++ b/app/views/devise/mailer/password_change.html.erb @@ -0,0 +1,3 @@ +

Hello <%= @resource.email %>!

+ +

We're contacting you to notify you that your password has been changed.

diff --git a/app/views/devise/mailer/reset_password_instructions.html.erb b/app/views/devise/mailer/reset_password_instructions.html.erb new file mode 100644 index 0000000..f667dc1 --- /dev/null +++ b/app/views/devise/mailer/reset_password_instructions.html.erb @@ -0,0 +1,8 @@ +

Hello <%= @resource.email %>!

+ +

Someone has requested a link to change your password. You can do this through the link below.

+ +

<%= link_to 'Change my password', edit_password_url(@resource, reset_password_token: @token) %>

+ +

If you didn't request this, please ignore this email.

+

Your password won't change until you access the link above and create a new one.

diff --git a/app/views/devise/mailer/unlock_instructions.html.erb b/app/views/devise/mailer/unlock_instructions.html.erb new file mode 100644 index 0000000..41e148b --- /dev/null +++ b/app/views/devise/mailer/unlock_instructions.html.erb @@ -0,0 +1,7 @@ +

Hello <%= @resource.email %>!

+ +

Your account has been locked due to an excessive number of unsuccessful sign in attempts.

+ +

Click the link below to unlock your account:

+ +

<%= link_to 'Unlock my account', unlock_url(@resource, unlock_token: @token) %>

diff --git a/app/views/devise/passwords/edit.html.erb b/app/views/devise/passwords/edit.html.erb new file mode 100644 index 0000000..442036a --- /dev/null +++ b/app/views/devise/passwords/edit.html.erb @@ -0,0 +1,25 @@ +

Change your password

+ +<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %> + <%= devise_error_messages! %> + <%= f.hidden_field :reset_password_token %> + +
+ <%= f.label :password, "New password" %>
+ <% if @minimum_password_length %> + (<%= @minimum_password_length %> characters minimum)
+ <% end %> + <%= f.password_field :password, autofocus: true, autocomplete: "new-password" %> +
+ +
+ <%= f.label :password_confirmation, "Confirm new password" %>
+ <%= f.password_field :password_confirmation, autocomplete: "off" %> +
+ +
+ <%= f.submit "Change my password" %> +
+<% end %> + +<%= render "devise/shared/links" %> diff --git a/app/views/devise/passwords/new.html.erb b/app/views/devise/passwords/new.html.erb new file mode 100644 index 0000000..11b3d6a --- /dev/null +++ b/app/views/devise/passwords/new.html.erb @@ -0,0 +1,16 @@ +

Forgot your password?

+ +<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f| %> + <%= devise_error_messages! %> + +
+ <%= f.label :email %>
+ <%= f.email_field :email, autofocus: true, autocomplete: "email" %> +
+ +
+ <%= f.submit "Send me reset password instructions" %> +
+<% end %> + +<%= render "devise/shared/links" %> diff --git a/app/views/devise/registrations/edit.html.erb b/app/views/devise/registrations/edit.html.erb new file mode 100644 index 0000000..f465532 --- /dev/null +++ b/app/views/devise/registrations/edit.html.erb @@ -0,0 +1,43 @@ +

Edit <%= resource_name.to_s.humanize %>

+ +<%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %> + <%= devise_error_messages! %> + +
+ <%= f.label :email %>
+ <%= f.email_field :email, autofocus: true, autocomplete: "email" %> +
+ + <% if devise_mapping.confirmable? && resource.pending_reconfirmation? %> +
Currently waiting confirmation for: <%= resource.unconfirmed_email %>
+ <% end %> + +
+ <%= f.label :password %> (leave blank if you don't want to change it)
+ <%= f.password_field :password, autocomplete: "new-password" %> + <% if @minimum_password_length %> +
+ <%= @minimum_password_length %> characters minimum + <% end %> +
+ +
+ <%= f.label :password_confirmation %>
+ <%= f.password_field :password_confirmation, autocomplete: "new-password" %> +
+ +
+ <%= f.label :current_password %> (we need your current password to confirm your changes)
+ <%= f.password_field :current_password, autocomplete: "current-password" %> +
+ +
+ <%= f.submit "Update" %> +
+<% end %> + +

Cancel my account

+ +

Unhappy? <%= button_to "Cancel my account", registration_path(resource_name), data: { confirm: "Are you sure?" }, method: :delete %>

+ +<%= link_to "Back", :back %> diff --git a/app/views/devise/registrations/new.html.erb b/app/views/devise/registrations/new.html.erb new file mode 100644 index 0000000..36c9ed7 --- /dev/null +++ b/app/views/devise/registrations/new.html.erb @@ -0,0 +1,29 @@ +

Sign up

+ +<%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %> + <%= devise_error_messages! %> + +
+ <%= f.label :email %>
+ <%= f.email_field :email, autofocus: true, autocomplete: "email" %> +
+ +
+ <%= f.label :password %> + <% if @minimum_password_length %> + (<%= @minimum_password_length %> characters minimum) + <% end %>
+ <%= f.password_field :password, autocomplete: "new-password" %> +
+ +
+ <%= f.label :password_confirmation %>
+ <%= f.password_field :password_confirmation, autocomplete: "new-password" %> +
+ +
+ <%= f.submit "Sign up" %> +
+<% end %> + +<%= render "devise/shared/links" %> diff --git a/app/views/devise/sessions/new.html.erb b/app/views/devise/sessions/new.html.erb new file mode 100644 index 0000000..e3b9319 --- /dev/null +++ b/app/views/devise/sessions/new.html.erb @@ -0,0 +1,26 @@ +

Log in

+ +<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %> +
+ <%= f.label :email %>
+ <%= f.email_field :email, autofocus: true, autocomplete: "email" %> +
+ +
+ <%= f.label :password %>
+ <%= f.password_field :password, autocomplete: "current-password" %> +
+ + <% if devise_mapping.rememberable? -%> +
+ <%= f.check_box :remember_me %> + <%= f.label :remember_me %> +
+ <% end -%> + +
+ <%= f.submit "Log in" %> +
+<% end %> + +<%= render "devise/shared/links" %> diff --git a/app/views/devise/shared/_links.html.erb b/app/views/devise/shared/_links.html.erb new file mode 100644 index 0000000..e6a3e41 --- /dev/null +++ b/app/views/devise/shared/_links.html.erb @@ -0,0 +1,25 @@ +<%- if controller_name != 'sessions' %> + <%= link_to "Log in", new_session_path(resource_name) %>
+<% end -%> + +<%- if devise_mapping.registerable? && controller_name != 'registrations' %> + <%= link_to "Sign up", new_registration_path(resource_name) %>
+<% end -%> + +<%- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations' %> + <%= link_to "Forgot your password?", new_password_path(resource_name) %>
+<% end -%> + +<%- if devise_mapping.confirmable? && controller_name != 'confirmations' %> + <%= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name) %>
+<% end -%> + +<%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' %> + <%= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name) %>
+<% end -%> + +<%- if devise_mapping.omniauthable? %> + <%- resource_class.omniauth_providers.each do |provider| %> + <%= link_to "Sign in with #{OmniAuth::Utils.camelize(provider)}", omniauth_authorize_path(resource_name, provider) %>
+ <% end -%> +<% end -%> diff --git a/app/views/devise/unlocks/new.html.erb b/app/views/devise/unlocks/new.html.erb new file mode 100644 index 0000000..cfe8aa8 --- /dev/null +++ b/app/views/devise/unlocks/new.html.erb @@ -0,0 +1,16 @@ +

Resend unlock instructions

+ +<%= form_for(resource, as: resource_name, url: unlock_path(resource_name), html: { method: :post }) do |f| %> + <%= devise_error_messages! %> + +
+ <%= f.label :email %>
+ <%= f.email_field :email, autofocus: true, autocomplete: "email" %> +
+ +
+ <%= f.submit "Resend unlock instructions" %> +
+<% end %> + +<%= render "devise/shared/links" %> diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb new file mode 100644 index 0000000..009f144 --- /dev/null +++ b/app/views/layouts/application.html.erb @@ -0,0 +1,15 @@ + + + + RailsGirlsCodeChallenge + <%= csrf_meta_tags %> + <%= csp_meta_tag %> + + <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> + <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> + + + + <%= yield %> + + diff --git a/app/views/layouts/mailer.html.erb b/app/views/layouts/mailer.html.erb new file mode 100644 index 0000000..cbd34d2 --- /dev/null +++ b/app/views/layouts/mailer.html.erb @@ -0,0 +1,13 @@ + + + + + + + + + <%= yield %> + + diff --git a/app/views/layouts/mailer.text.erb b/app/views/layouts/mailer.text.erb new file mode 100644 index 0000000..37f0bdd --- /dev/null +++ b/app/views/layouts/mailer.text.erb @@ -0,0 +1 @@ +<%= yield %> diff --git a/app/views/sms_sends/new.html.erb b/app/views/sms_sends/new.html.erb new file mode 100644 index 0000000..e830ffb --- /dev/null +++ b/app/views/sms_sends/new.html.erb @@ -0,0 +1,6 @@ +<%= form_for @at, url: {action: "create"} do |f|%> +

Write a message to: <%= @contact.first_name%> <%=@contact.last_name%>

+ <%= f.hidden_field :contact_id, :value => @contact.id%> + message: <%= f.text_field :message%> +<%= f.submit "send" %> +<% end %> diff --git a/app/views/sms_sends/new_all.html.erb b/app/views/sms_sends/new_all.html.erb new file mode 100644 index 0000000..b7dd190 --- /dev/null +++ b/app/views/sms_sends/new_all.html.erb @@ -0,0 +1,6 @@ +<%= form_for @at, url: {action: "create_all"} do |f|%> +

Message all your contacts

+ <%= f.hidden_field :contact_id%> + message: <%= f.text_field :message%> +<%= f.submit "send" %> +<% end %> diff --git a/bin/bundle b/bin/bundle new file mode 100755 index 0000000..f19acf5 --- /dev/null +++ b/bin/bundle @@ -0,0 +1,3 @@ +#!/usr/bin/env ruby +ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) +load Gem.bin_path('bundler', 'bundle') diff --git a/bin/rails b/bin/rails new file mode 100755 index 0000000..5badb2f --- /dev/null +++ b/bin/rails @@ -0,0 +1,9 @@ +#!/usr/bin/env ruby +begin + load File.expand_path('../spring', __FILE__) +rescue LoadError => e + raise unless e.message.include?('spring') +end +APP_PATH = File.expand_path('../config/application', __dir__) +require_relative '../config/boot' +require 'rails/commands' diff --git a/bin/rake b/bin/rake new file mode 100755 index 0000000..d87d5f5 --- /dev/null +++ b/bin/rake @@ -0,0 +1,9 @@ +#!/usr/bin/env ruby +begin + load File.expand_path('../spring', __FILE__) +rescue LoadError => e + raise unless e.message.include?('spring') +end +require_relative '../config/boot' +require 'rake' +Rake.application.run diff --git a/bin/setup b/bin/setup new file mode 100755 index 0000000..94fd4d7 --- /dev/null +++ b/bin/setup @@ -0,0 +1,36 @@ +#!/usr/bin/env ruby +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = File.expand_path('..', __dir__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a starting point to setup your application. + # Add necessary setup steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + # Install JavaScript dependencies if using Yarn + # system('bin/yarn') + + # puts "\n== Copying sample files ==" + # unless File.exist?('config/database.yml') + # cp 'config/database.yml.sample', 'config/database.yml' + # end + + puts "\n== Preparing database ==" + system! 'bin/rails db:setup' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/bin/spring b/bin/spring new file mode 100755 index 0000000..fb2ec2e --- /dev/null +++ b/bin/spring @@ -0,0 +1,17 @@ +#!/usr/bin/env ruby + +# This file loads spring without using Bundler, in order to be fast. +# It gets overwritten when you run the `spring binstub` command. + +unless defined?(Spring) + require 'rubygems' + require 'bundler' + + lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) + spring = lockfile.specs.detect { |spec| spec.name == "spring" } + if spring + Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path + gem 'spring', spring.version + require 'spring/binstub' + end +end diff --git a/bin/update b/bin/update new file mode 100755 index 0000000..58bfaed --- /dev/null +++ b/bin/update @@ -0,0 +1,31 @@ +#!/usr/bin/env ruby +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = File.expand_path('..', __dir__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a way to update your development environment automatically. + # Add necessary update steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + # Install JavaScript dependencies if using Yarn + # system('bin/yarn') + + puts "\n== Updating database ==" + system! 'bin/rails db:migrate' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/bin/yarn b/bin/yarn new file mode 100755 index 0000000..460dd56 --- /dev/null +++ b/bin/yarn @@ -0,0 +1,11 @@ +#!/usr/bin/env ruby +APP_ROOT = File.expand_path('..', __dir__) +Dir.chdir(APP_ROOT) do + begin + exec "yarnpkg", *ARGV + rescue Errno::ENOENT + $stderr.puts "Yarn executable was not detected in the system." + $stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install" + exit 1 + end +end diff --git a/config.ru b/config.ru new file mode 100644 index 0000000..f7ba0b5 --- /dev/null +++ b/config.ru @@ -0,0 +1,5 @@ +# This file is used by Rack-based servers to start the application. + +require_relative 'config/environment' + +run Rails.application diff --git a/config/application.rb b/config/application.rb new file mode 100644 index 0000000..49da405 --- /dev/null +++ b/config/application.rb @@ -0,0 +1,19 @@ +require_relative 'boot' + +require 'rails/all' + +# Require the gems listed in Gemfile, including any gems +# you've limited to :test, :development, or :production. +Bundler.require(*Rails.groups) + +module RailsGirlsCodeChallenge + class Application < Rails::Application + # Initialize configuration defaults for originally generated Rails version. + config.load_defaults 5.2 + + # Settings in config/environments/* take precedence over those specified here. + # Application configuration can go into files in config/initializers + # -- all .rb files in that directory are automatically loaded after loading + # the framework and any gems in your application. + end +end diff --git a/config/boot.rb b/config/boot.rb new file mode 100644 index 0000000..b9e460c --- /dev/null +++ b/config/boot.rb @@ -0,0 +1,4 @@ +ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) + +require 'bundler/setup' # Set up gems listed in the Gemfile. +require 'bootsnap/setup' # Speed up boot time by caching expensive operations. diff --git a/config/cable.yml b/config/cable.yml new file mode 100644 index 0000000..52794f3 --- /dev/null +++ b/config/cable.yml @@ -0,0 +1,10 @@ +development: + adapter: async + +test: + adapter: async + +production: + adapter: redis + url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %> + channel_prefix: RailsGirlsCodeChallenge_production diff --git a/config/credentials.yml.enc b/config/credentials.yml.enc new file mode 100644 index 0000000..dde5937 --- /dev/null +++ b/config/credentials.yml.enc @@ -0,0 +1 @@ +MdBYW7VAp20rmX/uKFeG1EQmIOdPkibDgwxSOYRHB6jd8cSxLwzcxesCb/CCWZQIeNnXIJjcl9LiAokRF1cHa+oTF2FOeTvvRQvozQtTnSs1xGrm72tErYzGoY0RZOamsBf7k6GYk4VTmIqa4etvup3Mg4uD0JWQ6YYWE8SbLslW/89t2Y9Me68v+Te5gJXJ5oxvWet0mOyXI7ViTfTbhtlvcdvgu7heBnRtb+N3rj3Hk+xi4vkWl2T4dchnMl++j97h+XPrCsLpEvAqWE4BHXBqdqwWPRlhi7E2q6Ta73RhVqJ9dboBaqbzzKUePvhSlr12s3YFowFrt/hi+2fIEeG+BYHyImviEFpxxPnyHcx2LbzEJeZVjtQoaocmfAH+PpwzxZlLWNVkUs0FJcrZF9XP20st9W7HSWAo--EQ3nUfu34NXnBjr+--xoBZsdY4FVl8qIKVcHx2Rw== \ No newline at end of file diff --git a/config/database.yml b/config/database.yml new file mode 100644 index 0000000..0d02f24 --- /dev/null +++ b/config/database.yml @@ -0,0 +1,25 @@ +# SQLite version 3.x +# gem install sqlite3 +# +# Ensure the SQLite 3 gem is defined in your Gemfile +# gem 'sqlite3' +# +default: &default + adapter: sqlite3 + pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> + timeout: 5000 + +development: + <<: *default + database: db/development.sqlite3 + +# Warning: The database defined as "test" will be erased and +# re-generated from your development database when you run "rake". +# Do not set this db to the same as development or production. +test: + <<: *default + database: db/test.sqlite3 + +production: + <<: *default + database: db/production.sqlite3 diff --git a/config/environment.rb b/config/environment.rb new file mode 100644 index 0000000..426333b --- /dev/null +++ b/config/environment.rb @@ -0,0 +1,5 @@ +# Load the Rails application. +require_relative 'application' + +# Initialize the Rails application. +Rails.application.initialize! diff --git a/config/environments/development.rb b/config/environments/development.rb new file mode 100644 index 0000000..4576240 --- /dev/null +++ b/config/environments/development.rb @@ -0,0 +1,62 @@ +Rails.application.configure do + # Settings specified here will take precedence over those in config/application.rb. + + # In the development environment your application's code is reloaded on + # every request. This slows down response time but is perfect for development + # since you don't have to restart the web server when you make code changes. + config.cache_classes = false + + # Do not eager load code on boot. + config.eager_load = false + + # Show full error reports. + config.consider_all_requests_local = true + + # Enable/disable caching. By default caching is disabled. + # Run rails dev:cache to toggle caching. + if Rails.root.join('tmp', 'caching-dev.txt').exist? + config.action_controller.perform_caching = true + + config.cache_store = :memory_store + config.public_file_server.headers = { + 'Cache-Control' => "public, max-age=#{2.days.to_i}" + } + else + config.action_controller.perform_caching = false + + config.cache_store = :null_store + end + + # Store uploaded files on the local file system (see config/storage.yml for options) + config.active_storage.service = :local + + # Don't care if the mailer can't send. + config.action_mailer.raise_delivery_errors = false + + config.action_mailer.perform_caching = false + + # Print deprecation notices to the Rails logger. + config.active_support.deprecation = :log + + # Raise an error on page load if there are pending migrations. + config.active_record.migration_error = :page_load + + # Highlight code that triggered database queries in logs. + config.active_record.verbose_query_logs = true + + # Debug mode disables concatenation and preprocessing of assets. + # This option may cause significant delays in view rendering with a large + # number of complex assets. + config.assets.debug = true + + # Suppress logger output for asset requests. + config.assets.quiet = true + + # Raises error for missing translations + # config.action_view.raise_on_missing_translations = true + + # Use an evented file watcher to asynchronously detect changes in source code, + # routes, locales, etc. This feature depends on the listen gem. + config.file_watcher = ActiveSupport::EventedFileUpdateChecker + config.action_mailer.default_url_options = { host: 'localhost', port: 3000 } +end diff --git a/config/environments/production.rb b/config/environments/production.rb new file mode 100644 index 0000000..650e7b6 --- /dev/null +++ b/config/environments/production.rb @@ -0,0 +1,94 @@ +Rails.application.configure do + # Settings specified here will take precedence over those in config/application.rb. + + # Code is not reloaded between requests. + config.cache_classes = true + + # Eager load code on boot. This eager loads most of Rails and + # your application in memory, allowing both threaded web servers + # and those relying on copy on write to perform better. + # Rake tasks automatically ignore this option for performance. + config.eager_load = true + + # Full error reports are disabled and caching is turned on. + config.consider_all_requests_local = false + config.action_controller.perform_caching = true + + # Ensures that a master key has been made available in either ENV["RAILS_MASTER_KEY"] + # or in config/master.key. This key is used to decrypt credentials (and other encrypted files). + # config.require_master_key = true + + # Disable serving static files from the `/public` folder by default since + # Apache or NGINX already handles this. + config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? + + # Compress JavaScripts and CSS. + config.assets.js_compressor = :uglifier + # config.assets.css_compressor = :sass + + # Do not fallback to assets pipeline if a precompiled asset is missed. + config.assets.compile = false + + # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb + + # Enable serving of images, stylesheets, and JavaScripts from an asset server. + # config.action_controller.asset_host = 'http://assets.example.com' + + # Specifies the header that your server uses for sending files. + # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache + # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX + + # Store uploaded files on the local file system (see config/storage.yml for options) + config.active_storage.service = :local + + # Mount Action Cable outside main process or domain + # config.action_cable.mount_path = nil + # config.action_cable.url = 'wss://example.com/cable' + # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ] + + # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. + # config.force_ssl = true + + # Use the lowest log level to ensure availability of diagnostic information + # when problems arise. + config.log_level = :debug + + # Prepend all log lines with the following tags. + config.log_tags = [ :request_id ] + + # Use a different cache store in production. + # config.cache_store = :mem_cache_store + + # Use a real queuing backend for Active Job (and separate queues per environment) + # config.active_job.queue_adapter = :resque + # config.active_job.queue_name_prefix = "RailsGirlsCodeChallenge_#{Rails.env}" + + config.action_mailer.perform_caching = false + + # Ignore bad email addresses and do not raise email delivery errors. + # Set this to true and configure the email server for immediate delivery to raise delivery errors. + # config.action_mailer.raise_delivery_errors = false + + # Enable locale fallbacks for I18n (makes lookups for any locale fall back to + # the I18n.default_locale when a translation cannot be found). + config.i18n.fallbacks = true + + # Send deprecation notices to registered listeners. + config.active_support.deprecation = :notify + + # Use default logging formatter so that PID and timestamp are not suppressed. + config.log_formatter = ::Logger::Formatter.new + + # Use a different logger for distributed setups. + # require 'syslog/logger' + # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name') + + if ENV["RAILS_LOG_TO_STDOUT"].present? + logger = ActiveSupport::Logger.new(STDOUT) + logger.formatter = config.log_formatter + config.logger = ActiveSupport::TaggedLogging.new(logger) + end + + # Do not dump schema after migrations. + config.active_record.dump_schema_after_migration = false +end diff --git a/config/environments/test.rb b/config/environments/test.rb new file mode 100644 index 0000000..0a38fd3 --- /dev/null +++ b/config/environments/test.rb @@ -0,0 +1,46 @@ +Rails.application.configure do + # Settings specified here will take precedence over those in config/application.rb. + + # The test environment is used exclusively to run your application's + # test suite. You never need to work with it otherwise. Remember that + # your test database is "scratch space" for the test suite and is wiped + # and recreated between test runs. Don't rely on the data there! + config.cache_classes = true + + # Do not eager load code on boot. This avoids loading your whole application + # just for the purpose of running a single test. If you are using a tool that + # preloads Rails for running tests, you may have to set it to true. + config.eager_load = false + + # Configure public file server for tests with Cache-Control for performance. + config.public_file_server.enabled = true + config.public_file_server.headers = { + 'Cache-Control' => "public, max-age=#{1.hour.to_i}" + } + + # Show full error reports and disable caching. + config.consider_all_requests_local = true + config.action_controller.perform_caching = false + + # Raise exceptions instead of rendering exception templates. + config.action_dispatch.show_exceptions = false + + # Disable request forgery protection in test environment. + config.action_controller.allow_forgery_protection = false + + # Store uploaded files on the local file system in a temporary directory + config.active_storage.service = :test + + config.action_mailer.perform_caching = false + + # Tell Action Mailer not to deliver emails to the real world. + # The :test delivery method accumulates sent emails in the + # ActionMailer::Base.deliveries array. + config.action_mailer.delivery_method = :test + + # Print deprecation notices to the stderr. + config.active_support.deprecation = :stderr + + # Raises error for missing translations + # config.action_view.raise_on_missing_translations = true +end diff --git a/config/initializers/application_controller_renderer.rb b/config/initializers/application_controller_renderer.rb new file mode 100644 index 0000000..89d2efa --- /dev/null +++ b/config/initializers/application_controller_renderer.rb @@ -0,0 +1,8 @@ +# Be sure to restart your server when you modify this file. + +# ActiveSupport::Reloader.to_prepare do +# ApplicationController.renderer.defaults.merge!( +# http_host: 'example.org', +# https: false +# ) +# end diff --git a/config/initializers/assets.rb b/config/initializers/assets.rb new file mode 100644 index 0000000..4b828e8 --- /dev/null +++ b/config/initializers/assets.rb @@ -0,0 +1,14 @@ +# Be sure to restart your server when you modify this file. + +# Version of your assets, change this if you want to expire all your assets. +Rails.application.config.assets.version = '1.0' + +# Add additional assets to the asset load path. +# Rails.application.config.assets.paths << Emoji.images_path +# Add Yarn node_modules folder to the asset load path. +Rails.application.config.assets.paths << Rails.root.join('node_modules') + +# Precompile additional assets. +# application.js, application.css, and all non-JS/CSS in the app/assets +# folder are already added. +# Rails.application.config.assets.precompile += %w( admin.js admin.css ) diff --git a/config/initializers/backtrace_silencers.rb b/config/initializers/backtrace_silencers.rb new file mode 100644 index 0000000..59385cd --- /dev/null +++ b/config/initializers/backtrace_silencers.rb @@ -0,0 +1,7 @@ +# Be sure to restart your server when you modify this file. + +# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces. +# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ } + +# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code. +# Rails.backtrace_cleaner.remove_silencers! diff --git a/config/initializers/content_security_policy.rb b/config/initializers/content_security_policy.rb new file mode 100644 index 0000000..d3bcaa5 --- /dev/null +++ b/config/initializers/content_security_policy.rb @@ -0,0 +1,25 @@ +# Be sure to restart your server when you modify this file. + +# Define an application-wide content security policy +# For further information see the following documentation +# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy + +# Rails.application.config.content_security_policy do |policy| +# policy.default_src :self, :https +# policy.font_src :self, :https, :data +# policy.img_src :self, :https, :data +# policy.object_src :none +# policy.script_src :self, :https +# policy.style_src :self, :https + +# # Specify URI for violation reports +# # policy.report_uri "/csp-violation-report-endpoint" +# end + +# If you are using UJS then enable automatic nonce generation +# Rails.application.config.content_security_policy_nonce_generator = -> request { SecureRandom.base64(16) } + +# Report CSP violations to a specified URI +# For further information see the following documentation: +# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only +# Rails.application.config.content_security_policy_report_only = true diff --git a/config/initializers/cookies_serializer.rb b/config/initializers/cookies_serializer.rb new file mode 100644 index 0000000..5a6a32d --- /dev/null +++ b/config/initializers/cookies_serializer.rb @@ -0,0 +1,5 @@ +# Be sure to restart your server when you modify this file. + +# Specify a serializer for the signed and encrypted cookie jars. +# Valid options are :json, :marshal, and :hybrid. +Rails.application.config.action_dispatch.cookies_serializer = :json diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb new file mode 100644 index 0000000..01ed09d --- /dev/null +++ b/config/initializers/devise.rb @@ -0,0 +1,290 @@ +# frozen_string_literal: true + +# Use this hook to configure devise mailer, warden hooks and so forth. +# Many of these configuration options can be set straight in your model. +Devise.setup do |config| + # The secret key used by Devise. Devise uses this key to generate + # random tokens. Changing this key will render invalid all existing + # confirmation, reset password and unlock tokens in the database. + # Devise will use the `secret_key_base` as its `secret_key` + # by default. You can change it below and use your own secret key. + # config.secret_key = 'f6947d10fccf7914a7cdb38462286447a6e675177414a5d183f76f3ea4a281cd94bd19b11f22daef1d64ba0e97cc1daf878ac728af640925efcc1cb7b2d80bea' + + # ==> Controller configuration + # Configure the parent class to the devise controllers. + # config.parent_controller = 'DeviseController' + + # ==> Mailer Configuration + # Configure the e-mail address which will be shown in Devise::Mailer, + # note that it will be overwritten if you use your own mailer class + # with default "from" parameter. + config.mailer_sender = 'please-change-me-at-config-initializers-devise@example.com' + + # Configure the class responsible to send e-mails. + # config.mailer = 'Devise::Mailer' + + # Configure the parent class responsible to send e-mails. + # config.parent_mailer = 'ActionMailer::Base' + + # ==> ORM configuration + # Load and configure the ORM. Supports :active_record (default) and + # :mongoid (bson_ext recommended) by default. Other ORMs may be + # available as additional gems. + require 'devise/orm/active_record' + + # ==> Configuration for any authentication mechanism + # Configure which keys are used when authenticating a user. The default is + # just :email. You can configure it to use [:username, :subdomain], so for + # authenticating a user, both parameters are required. Remember that those + # parameters are used only when authenticating and not when retrieving from + # session. If you need permissions, you should implement that in a before filter. + # You can also supply a hash where the value is a boolean determining whether + # or not authentication should be aborted when the value is not present. + # config.authentication_keys = [:email] + + # Configure parameters from the request object used for authentication. Each entry + # given should be a request method and it will automatically be passed to the + # find_for_authentication method and considered in your model lookup. For instance, + # if you set :request_keys to [:subdomain], :subdomain will be used on authentication. + # The same considerations mentioned for authentication_keys also apply to request_keys. + # config.request_keys = [] + + # Configure which authentication keys should be case-insensitive. + # These keys will be downcased upon creating or modifying a user and when used + # to authenticate or find a user. Default is :email. + config.case_insensitive_keys = [:email] + + # Configure which authentication keys should have whitespace stripped. + # These keys will have whitespace before and after removed upon creating or + # modifying a user and when used to authenticate or find a user. Default is :email. + config.strip_whitespace_keys = [:email] + + # Tell if authentication through request.params is enabled. True by default. + # It can be set to an array that will enable params authentication only for the + # given strategies, for example, `config.params_authenticatable = [:database]` will + # enable it only for database (email + password) authentication. + # config.params_authenticatable = true + + # Tell if authentication through HTTP Auth is enabled. False by default. + # It can be set to an array that will enable http authentication only for the + # given strategies, for example, `config.http_authenticatable = [:database]` will + # enable it only for database authentication. The supported strategies are: + # :database = Support basic authentication with authentication key + password + # config.http_authenticatable = false + + # If 401 status code should be returned for AJAX requests. True by default. + # config.http_authenticatable_on_xhr = true + + # The realm used in Http Basic Authentication. 'Application' by default. + # config.http_authentication_realm = 'Application' + + # It will change confirmation, password recovery and other workflows + # to behave the same regardless if the e-mail provided was right or wrong. + # Does not affect registerable. + # config.paranoid = true + + # By default Devise will store the user in session. You can skip storage for + # particular strategies by setting this option. + # Notice that if you are skipping storage for all authentication paths, you + # may want to disable generating routes to Devise's sessions controller by + # passing skip: :sessions to `devise_for` in your config/routes.rb + config.skip_session_storage = [:http_auth] + + # By default, Devise cleans up the CSRF token on authentication to + # avoid CSRF token fixation attacks. This means that, when using AJAX + # requests for sign in and sign up, you need to get a new CSRF token + # from the server. You can disable this option at your own risk. + # config.clean_up_csrf_token_on_authentication = true + + # When false, Devise will not attempt to reload routes on eager load. + # This can reduce the time taken to boot the app but if your application + # requires the Devise mappings to be loaded during boot time the application + # won't boot properly. + # config.reload_routes = true + + # ==> Configuration for :database_authenticatable + # For bcrypt, this is the cost for hashing the password and defaults to 11. If + # using other algorithms, it sets how many times you want the password to be hashed. + # + # Limiting the stretches to just one in testing will increase the performance of + # your test suite dramatically. However, it is STRONGLY RECOMMENDED to not use + # a value less than 10 in other environments. Note that, for bcrypt (the default + # algorithm), the cost increases exponentially with the number of stretches (e.g. + # a value of 20 is already extremely slow: approx. 60 seconds for 1 calculation). + config.stretches = Rails.env.test? ? 1 : 11 + + # Set up a pepper to generate the hashed password. + # config.pepper = 'c2691681bf5f39721326d28eebe44bc37bfb41fe602e2aea353f667b9ba651db6c75cb45faa0bf3bbdab9af304be457b81619bf3f4daa0d083c9e477d25d089e' + + # Send a notification to the original email when the user's email is changed. + # config.send_email_changed_notification = false + + # Send a notification email when the user's password is changed. + # config.send_password_change_notification = false + + # ==> Configuration for :confirmable + # A period that the user is allowed to access the website even without + # confirming their account. For instance, if set to 2.days, the user will be + # able to access the website for two days without confirming their account, + # access will be blocked just in the third day. Default is 0.days, meaning + # the user cannot access the website without confirming their account. + # config.allow_unconfirmed_access_for = 2.days + + # A period that the user is allowed to confirm their account before their + # token becomes invalid. For example, if set to 3.days, the user can confirm + # their account within 3 days after the mail was sent, but on the fourth day + # their account can't be confirmed with the token any more. + # Default is nil, meaning there is no restriction on how long a user can take + # before confirming their account. + # config.confirm_within = 3.days + + # If true, requires any email changes to be confirmed (exactly the same way as + # initial account confirmation) to be applied. Requires additional unconfirmed_email + # db field (see migrations). Until confirmed, new email is stored in + # unconfirmed_email column, and copied to email column on successful confirmation. + config.reconfirmable = true + + # Defines which key will be used when confirming an account + # config.confirmation_keys = [:email] + + # ==> Configuration for :rememberable + # The time the user will be remembered without asking for credentials again. + # config.remember_for = 2.weeks + + # Invalidates all the remember me tokens when the user signs out. + config.expire_all_remember_me_on_sign_out = true + + # If true, extends the user's remember period when remembered via cookie. + # config.extend_remember_period = false + + # Options to be passed to the created cookie. For instance, you can set + # secure: true in order to force SSL only cookies. + # config.rememberable_options = {} + + # ==> Configuration for :validatable + # Range for password length. + config.password_length = 6..128 + + # Email regex used to validate email formats. It simply asserts that + # one (and only one) @ exists in the given string. This is mainly + # to give user feedback and not to assert the e-mail validity. + config.email_regexp = /\A[^@\s]+@[^@\s]+\z/ + + # ==> Configuration for :timeoutable + # The time you want to timeout the user session without activity. After this + # time the user will be asked for credentials again. Default is 30 minutes. + # config.timeout_in = 30.minutes + + # ==> Configuration for :lockable + # Defines which strategy will be used to lock an account. + # :failed_attempts = Locks an account after a number of failed attempts to sign in. + # :none = No lock strategy. You should handle locking by yourself. + # config.lock_strategy = :failed_attempts + + # Defines which key will be used when locking and unlocking an account + # config.unlock_keys = [:email] + + # Defines which strategy will be used to unlock an account. + # :email = Sends an unlock link to the user email + # :time = Re-enables login after a certain amount of time (see :unlock_in below) + # :both = Enables both strategies + # :none = No unlock strategy. You should handle unlocking by yourself. + # config.unlock_strategy = :both + + # Number of authentication tries before locking an account if lock_strategy + # is failed attempts. + # config.maximum_attempts = 20 + + # Time interval to unlock the account if :time is enabled as unlock_strategy. + # config.unlock_in = 1.hour + + # Warn on the last attempt before the account is locked. + # config.last_attempt_warning = true + + # ==> Configuration for :recoverable + # + # Defines which key will be used when recovering the password for an account + # config.reset_password_keys = [:email] + + # Time interval you can reset your password with a reset password key. + # Don't put a too small interval or your users won't have the time to + # change their passwords. + config.reset_password_within = 6.hours + + # When set to false, does not sign a user in automatically after their password is + # reset. Defaults to true, so a user is signed in automatically after a reset. + # config.sign_in_after_reset_password = true + + # ==> Configuration for :encryptable + # Allow you to use another hashing or encryption algorithm besides bcrypt (default). + # You can use :sha1, :sha512 or algorithms from others authentication tools as + # :clearance_sha1, :authlogic_sha512 (then you should set stretches above to 20 + # for default behavior) and :restful_authentication_sha1 (then you should set + # stretches to 10, and copy REST_AUTH_SITE_KEY to pepper). + # + # Require the `devise-encryptable` gem when using anything other than bcrypt + # config.encryptor = :sha512 + + # ==> Scopes configuration + # Turn scoped views on. Before rendering "sessions/new", it will first check for + # "users/sessions/new". It's turned off by default because it's slower if you + # are using only default views. + # config.scoped_views = false + + # Configure the default scope given to Warden. By default it's the first + # devise role declared in your routes (usually :user). + # config.default_scope = :user + + # Set this configuration to false if you want /users/sign_out to sign out + # only the current scope. By default, Devise signs out all scopes. + # config.sign_out_all_scopes = true + + # ==> Navigation configuration + # Lists the formats that should be treated as navigational. Formats like + # :html, should redirect to the sign in page when the user does not have + # access, but formats like :xml or :json, should return 401. + # + # If you have any extra navigational formats, like :iphone or :mobile, you + # should add them to the navigational formats lists. + # + # The "*/*" below is required to match Internet Explorer requests. + # config.navigational_formats = ['*/*', :html] + + # The default HTTP method used to sign out a resource. Default is :delete. + config.sign_out_via = :delete + + # ==> OmniAuth + # Add a new OmniAuth provider. Check the wiki for more information on setting + # up on your models and hooks. + # config.omniauth :github, 'APP_ID', 'APP_SECRET', scope: 'user,public_repo' + + # ==> Warden configuration + # If you want to use other strategies, that are not supported by Devise, or + # change the failure app, you can configure them inside the config.warden block. + # + # config.warden do |manager| + # manager.intercept_401 = false + # manager.default_strategies(scope: :user).unshift :some_external_strategy + # end + + # ==> Mountable engine configurations + # When using Devise inside an engine, let's call it `MyEngine`, and this engine + # is mountable, there are some extra configurations to be taken into account. + # The following options are available, assuming the engine is mounted as: + # + # mount MyEngine, at: '/my_engine' + # + # The router that invoked `devise_for`, in the example above, would be: + # config.router_name = :my_engine + # + # When using OmniAuth, Devise cannot automatically set OmniAuth path, + # so you need to do it manually. For the users scope, it would be: + # config.omniauth_path_prefix = '/my_engine/users/auth' + + # ==> Turbolinks configuration + # If your app is using Turbolinks, Turbolinks::Controller needs to be included to make redirection work correctly: + # + # ActiveSupport.on_load(:devise_failure_app) do + # include Turbolinks::Controller + # end +end diff --git a/config/initializers/filter_parameter_logging.rb b/config/initializers/filter_parameter_logging.rb new file mode 100644 index 0000000..4a994e1 --- /dev/null +++ b/config/initializers/filter_parameter_logging.rb @@ -0,0 +1,4 @@ +# Be sure to restart your server when you modify this file. + +# Configure sensitive parameters which will be filtered from the log file. +Rails.application.config.filter_parameters += [:password] diff --git a/config/initializers/inflections.rb b/config/initializers/inflections.rb new file mode 100644 index 0000000..ac033bf --- /dev/null +++ b/config/initializers/inflections.rb @@ -0,0 +1,16 @@ +# Be sure to restart your server when you modify this file. + +# Add new inflection rules using the following format. Inflections +# are locale specific, and you may define rules for as many different +# locales as you wish. All of these examples are active by default: +# ActiveSupport::Inflector.inflections(:en) do |inflect| +# inflect.plural /^(ox)$/i, '\1en' +# inflect.singular /^(ox)en/i, '\1' +# inflect.irregular 'person', 'people' +# inflect.uncountable %w( fish sheep ) +# end + +# These inflection rules are supported but not enabled by default: +# ActiveSupport::Inflector.inflections(:en) do |inflect| +# inflect.acronym 'RESTful' +# end diff --git a/config/initializers/mime_types.rb b/config/initializers/mime_types.rb new file mode 100644 index 0000000..dc18996 --- /dev/null +++ b/config/initializers/mime_types.rb @@ -0,0 +1,4 @@ +# Be sure to restart your server when you modify this file. + +# Add new mime types for use in respond_to blocks: +# Mime::Type.register "text/richtext", :rtf diff --git a/config/initializers/wrap_parameters.rb b/config/initializers/wrap_parameters.rb new file mode 100644 index 0000000..bbfc396 --- /dev/null +++ b/config/initializers/wrap_parameters.rb @@ -0,0 +1,14 @@ +# Be sure to restart your server when you modify this file. + +# This file contains settings for ActionController::ParamsWrapper which +# is enabled by default. + +# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array. +ActiveSupport.on_load(:action_controller) do + wrap_parameters format: [:json] +end + +# To enable root element in JSON for ActiveRecord objects. +# ActiveSupport.on_load(:active_record) do +# self.include_root_in_json = true +# end diff --git a/config/locales/devise.en.yml b/config/locales/devise.en.yml new file mode 100644 index 0000000..0b8f130 --- /dev/null +++ b/config/locales/devise.en.yml @@ -0,0 +1,64 @@ +# Additional translations at https://github.com/plataformatec/devise/wiki/I18n + +en: + devise: + confirmations: + confirmed: "Your email address has been successfully confirmed." + send_instructions: "You will receive an email with instructions for how to confirm your email address in a few minutes." + send_paranoid_instructions: "If your email address exists in our database, you will receive an email with instructions for how to confirm your email address in a few minutes." + failure: + already_authenticated: "You are already signed in." + inactive: "Your account is not activated yet." + invalid: "Invalid %{authentication_keys} or password." + locked: "Your account is locked." + last_attempt: "You have one more attempt before your account is locked." + not_found_in_database: "Invalid %{authentication_keys} or password." + timeout: "Your session expired. Please sign in again to continue." + unauthenticated: "You need to sign in or sign up before continuing." + unconfirmed: "You have to confirm your email address before continuing." + mailer: + confirmation_instructions: + subject: "Confirmation instructions" + reset_password_instructions: + subject: "Reset password instructions" + unlock_instructions: + subject: "Unlock instructions" + email_changed: + subject: "Email Changed" + password_change: + subject: "Password Changed" + omniauth_callbacks: + failure: "Could not authenticate you from %{kind} because \"%{reason}\"." + success: "Successfully authenticated from %{kind} account." + passwords: + no_token: "You can't access this page without coming from a password reset email. If you do come from a password reset email, please make sure you used the full URL provided." + send_instructions: "You will receive an email with instructions on how to reset your password in a few minutes." + send_paranoid_instructions: "If your email address exists in our database, you will receive a password recovery link at your email address in a few minutes." + updated: "Your password has been changed successfully. You are now signed in." + updated_not_active: "Your password has been changed successfully." + registrations: + destroyed: "Bye! Your account has been successfully cancelled. We hope to see you again soon." + signed_up: "Welcome! You have signed up successfully." + signed_up_but_inactive: "You have signed up successfully. However, we could not sign you in because your account is not yet activated." + signed_up_but_locked: "You have signed up successfully. However, we could not sign you in because your account is locked." + signed_up_but_unconfirmed: "A message with a confirmation link has been sent to your email address. Please follow the link to activate your account." + update_needs_confirmation: "You updated your account successfully, but we need to verify your new email address. Please check your email and follow the confirm link to confirm your new email address." + updated: "Your account has been updated successfully." + sessions: + signed_in: "Signed in successfully." + signed_out: "Signed out successfully." + already_signed_out: "Signed out successfully." + unlocks: + send_instructions: "You will receive an email with instructions for how to unlock your account in a few minutes." + send_paranoid_instructions: "If your account exists, you will receive an email with instructions for how to unlock it in a few minutes." + unlocked: "Your account has been unlocked successfully. Please sign in to continue." + errors: + messages: + already_confirmed: "was already confirmed, please try signing in" + confirmation_period_expired: "needs to be confirmed within %{period}, please request a new one" + expired: "has expired, please request a new one" + not_found: "not found" + not_locked: "was not locked" + not_saved: + one: "1 error prohibited this %{resource} from being saved:" + other: "%{count} errors prohibited this %{resource} from being saved:" diff --git a/config/locales/en.yml b/config/locales/en.yml new file mode 100644 index 0000000..decc5a8 --- /dev/null +++ b/config/locales/en.yml @@ -0,0 +1,33 @@ +# Files in the config/locales directory are used for internationalization +# and are automatically loaded by Rails. If you want to use locales other +# than English, add the necessary files in this directory. +# +# To use the locales, use `I18n.t`: +# +# I18n.t 'hello' +# +# In views, this is aliased to just `t`: +# +# <%= t('hello') %> +# +# To use a different locale, set it with `I18n.locale`: +# +# I18n.locale = :es +# +# This would use the information in config/locales/es.yml. +# +# The following keys must be escaped otherwise they will not be retrieved by +# the default I18n backend: +# +# true, false, on, off, yes, no +# +# Instead, surround them with single quotes. +# +# en: +# 'true': 'foo' +# +# To learn more, please read the Rails Internationalization guide +# available at http://guides.rubyonrails.org/i18n.html. + +en: + hello: "Hello world" diff --git a/config/master.key b/config/master.key new file mode 100644 index 0000000..8a2765e --- /dev/null +++ b/config/master.key @@ -0,0 +1 @@ +76a6ab80cfea9457d553c1708aa4d648 \ No newline at end of file diff --git a/config/puma.rb b/config/puma.rb new file mode 100644 index 0000000..a5eccf8 --- /dev/null +++ b/config/puma.rb @@ -0,0 +1,34 @@ +# Puma can serve each request in a thread from an internal thread pool. +# The `threads` method setting takes two numbers: a minimum and maximum. +# Any libraries that use thread pools should be configured to match +# the maximum value specified for Puma. Default is set to 5 threads for minimum +# and maximum; this matches the default thread size of Active Record. +# +threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 } +threads threads_count, threads_count + +# Specifies the `port` that Puma will listen on to receive requests; default is 3000. +# +port ENV.fetch("PORT") { 3000 } + +# Specifies the `environment` that Puma will run in. +# +environment ENV.fetch("RAILS_ENV") { "development" } + +# Specifies the number of `workers` to boot in clustered mode. +# Workers are forked webserver processes. If using threads and workers together +# the concurrency of the application would be max `threads` * `workers`. +# Workers do not work on JRuby or Windows (both of which do not support +# processes). +# +# workers ENV.fetch("WEB_CONCURRENCY") { 2 } + +# Use the `preload_app!` method when specifying a `workers` number. +# This directive tells Puma to first boot the application and load code +# before forking the application. This takes advantage of Copy On Write +# process behavior so workers use less memory. +# +# preload_app! + +# Allow puma to be restarted by `rails restart` command. +plugin :tmp_restart diff --git a/config/routes.rb b/config/routes.rb new file mode 100644 index 0000000..15a60af --- /dev/null +++ b/config/routes.rb @@ -0,0 +1,10 @@ +Rails.application.routes.draw do + devise_for :users + resources :contacts + resources :sms_sends do + get 'sms_sends/new_all', to: 'sms_sends#new_all', on: :collection + post 'sms_sends', to: 'sms_sends#create_all', on: :collection + end + root 'contacts#index' + # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html +end diff --git a/config/spring.rb b/config/spring.rb new file mode 100644 index 0000000..9fa7863 --- /dev/null +++ b/config/spring.rb @@ -0,0 +1,6 @@ +%w[ + .ruby-version + .rbenv-vars + tmp/restart.txt + tmp/caching-dev.txt +].each { |path| Spring.watch(path) } diff --git a/config/storage.yml b/config/storage.yml new file mode 100644 index 0000000..d32f76e --- /dev/null +++ b/config/storage.yml @@ -0,0 +1,34 @@ +test: + service: Disk + root: <%= Rails.root.join("tmp/storage") %> + +local: + service: Disk + root: <%= Rails.root.join("storage") %> + +# Use rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key) +# amazon: +# service: S3 +# access_key_id: <%= Rails.application.credentials.dig(:aws, :access_key_id) %> +# secret_access_key: <%= Rails.application.credentials.dig(:aws, :secret_access_key) %> +# region: us-east-1 +# bucket: your_own_bucket + +# Remember not to checkin your GCS keyfile to a repository +# google: +# service: GCS +# project: your_project +# credentials: <%= Rails.root.join("path/to/gcs.keyfile") %> +# bucket: your_own_bucket + +# Use rails credentials:edit to set the Azure Storage secret (as azure_storage:storage_access_key) +# microsoft: +# service: AzureStorage +# storage_account_name: your_account_name +# storage_access_key: <%= Rails.application.credentials.dig(:azure_storage, :storage_access_key) %> +# container: your_container_name + +# mirror: +# service: Mirror +# primary: local +# mirrors: [ amazon, google, microsoft ] diff --git a/db/development.sqlite3 b/db/development.sqlite3 new file mode 100644 index 0000000..f898cf8 Binary files /dev/null and b/db/development.sqlite3 differ diff --git a/db/migrate/20180920130430_devise_create_users.rb b/db/migrate/20180920130430_devise_create_users.rb new file mode 100644 index 0000000..f674a59 --- /dev/null +++ b/db/migrate/20180920130430_devise_create_users.rb @@ -0,0 +1,44 @@ +# frozen_string_literal: true + +class DeviseCreateUsers < ActiveRecord::Migration[5.2] + def change + create_table :users do |t| + ## Database authenticatable + t.string :email, null: false, default: "" + t.string :encrypted_password, null: false, default: "" + + ## Recoverable + t.string :reset_password_token + t.datetime :reset_password_sent_at + + ## Rememberable + t.datetime :remember_created_at + + ## Trackable + # t.integer :sign_in_count, default: 0, null: false + # t.datetime :current_sign_in_at + # t.datetime :last_sign_in_at + # t.string :current_sign_in_ip + # t.string :last_sign_in_ip + + ## Confirmable + # t.string :confirmation_token + # t.datetime :confirmed_at + # t.datetime :confirmation_sent_at + # t.string :unconfirmed_email # Only if using reconfirmable + + ## Lockable + # t.integer :failed_attempts, default: 0, null: false # Only if lock strategy is :failed_attempts + # t.string :unlock_token # Only if unlock strategy is :email or :both + # t.datetime :locked_at + + + t.timestamps null: false + end + + add_index :users, :email, unique: true + add_index :users, :reset_password_token, unique: true + # add_index :users, :confirmation_token, unique: true + # add_index :users, :unlock_token, unique: true + end +end diff --git a/db/migrate/20180920132032_create_contacts.rb b/db/migrate/20180920132032_create_contacts.rb new file mode 100644 index 0000000..3a49b89 --- /dev/null +++ b/db/migrate/20180920132032_create_contacts.rb @@ -0,0 +1,11 @@ +class CreateContacts < ActiveRecord::Migration[5.2] + def change + create_table :contacts do |t| + t.string :first_name + t.string :last_name + t.integer :phonenumber + + t.timestamps + end + end +end diff --git a/db/migrate/20180920132335_add_user_to_contact.rb b/db/migrate/20180920132335_add_user_to_contact.rb new file mode 100644 index 0000000..6ea6de1 --- /dev/null +++ b/db/migrate/20180920132335_add_user_to_contact.rb @@ -0,0 +1,5 @@ +class AddUserToContact < ActiveRecord::Migration[5.2] + def change + add_reference :contacts, :user, foreign_key: true + end +end diff --git a/db/schema.rb b/db/schema.rb new file mode 100644 index 0000000..f5cc3a6 --- /dev/null +++ b/db/schema.rb @@ -0,0 +1,45 @@ +# This file is auto-generated from the current state of the database. Instead +# of editing this file, please use the migrations feature of Active Record to +# incrementally modify your database, and then regenerate this schema definition. +# +# Note that this schema.rb definition is the authoritative source for your +# database schema. If you need to create the application database on another +# system, you should be using db:schema:load, not running all the migrations +# from scratch. The latter is a flawed and unsustainable approach (the more migrations +# you'll amass, the slower it'll run and the greater likelihood for issues). +# +# It's strongly recommended that you check this file into your version control system. + +ActiveRecord::Schema.define(version: 2018_09_21_074512) do + + create_table "contacts", force: :cascade do |t| + t.string "first_name" + t.string "last_name" + t.integer "phonenumber" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.integer "user_id" + t.index ["user_id"], name: "index_contacts_on_user_id" + end + + create_table "sms_sends", force: :cascade do |t| + t.string "message" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.integer "contact_id" + t.index ["contact_id"], name: "index_sms_sends_on_contact_id" + end + + create_table "users", force: :cascade do |t| + t.string "email", default: "", null: false + t.string "encrypted_password", default: "", null: false + t.string "reset_password_token" + t.datetime "reset_password_sent_at" + t.datetime "remember_created_at" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["email"], name: "index_users_on_email", unique: true + t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true + end + +end diff --git a/db/seeds.rb b/db/seeds.rb new file mode 100644 index 0000000..1beea2a --- /dev/null +++ b/db/seeds.rb @@ -0,0 +1,7 @@ +# This file should contain all the record creation needed to seed the database with its default values. +# The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup). +# +# Examples: +# +# movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }]) +# Character.create(name: 'Luke', movie: movies.first) diff --git a/db/test.sqlite3 b/db/test.sqlite3 new file mode 100644 index 0000000..e69de29 diff --git a/lib/assets/.keep b/lib/assets/.keep new file mode 100644 index 0000000..e69de29 diff --git a/lib/tasks/.keep b/lib/tasks/.keep new file mode 100644 index 0000000..e69de29 diff --git a/log/.keep b/log/.keep new file mode 100644 index 0000000..e69de29 diff --git a/log/development.log b/log/development.log new file mode 100644 index 0000000..32c30fd --- /dev/null +++ b/log/development.log @@ -0,0 +1,10208 @@ +  (0.1ms) SELECT sqlite_version(*) + ↳ bin/rails:9 +  (112.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) + ↳ bin/rails:9 +  (108.2ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ bin/rails:9 +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to DeviseCreateUsers (20180920130430) +  (0.1ms) begin transaction + ↳ bin/rails:9 +  (1.1ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180920130430_devise_create_users.rb:5 +  (0.3ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email") + ↳ db/migrate/20180920130430_devise_create_users.rb:39 +  (0.2ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token") + ↳ db/migrate/20180920130430_devise_create_users.rb:40 + ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920130430"]] + ↳ bin/rails:9 +  (91.4ms) commit transaction + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.1ms) begin transaction + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Create (0.7ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2018-09-20 13:04:49.141172"], ["updated_at", "2018-09-20 13:04:49.141172"]] + ↳ bin/rails:9 +  (71.0ms) commit transaction + ↳ bin/rails:9 +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Started GET "/" for 127.0.0.1 at 2018-09-20 16:05:44 +0300 +  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Processing by Rails::WelcomeController#index as HTML + Rendering /home/getty/.rvm/gems/ruby-2.4.1/gems/railties-5.2.1/lib/rails/templates/rails/welcome/index.html.erb + Rendered /home/getty/.rvm/gems/ruby-2.4.1/gems/railties-5.2.1/lib/rails/templates/rails/welcome/index.html.erb (16.3ms) +Completed 200 OK in 67ms (Views: 46.3ms | ActiveRecord: 0.0ms) + + +Started GET "/users/sign_in" for 127.0.0.1 at 2018-09-20 16:05:52 +0300 +Processing by Devise::SessionsController#new as HTML + Rendering devise/sessions/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (1.9ms) + Rendered devise/sessions/new.html.erb within layouts/application (154.1ms) +Completed 200 OK in 867ms (Views: 831.7ms | ActiveRecord: 3.5ms) + + +Started POST "/users/sign_in" for 127.0.0.1 at 2018-09-20 16:05:56 +0300 +Processing by Devise::SessionsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"iM1LePlBIObhePfftNY8pKT6RgihGRoWfdPT9aANRvN1z8rFBFMkeh0W/6NiVcLSDjSo9BoiRHa2xKpjBPG4Fg==", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "admin@admin.com"], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Completed 401 Unauthorized in 6ms (ActiveRecord: 0.4ms) + + +Processing by Devise::SessionsController#new as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"iM1LePlBIObhePfftNY8pKT6RgihGRoWfdPT9aANRvN1z8rFBFMkeh0W/6NiVcLSDjSo9BoiRHa2xKpjBPG4Fg==", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} + Rendering devise/sessions/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (0.9ms) + Rendered devise/sessions/new.html.erb within layouts/application (3.5ms) +Completed 200 OK in 294ms (Views: 19.9ms | ActiveRecord: 0.0ms) + + +Started GET "/users/sign_up" for 127.0.0.1 at 2018-09-20 16:06:07 +0300 +Processing by Devise::RegistrationsController#new as HTML + Rendering devise/registrations/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (3.0ms) + Rendered devise/registrations/new.html.erb within layouts/application (12.9ms) +Completed 200 OK in 51ms (Views: 48.1ms | ActiveRecord: 0.0ms) + + +Started POST "/users" for 127.0.0.1 at 2018-09-20 16:06:17 +0300 +Processing by Devise::RegistrationsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"U37amdSEiWjh9tT1aiRdEm3X+9RBy6jnIZ7D3tIb54KufFskKZaN9B2Y3Im8p6NkxxkVKPrw9ofqibpIducZZw==", "user"=>{"email"=>"", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"} +  (0.3ms) begin transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.4ms) rollback transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering devise/registrations/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (2.4ms) + Rendered devise/registrations/new.html.erb within layouts/application (13.3ms) +Completed 200 OK in 135ms (Views: 59.7ms | ActiveRecord: 0.7ms) + + +Started POST "/users" for 127.0.0.1 at 2018-09-20 16:06:42 +0300 +Processing by Devise::RegistrationsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"QBu6UPIAauNm9/E9w7ti+VpjkHGzqHcHQ+TDfpnLubm9GTvtDxJuf5qZ+UEVOJyP8K1+jQiTKWeI87roPTdHXA==", "user"=>{"email"=>"linda@lee.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"} +  (0.1ms) begin transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "linda@lee.com"], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Create (2.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "linda@lee.com"], ["encrypted_password", "$2a$11$2fRGHfm/1EV0g9rmtJ9er.TcqeBT1gi1OBLZez.l4RIJD/4cchTsq"], ["created_at", "2018-09-20 13:06:42.594464"], ["updated_at", "2018-09-20 13:06:42.594464"]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (114.8ms) commit transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/ +Completed 302 Found in 348ms (ActiveRecord: 117.3ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-20 16:06:42 +0300 +Processing by Rails::WelcomeController#index as HTML + Rendering /home/getty/.rvm/gems/ruby-2.4.1/gems/railties-5.2.1/lib/rails/templates/rails/welcome/index.html.erb + Rendered /home/getty/.rvm/gems/ruby-2.4.1/gems/railties-5.2.1/lib/rails/templates/rails/welcome/index.html.erb (3.1ms) +Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 0.0ms) + + +Started GET "/sign_in" for 127.0.0.1 at 2018-09-20 16:06:51 +0300 + +ActionController::RoutingError (No route matches [GET] "/sign_in"): + +actionpack (5.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.1) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.1) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.1) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.1) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.1) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.1) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.5) lib/rack/method_override.rb:22:in `call' +rack (2.0.5) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.5) lib/rack/sendfile.rb:111:in `call' +railties (5.2.1) lib/rails/engine.rb:524:in `call' +puma (3.12.0) lib/puma/configuration.rb:225:in `call' +puma (3.12.0) lib/puma/server.rb:658:in `handle_request' +puma (3.12.0) lib/puma/server.rb:472:in `process_client' +puma (3.12.0) lib/puma/server.rb:332:in `block in run' +puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread' +Started GET "/users/sign_in" for 127.0.0.1 at 2018-09-20 16:06:55 +0300 +Processing by Devise::SessionsController#new as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/ +Filter chain halted as :require_no_authentication rendered or redirected +Completed 302 Found in 6ms (ActiveRecord: 0.5ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-20 16:06:55 +0300 +Processing by Rails::WelcomeController#index as HTML + Rendering /home/getty/.rvm/gems/ruby-2.4.1/gems/railties-5.2.1/lib/rails/templates/rails/welcome/index.html.erb + Rendered /home/getty/.rvm/gems/ruby-2.4.1/gems/railties-5.2.1/lib/rails/templates/rails/welcome/index.html.erb (4.1ms) +Completed 200 OK in 8ms (Views: 5.5ms | ActiveRecord: 0.0ms) + + +Started GET "/users/sign_in" for 127.0.0.1 at 2018-09-20 16:07:05 +0300 +Processing by Devise::SessionsController#new as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/ +Filter chain halted as :require_no_authentication rendered or redirected +Completed 302 Found in 5ms (ActiveRecord: 0.5ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-20 16:07:05 +0300 +Processing by Rails::WelcomeController#index as HTML + Rendering /home/getty/.rvm/gems/ruby-2.4.1/gems/railties-5.2.1/lib/rails/templates/rails/welcome/index.html.erb + Rendered /home/getty/.rvm/gems/ruby-2.4.1/gems/railties-5.2.1/lib/rails/templates/rails/welcome/index.html.erb (4.4ms) +Completed 200 OK in 9ms (Views: 6.6ms | ActiveRecord: 0.0ms) + + +Started GET "/users/sign_out" for 127.0.0.1 at 2018-09-20 16:07:08 +0300 + +ActionController::RoutingError (No route matches [GET] "/users/sign_out"): + +actionpack (5.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.1) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.1) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.1) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.1) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.1) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.1) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.5) lib/rack/method_override.rb:22:in `call' +rack (2.0.5) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.5) lib/rack/sendfile.rb:111:in `call' +railties (5.2.1) lib/rails/engine.rb:524:in `call' +puma (3.12.0) lib/puma/configuration.rb:225:in `call' +puma (3.12.0) lib/puma/server.rb:658:in `handle_request' +puma (3.12.0) lib/puma/server.rb:472:in `process_client' +puma (3.12.0) lib/puma/server.rb:332:in `block in run' +puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread' +Started GET "/" for 127.0.0.1 at 2018-09-20 16:11:01 +0300 +Processing by Rails::WelcomeController#index as HTML + Rendering /home/getty/.rvm/gems/ruby-2.4.1/gems/railties-5.2.1/lib/rails/templates/rails/welcome/index.html.erb + Rendered /home/getty/.rvm/gems/ruby-2.4.1/gems/railties-5.2.1/lib/rails/templates/rails/welcome/index.html.erb (6.8ms) +Completed 200 OK in 14ms (Views: 11.4ms | ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-20 16:11:08 +0300 +Processing by Rails::WelcomeController#index as HTML + Rendering /home/getty/.rvm/gems/ruby-2.4.1/gems/railties-5.2.1/lib/rails/templates/rails/welcome/index.html.erb + Rendered /home/getty/.rvm/gems/ruby-2.4.1/gems/railties-5.2.1/lib/rails/templates/rails/welcome/index.html.erb (4.0ms) +Completed 200 OK in 9ms (Views: 5.7ms | ActiveRecord: 0.0ms) + + +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to CreateContacts (20180920132032) +  (0.1ms) begin transaction + ↳ bin/rails:9 +  (0.1ms) SELECT sqlite_version(*) + ↳ db/migrate/20180920132032_create_contacts.rb:3 +  (0.3ms) CREATE TABLE "contacts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "phonenumber" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180920132032_create_contacts.rb:3 + ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920132032"]] + ↳ bin/rails:9 +  (104.8ms) commit transaction + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.1ms) begin transaction + ↳ bin/rails:9 +  (0.1ms) commit transaction + ↳ bin/rails:9 +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to AddUserToContact (20180920132335) +  (0.1ms) begin transaction + ↳ bin/rails:9 +  (0.3ms) ALTER TABLE "contacts" ADD "user_id" integer + ↳ db/migrate/20180920132335_add_user_to_contact.rb:3 +  (0.1ms) SELECT sqlite_version(*) + ↳ db/migrate/20180920132335_add_user_to_contact.rb:3 +  (0.3ms) CREATE INDEX "index_contacts_on_user_id" ON "contacts" ("user_id") + ↳ db/migrate/20180920132335_add_user_to_contact.rb:3 + ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920132335"]] + ↳ bin/rails:9 +  (105.3ms) commit transaction + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.2ms) begin transaction + ↳ bin/rails:9 +  (0.1ms) commit transaction + ↳ bin/rails:9 +  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.1ms) begin transaction + ↳ bin/rails:9 +  (0.1ms) commit transaction + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT sqlite_version(*) + ↳ bin/rails:9 +  (88.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) + ↳ bin/rails:9 +  (86.8ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ bin/rails:9 +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to DeviseCreateUsers (20180920130430) +  (0.2ms) begin transaction + ↳ bin/rails:9 +  (1.3ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180920130430_devise_create_users.rb:5 +  (0.7ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email") + ↳ db/migrate/20180920130430_devise_create_users.rb:39 +  (0.4ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token") + ↳ db/migrate/20180920130430_devise_create_users.rb:40 + ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920130430"]] + ↳ bin/rails:9 +  (110.1ms) commit transaction + ↳ bin/rails:9 +Migrating to CreateContacts (20180920132032) +  (0.1ms) begin transaction + ↳ bin/rails:9 +  (0.6ms) CREATE TABLE "contacts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "phonenumber" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180920132032_create_contacts.rb:3 + ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920132032"]] + ↳ bin/rails:9 +  (114.2ms) commit transaction + ↳ bin/rails:9 +Migrating to AddUserToContact (20180920132335) +  (0.2ms) begin transaction + ↳ bin/rails:9 +  (0.8ms) ALTER TABLE "contacts" ADD "user_id" integer + ↳ db/migrate/20180920132335_add_user_to_contact.rb:3 +  (0.5ms) CREATE INDEX "index_contacts_on_user_id" ON "contacts" ("user_id") + ↳ db/migrate/20180920132335_add_user_to_contact.rb:3 + ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920132335"]] + ↳ bin/rails:9 +  (122.6ms) commit transaction + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.2ms) begin transaction + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Create (0.7ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2018-09-20 13:47:24.428229"], ["updated_at", "2018-09-20 13:47:24.428229"]] + ↳ bin/rails:9 +  (78.6ms) commit transaction + ↳ bin/rails:9 +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT sqlite_version(*) + ↳ bin/rails:9 +  (102.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) + ↳ bin/rails:9 +  (97.2ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ bin/rails:9 +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to DeviseCreateUsers (20180920130430) +  (0.1ms) begin transaction + ↳ bin/rails:9 +  (1.2ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180920130430_devise_create_users.rb:5 +  (0.7ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email") + ↳ db/migrate/20180920130430_devise_create_users.rb:39 +  (0.5ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token") + ↳ db/migrate/20180920130430_devise_create_users.rb:40 + ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920130430"]] + ↳ bin/rails:9 +  (233.6ms) commit transaction + ↳ bin/rails:9 +Migrating to CreateContacts (20180920132032) +  (0.2ms) begin transaction + ↳ bin/rails:9 +  (1.1ms) CREATE TABLE "contacts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "phonenumber" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180920132032_create_contacts.rb:3 + ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920132032"]] + ↳ bin/rails:9 +  (111.3ms) commit transaction + ↳ bin/rails:9 +Migrating to AddUserToContact (20180920132335) +  (0.1ms) begin transaction + ↳ bin/rails:9 +  (0.7ms) ALTER TABLE "contacts" ADD "user_id" integer + ↳ db/migrate/20180920132335_add_user_to_contact.rb:3 +  (0.4ms) CREATE INDEX "index_contacts_on_user_id" ON "contacts" ("user_id") + ↳ db/migrate/20180920132335_add_user_to_contact.rb:3 + ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920132335"]] + ↳ bin/rails:9 +  (114.9ms) commit transaction + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.2ms) begin transaction + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Create (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2018-09-20 13:48:11.646558"], ["updated_at", "2018-09-20 13:48:11.646558"]] + ↳ bin/rails:9 +  (76.0ms) commit transaction + ↳ bin/rails:9 +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) begin transaction + ↳ db/seeds.rb:11 + Contact Create (0.3ms) INSERT INTO "contacts" ("first_name", "last_name", "phonenumber", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["first_name", "Gety"], ["last_name", "orao"], ["phonenumber", "254711906665"], ["created_at", "2018-09-20 13:50:11.050547"], ["updated_at", "2018-09-20 13:50:11.050547"]] + ↳ db/seeds.rb:11 +  (86.6ms) commit transaction + ↳ db/seeds.rb:11 +  (0.1ms) begin transaction + ↳ db/seeds.rb:11 + Contact Create (0.3ms) INSERT INTO "contacts" ("first_name", "last_name", "phonenumber", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["first_name", "Gety"], ["last_name", "orao"], ["phonenumber", "254711906665"], ["created_at", "2018-09-20 13:50:11.141253"], ["updated_at", "2018-09-20 13:50:11.141253"]] + ↳ db/seeds.rb:11 +  (62.8ms) commit transaction + ↳ db/seeds.rb:11 +  (0.2ms) begin transaction + ↳ db/seeds.rb:11 + Contact Create (0.6ms) INSERT INTO "contacts" ("first_name", "last_name", "phonenumber", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["first_name", "Gety"], ["last_name", "orao"], ["phonenumber", "254711906665"], ["created_at", "2018-09-20 13:50:11.211031"], ["updated_at", "2018-09-20 13:50:11.211031"]] + ↳ db/seeds.rb:11 +  (73.8ms) commit transaction + ↳ db/seeds.rb:11 +  (0.3ms) begin transaction + ↳ db/seeds.rb:11 + Contact Create (0.8ms) INSERT INTO "contacts" ("first_name", "last_name", "phonenumber", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["first_name", "Gety"], ["last_name", "orao"], ["phonenumber", "254711906665"], ["created_at", "2018-09-20 13:50:11.290788"], ["updated_at", "2018-09-20 13:50:11.290788"]] + ↳ db/seeds.rb:11 +  (78.9ms) commit transaction + ↳ db/seeds.rb:11 +  (0.2ms) begin transaction + ↳ db/seeds.rb:11 + Contact Create (0.7ms) INSERT INTO "contacts" ("first_name", "last_name", "phonenumber", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["first_name", "Gety"], ["last_name", "orao"], ["phonenumber", "254711906665"], ["created_at", "2018-09-20 13:50:11.376536"], ["updated_at", "2018-09-20 13:50:11.376536"]] + ↳ db/seeds.rb:11 +  (68.1ms) commit transaction + ↳ db/seeds.rb:11 +Started GET "/" for 127.0.0.1 at 2018-09-20 16:51:20 +0300 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Processing by Rails::WelcomeController#index as HTML + Rendering /home/getty/.rvm/gems/ruby-2.4.1/gems/railties-5.2.1/lib/rails/templates/rails/welcome/index.html.erb + Rendered /home/getty/.rvm/gems/ruby-2.4.1/gems/railties-5.2.1/lib/rails/templates/rails/welcome/index.html.erb (2.5ms) +Completed 200 OK in 17ms (Views: 7.7ms | ActiveRecord: 0.0ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 16:51:28 +0300 +Processing by ContactsController#index as HTML + Rendering contacts/index.html.erb within layouts/application + Rendered contacts/index.html.erb within layouts/application (2.1ms) +Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.0ms) + + + +SyntaxError (/home/getty/code/RailsGirlsCodeChallenge/app/views/contacts/index.html.erb:25: syntax error, unexpected keyword_ensure, expecting keyword_end + ensure + ^): + +app/views/contacts/index.html.erb:25: syntax error, unexpected keyword_ensure, expecting keyword_end +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 16:52:17 +0300 +Processing by ContactsController#index as HTML + Rendering contacts/index.html.erb within layouts/application + Rendered contacts/index.html.erb within layouts/application (1.6ms) +Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.0ms) + + + +SyntaxError (/home/getty/code/RailsGirlsCodeChallenge/app/views/contacts/index.html.erb:25: syntax error, unexpected keyword_ensure, expecting keyword_end + ensure + ^): + +app/views/contacts/index.html.erb:25: syntax error, unexpected keyword_ensure, expecting keyword_end +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 16:53:38 +0300 +Processing by ContactsController#index as HTML + Rendering contacts/index.html.erb within layouts/application + Rendered contacts/index.html.erb within layouts/application (4.8ms) +Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.0ms) + + + +ActionView::Template::Error (undefined method `each' for nil:NilClass): + 9: + 10: + 11: + 12: <% @contacts.each do |contact| %> + 13: + 14: <%= contact.name %> + 15: <% contact.phonenumber %> + +app/views/contacts/index.html.erb:12:in `_app_views_contacts_index_html_erb__4567155025492810398_69942840928700' +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 16:57:30 +0300 +Processing by ContactsController#index as HTML + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" + ↳ app/views/contacts/index.html.erb:12 + Rendered contacts/index.html.erb within layouts/application (21.7ms) +Completed 500 Internal Server Error in 27ms (ActiveRecord: 1.3ms) + + + +ActionView::Template::Error (undefined method `name' for #): + 11: + 12: <% @contacts.each do |contact| %> + 13: + 14: <%= contact.name %> + 15: <% contact.phonenumber %> + 16: <%= link_to 'sms'%> + 17: <%= link_to 'delete'%> + +app/views/contacts/index.html.erb:14:in `block in _app_views_contacts_index_html_erb__4567155025492810398_69942839653300' +app/views/contacts/index.html.erb:12:in `_app_views_contacts_index_html_erb__4567155025492810398_69942839653300' +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 16:58:10 +0300 +Processing by ContactsController#index as HTML + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.5ms) SELECT "contacts".* FROM "contacts" + ↳ app/views/contacts/index.html.erb:12 + Rendered contacts/index.html.erb within layouts/application (10.1ms) +Completed 200 OK in 1899ms (Views: 1894.4ms | ActiveRecord: 0.5ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 16:58:18 +0300 +Processing by ContactsController#index as HTML + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.4ms) SELECT "contacts".* FROM "contacts" + ↳ app/views/contacts/index.html.erb:12 + Rendered contacts/index.html.erb within layouts/application (7.7ms) +Completed 200 OK in 43ms (Views: 39.5ms | ActiveRecord: 0.4ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 16:58:19 +0300 +Processing by ContactsController#index as HTML + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.6ms) SELECT "contacts".* FROM "contacts" + ↳ app/views/contacts/index.html.erb:12 + Rendered contacts/index.html.erb within layouts/application (6.7ms) +Completed 200 OK in 46ms (Views: 41.3ms | ActiveRecord: 0.6ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-20 16:58:28 +0300 +Processing by ContactsController#new as HTML +Completed 406 Not Acceptable in 73ms (ActiveRecord: 0.0ms) + + + +ActionController::UnknownFormat (ContactsController#new is missing a template for this request format and variant. + +request.formats: ["text/html"] +request.variant: [] + +NOTE! For XHR/Ajax or API requests, this action would normally respond with 204 No Content: an empty white screen. Since you're loading it in a web browser, we assume that you expected to actually render a template, not nothing, so we're showing an error to be extra-clear. If you expect 204 No Content, carry on. That's what you'll get from an XHR or API request. Give it a shot.): + +actionpack (5.2.1) lib/action_controller/metal/implicit_render.rb:55:in `default_render' +actionpack (5.2.1) lib/action_controller/metal/basic_implicit_render.rb:6:in `block in send_action' +actionpack (5.2.1) lib/action_controller/metal/basic_implicit_render.rb:6:in `tap' +actionpack (5.2.1) lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action' +actionpack (5.2.1) lib/abstract_controller/base.rb:194:in `process_action' +actionpack (5.2.1) lib/action_controller/metal/rendering.rb:30:in `process_action' +actionpack (5.2.1) lib/abstract_controller/callbacks.rb:42:in `block in process_action' +activesupport (5.2.1) lib/active_support/callbacks.rb:132:in `run_callbacks' +actionpack (5.2.1) lib/abstract_controller/callbacks.rb:41:in `process_action' +actionpack (5.2.1) lib/action_controller/metal/rescue.rb:22:in `process_action' +actionpack (5.2.1) lib/action_controller/metal/instrumentation.rb:34:in `block in process_action' +activesupport (5.2.1) lib/active_support/notifications.rb:168:in `block in instrument' +activesupport (5.2.1) lib/active_support/notifications/instrumenter.rb:23:in `instrument' +activesupport (5.2.1) lib/active_support/notifications.rb:168:in `instrument' +actionpack (5.2.1) lib/action_controller/metal/instrumentation.rb:32:in `process_action' +actionpack (5.2.1) lib/action_controller/metal/params_wrapper.rb:256:in `process_action' +activerecord (5.2.1) lib/active_record/railties/controller_runtime.rb:24:in `process_action' +actionpack (5.2.1) lib/abstract_controller/base.rb:134:in `process' +actionview (5.2.1) lib/action_view/rendering.rb:32:in `process' +actionpack (5.2.1) lib/action_controller/metal.rb:191:in `dispatch' +actionpack (5.2.1) lib/action_controller/metal.rb:252:in `dispatch' +actionpack (5.2.1) lib/action_dispatch/routing/route_set.rb:52:in `dispatch' +actionpack (5.2.1) lib/action_dispatch/routing/route_set.rb:34:in `serve' +actionpack (5.2.1) lib/action_dispatch/journey/router.rb:52:in `block in serve' +actionpack (5.2.1) lib/action_dispatch/journey/router.rb:35:in `each' +actionpack (5.2.1) lib/action_dispatch/journey/router.rb:35:in `serve' +actionpack (5.2.1) lib/action_dispatch/routing/route_set.rb:840:in `call' +warden (1.2.7) lib/warden/manager.rb:36:in `block in call' +warden (1.2.7) lib/warden/manager.rb:35:in `catch' +warden (1.2.7) lib/warden/manager.rb:35:in `call' +rack (2.0.5) lib/rack/tempfile_reaper.rb:15:in `call' +rack (2.0.5) lib/rack/etag.rb:25:in `call' +rack (2.0.5) lib/rack/conditional_get.rb:25:in `call' +rack (2.0.5) lib/rack/head.rb:12:in `call' +actionpack (5.2.1) lib/action_dispatch/http/content_security_policy.rb:18:in `call' +rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' +rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/cookies.rb:670:in `call' +activerecord (5.2.1) lib/active_record/migration.rb:559:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call' +activesupport (5.2.1) lib/active_support/callbacks.rb:98:in `run_callbacks' +actionpack (5.2.1) lib/action_dispatch/middleware/callbacks.rb:26:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.1) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.1) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.1) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.1) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.1) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.1) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.5) lib/rack/method_override.rb:22:in `call' +rack (2.0.5) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.5) lib/rack/sendfile.rb:111:in `call' +railties (5.2.1) lib/rails/engine.rb:524:in `call' +puma (3.12.0) lib/puma/configuration.rb:225:in `call' +puma (3.12.0) lib/puma/server.rb:658:in `handle_request' +puma (3.12.0) lib/puma/server.rb:472:in `process_client' +puma (3.12.0) lib/puma/server.rb:332:in `block in run' +puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread' +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 16:58:34 +0300 +Processing by ContactsController#index as HTML + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.4ms) SELECT "contacts".* FROM "contacts" + ↳ app/views/contacts/index.html.erb:12 + Rendered contacts/index.html.erb within layouts/application (6.6ms) +Completed 200 OK in 34ms (Views: 31.5ms | ActiveRecord: 0.4ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 16:59:11 +0300 +Processing by ContactsController#index as HTML + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.4ms) SELECT "contacts".* FROM "contacts" + ↳ app/views/contacts/index.html.erb:12 + Rendered contacts/index.html.erb within layouts/application (8.0ms) +Completed 200 OK in 43ms (Views: 39.5ms | ActiveRecord: 0.4ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 16:59:12 +0300 +Processing by ContactsController#index as HTML + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.5ms) SELECT "contacts".* FROM "contacts" + ↳ app/views/contacts/index.html.erb:12 + Rendered contacts/index.html.erb within layouts/application (6.9ms) +Completed 200 OK in 50ms (Views: 46.3ms | ActiveRecord: 0.5ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-20 17:00:12 +0300 +Processing by ContactsController#index as HTML + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" + ↳ app/views/contacts/index.html.erb:12 + Rendered contacts/index.html.erb within layouts/application (15.0ms) +Completed 200 OK in 37ms (Views: 32.4ms | ActiveRecord: 1.3ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-20 17:00:14 +0300 +Processing by ContactsController#index as HTML + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.5ms) SELECT "contacts".* FROM "contacts" + ↳ app/views/contacts/index.html.erb:12 + Rendered contacts/index.html.erb within layouts/application (8.1ms) +Completed 200 OK in 47ms (Views: 44.3ms | ActiveRecord: 0.5ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-20 17:00:26 +0300 +Processing by ContactsController#index as HTML + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.5ms) SELECT "contacts".* FROM "contacts" + ↳ app/views/contacts/index.html.erb:12 + Rendered contacts/index.html.erb within layouts/application (15.1ms) +Completed 200 OK in 37ms (Views: 32.9ms | ActiveRecord: 1.6ms) + + +Started GET "/users/sign_in" for 127.0.0.1 at 2018-09-20 17:00:37 +0300 +Processing by Devise::SessionsController#new as HTML + Rendering devise/sessions/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (1.9ms) + Rendered devise/sessions/new.html.erb within layouts/application (31.9ms) +Completed 200 OK in 97ms (Views: 54.8ms | ActiveRecord: 1.8ms) + + +Started POST "/users/sign_in" for 127.0.0.1 at 2018-09-20 17:00:51 +0300 +Processing by Devise::SessionsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"aA+UqtUR6bg7nxBf9P8iBazMyJUxqjl1VjLsToPZpusg6G22xb/NolLbhhSEVVHP57eOcLUpxYhEW9j8QUvmBA==", "user"=>{"email"=>"linda@lee.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "linda@lee.com"], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Completed 401 Unauthorized in 4ms (ActiveRecord: 0.3ms) + + +Processing by Devise::SessionsController#new as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"aA+UqtUR6bg7nxBf9P8iBazMyJUxqjl1VjLsToPZpusg6G22xb/NolLbhhSEVVHP57eOcLUpxYhEW9j8QUvmBA==", "user"=>{"email"=>"linda@lee.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} + Rendering devise/sessions/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (0.9ms) + Rendered devise/sessions/new.html.erb within layouts/application (3.6ms) +Completed 200 OK in 197ms (Views: 21.8ms | ActiveRecord: 0.0ms) + + +Started GET "/users/sign_up" for 127.0.0.1 at 2018-09-20 17:00:57 +0300 +Processing by Devise::RegistrationsController#new as HTML + Rendering devise/registrations/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (2.0ms) + Rendered devise/registrations/new.html.erb within layouts/application (8.8ms) +Completed 200 OK in 45ms (Views: 42.0ms | ActiveRecord: 0.0ms) + + +Started POST "/users" for 127.0.0.1 at 2018-09-20 17:01:10 +0300 +Processing by Devise::RegistrationsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"bT5dLqWwQsoAJMLJF4MxqJLD1aPEoWxh/OBSiTXTJe4l2aQytR5m0GlgVIJnKUJi2biTRkAikJzuiWY790FlAQ==", "user"=>{"email"=>"getty@hhh.ttt", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"} +  (0.1ms) begin transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "getty@hhh.ttt"], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "getty@hhh.ttt"], ["encrypted_password", "$2a$11$/0ch6mOcBhMBiuoaJ73xHuy0.eBrSSMImyCAabtzZv12RYvrkCtX2"], ["created_at", "2018-09-20 14:01:10.459198"], ["updated_at", "2018-09-20 14:01:10.459198"]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (97.8ms) commit transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/ +Completed 302 Found in 268ms (ActiveRecord: 98.3ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-20 17:01:10 +0300 +Processing by ContactsController#index as HTML + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" + ↳ app/views/contacts/index.html.erb:12 + Rendered contacts/index.html.erb within layouts/application (3.4ms) +Completed 200 OK in 24ms (Views: 21.7ms | ActiveRecord: 0.2ms) + + +Started GET "/new_contact" for 127.0.0.1 at 2018-09-20 17:13:54 +0300 + +ActionController::RoutingError (No route matches [GET] "/new_contact"): + +actionpack (5.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.1) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.1) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.1) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.1) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.1) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.1) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.5) lib/rack/method_override.rb:22:in `call' +rack (2.0.5) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.5) lib/rack/sendfile.rb:111:in `call' +railties (5.2.1) lib/rails/engine.rb:524:in `call' +puma (3.12.0) lib/puma/configuration.rb:225:in `call' +puma (3.12.0) lib/puma/server.rb:658:in `handle_request' +puma (3.12.0) lib/puma/server.rb:472:in `process_client' +puma (3.12.0) lib/puma/server.rb:332:in `block in run' +puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread' +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 17:14:16 +0300 +Processing by ContactsController#index as HTML + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.5ms) SELECT "contacts".* FROM "contacts" + ↳ app/views/contacts/index.html.erb:12 + Rendered contacts/index.html.erb within layouts/application (25.1ms) +Completed 200 OK in 56ms (Views: 48.7ms | ActiveRecord: 3.0ms) + + +Started GET "/new_contact" for 127.0.0.1 at 2018-09-20 17:14:55 +0300 + +ActionController::RoutingError (No route matches [GET] "/new_contact"): + +actionpack (5.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.1) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.1) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.1) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.1) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.1) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.1) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.5) lib/rack/method_override.rb:22:in `call' +rack (2.0.5) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.5) lib/rack/sendfile.rb:111:in `call' +railties (5.2.1) lib/rails/engine.rb:524:in `call' +puma (3.12.0) lib/puma/configuration.rb:225:in `call' +puma (3.12.0) lib/puma/server.rb:658:in `handle_request' +puma (3.12.0) lib/puma/server.rb:472:in `process_client' +puma (3.12.0) lib/puma/server.rb:332:in `block in run' +puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread' +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 17:15:20 +0300 +Processing by ContactsController#index as HTML + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.6ms) SELECT "contacts".* FROM "contacts" + ↳ app/views/contacts/index.html.erb:12 + Rendered contacts/index.html.erb within layouts/application (8.3ms) +Completed 200 OK in 41ms (Views: 38.5ms | ActiveRecord: 0.6ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-20 17:15:23 +0300 +Processing by ContactsController#new as HTML + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (2.8ms) +Completed 200 OK in 40ms (Views: 37.6ms | ActiveRecord: 0.0ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-20 17:15:40 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"4ovtjYA+7MgdNpi+/1WpZBFldg+8KX3cSgvvvN4fbOLwx30pYMwCDAd9BjKqilrmt9+i3I4Ngw0UNnI3wHqAdQ==", "contact"=>{"first_name"=>"nnkn.las.l", "last_name"=>"ksklks/ans", "phonenumber"=>"7861781235"}, "commit"=>"create"} +  (0.2ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 + Contact Create (0.6ms) INSERT INTO "contacts" ("first_name", "last_name", "phonenumber", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["first_name", "nnkn.las.l"], ["last_name", "ksklks/ans"], ["phonenumber", "7861781235"], ["created_at", "2018-09-20 14:15:40.571214"], ["updated_at", "2018-09-20 14:15:40.571214"]] + ↳ app/controllers/contacts_controller.rb:10 +  (115.5ms) commit transaction + ↳ app/controllers/contacts_controller.rb:10 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 124ms (ActiveRecord: 116.3ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 17:15:40 +0300 +Processing by ContactsController#index as HTML + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" + ↳ app/views/contacts/index.html.erb:12 + Rendered contacts/index.html.erb within layouts/application (5.0ms) +Completed 200 OK in 46ms (Views: 44.0ms | ActiveRecord: 0.3ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 17:16:12 +0300 +Processing by ContactsController#index as HTML + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.6ms) SELECT "contacts".* FROM "contacts" + ↳ app/views/contacts/index.html.erb:12 + Rendered contacts/index.html.erb within layouts/application (8.0ms) +Completed 200 OK in 44ms (Views: 40.8ms | ActiveRecord: 0.6ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-20 17:16:31 +0300 +Processing by ContactsController#new as HTML + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (3.6ms) +Completed 200 OK in 44ms (Views: 41.5ms | ActiveRecord: 0.0ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-20 17:17:17 +0300 +Processing by ContactsController#new as HTML + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (4.6ms) +Completed 200 OK in 42ms (Views: 39.5ms | ActiveRecord: 0.0ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-20 17:17:20 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"+f7tBGQq/VUDaqI1gsGab8uEz1qs3+rrWEk/9IxTN0AE/Gy5mTj5yf8EqklUQmQZYUohphfktIuTXkZiKK/JpQ==", "contact"=>{"first_name"=>"", "last_name"=>"", "phonenumber"=>""}, "commit"=>"create"} +  (0.3ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 + Contact Create (3.6ms) INSERT INTO "contacts" ("first_name", "last_name", "phonenumber", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["first_name", ""], ["last_name", ""], ["phonenumber", ""], ["created_at", "2018-09-20 14:17:20.845614"], ["updated_at", "2018-09-20 14:17:20.845614"]] + ↳ app/controllers/contacts_controller.rb:10 +  (109.6ms) commit transaction + ↳ app/controllers/contacts_controller.rb:10 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 123ms (ActiveRecord: 113.5ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 17:17:20 +0300 +Processing by ContactsController#index as HTML + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" + ↳ app/views/contacts/index.html.erb:12 + Rendered contacts/index.html.erb within layouts/application (5.1ms) +Completed 200 OK in 38ms (Views: 35.8ms | ActiveRecord: 0.3ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-20 17:23:05 +0300 +Processing by ContactsController#index as HTML + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" + ↳ app/views/contacts/index.html.erb:12 + Rendered contacts/index.html.erb within layouts/application (16.8ms) +Completed 200 OK in 45ms (Views: 39.3ms | ActiveRecord: 1.2ms) + + +Started DELETE "/contacts/7" for 127.0.0.1 at 2018-09-20 17:23:10 +0300 +Processing by ContactsController#destroy as HTML + Parameters: {"authenticity_token"=>"7pbS5QsESy8nvVm1P1bZzWnPA038jGKjfKu/DchnYBQTlFNY9hZPs9vTUcnp1Se7wwHtsUe3PMO3vMabbJue8Q==", "id"=>"7"} + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/contacts_controller.rb:17 +  (0.1ms) begin transaction + ↳ app/controllers/contacts_controller.rb:18 + Contact Destroy (0.4ms) DELETE FROM "contacts" WHERE "contacts"."id" = ? [["id", 7]] + ↳ app/controllers/contacts_controller.rb:18 +  (82.1ms) commit transaction + ↳ app/controllers/contacts_controller.rb:18 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 89ms (ActiveRecord: 82.9ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 17:23:10 +0300 +Processing by ContactsController#index as HTML + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.4ms) SELECT "contacts".* FROM "contacts" + ↳ app/views/contacts/index.html.erb:12 + Rendered contacts/index.html.erb within layouts/application (7.2ms) +Completed 200 OK in 31ms (Views: 29.4ms | ActiveRecord: 0.4ms) + + +Started DELETE "/contacts/3" for 127.0.0.1 at 2018-09-20 17:23:13 +0300 +Processing by ContactsController#destroy as HTML + Parameters: {"authenticity_token"=>"C/fVBBKeJZ6f9/Nx3ua32afSU9TU68ZL8PkEHXEB2nv29VS574whAmOZ+w0IZUmvDRy9KG/QmCs77n2L1f0kng==", "id"=>"3"} + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/contacts_controller.rb:17 +  (0.1ms) begin transaction + ↳ app/controllers/contacts_controller.rb:18 + Contact Destroy (0.4ms) DELETE FROM "contacts" WHERE "contacts"."id" = ? [["id", 3]] + ↳ app/controllers/contacts_controller.rb:18 +  (81.6ms) commit transaction + ↳ app/controllers/contacts_controller.rb:18 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 89ms (ActiveRecord: 82.3ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 17:23:13 +0300 +Processing by ContactsController#index as HTML + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" + ↳ app/views/contacts/index.html.erb:12 + Rendered contacts/index.html.erb within layouts/application (4.2ms) +Completed 200 OK in 27ms (Views: 25.2ms | ActiveRecord: 0.2ms) + + +Started DELETE "/contacts/5" for 127.0.0.1 at 2018-09-20 17:23:15 +0300 +Processing by ContactsController#destroy as HTML + Parameters: {"authenticity_token"=>"CiBhuSURyEBpq+v9t7uKP7qNySULvbcpHYXVKywGXPT3IuAE2APM3JXF44FhOHRJEEMn2bCG6UnWkqy9iPqiEQ==", "id"=>"5"} + Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] + ↳ app/controllers/contacts_controller.rb:17 +  (0.1ms) begin transaction + ↳ app/controllers/contacts_controller.rb:18 + Contact Destroy (0.5ms) DELETE FROM "contacts" WHERE "contacts"."id" = ? [["id", 5]] + ↳ app/controllers/contacts_controller.rb:18 +  (94.7ms) commit transaction + ↳ app/controllers/contacts_controller.rb:18 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 100ms (ActiveRecord: 95.5ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 17:23:16 +0300 +Processing by ContactsController#index as HTML + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" + ↳ app/views/contacts/index.html.erb:12 + Rendered contacts/index.html.erb within layouts/application (2.8ms) +Completed 200 OK in 23ms (Views: 21.9ms | ActiveRecord: 0.2ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 17:23:17 +0300 +Processing by ContactsController#index as HTML + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.8ms) SELECT "contacts".* FROM "contacts" + ↳ app/views/contacts/index.html.erb:12 + Rendered contacts/index.html.erb within layouts/application (7.5ms) +Completed 200 OK in 51ms (Views: 47.7ms | ActiveRecord: 0.8ms) + + +Started DELETE "/contacts/2" for 127.0.0.1 at 2018-09-20 17:23:56 +0300 +Processing by ContactsController#destroy as HTML + Parameters: {"authenticity_token"=>"uZUlsYt094OUuG4nyOhaSt42DFyCozOHVaLrYCBSPqxEl6QMdmbzH2jWZlsea6Q8dPjioDmYbeeetZL2hK7ASQ==", "id"=>"2"} + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/contacts_controller.rb:17 +  (0.1ms) begin transaction + ↳ app/controllers/contacts_controller.rb:18 + Contact Destroy (1.8ms) DELETE FROM "contacts" WHERE "contacts"."id" = ? [["id", 2]] + ↳ app/controllers/contacts_controller.rb:18 +  (75.3ms) commit transaction + ↳ app/controllers/contacts_controller.rb:18 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 86ms (ActiveRecord: 77.5ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 17:23:56 +0300 +Processing by ContactsController#index as HTML + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" + ↳ app/views/contacts/index.html.erb:12 + Rendered contacts/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 23ms (Views: 21.4ms | ActiveRecord: 0.2ms) + + +Started DELETE "/contacts/4" for 127.0.0.1 at 2018-09-20 17:24:08 +0300 +Processing by ContactsController#destroy as HTML + Parameters: {"authenticity_token"=>"1P/HiPqOMeH5sel3DCH7fspDFi8NM2MPJZ9IL2Bk2Tsp/UY1B5w1fQXf4QvaogUIYI3407YIPW/uiDG5xJgn3g==", "id"=>"4"} + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] + ↳ app/controllers/contacts_controller.rb:17 +  (0.1ms) begin transaction + ↳ app/controllers/contacts_controller.rb:18 + Contact Destroy (0.6ms) DELETE FROM "contacts" WHERE "contacts"."id" = ? [["id", 4]] + ↳ app/controllers/contacts_controller.rb:18 +  (82.0ms) commit transaction + ↳ app/controllers/contacts_controller.rb:18 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 88ms (ActiveRecord: 82.9ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 17:24:08 +0300 +Processing by ContactsController#index as HTML + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" + ↳ app/views/contacts/index.html.erb:12 + Rendered contacts/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 24ms (Views: 22.3ms | ActiveRecord: 0.2ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 17:24:31 +0300 +Processing by ContactsController#index as HTML + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" + ↳ app/views/contacts/index.html.erb:12 + Rendered contacts/index.html.erb within layouts/application (4.6ms) +Completed 200 OK in 45ms (Views: 42.0ms | ActiveRecord: 0.3ms) + + +Started DELETE "/contacts/6" for 127.0.0.1 at 2018-09-20 17:24:33 +0300 +Processing by ContactsController#destroy as HTML + Parameters: {"authenticity_token"=>"So1pe63FpTdMtfqfZj+crZwZZtnc1WENMCCi/avxAkW3j+jGUNehq7Db8uOwvGLbNteIJWfuP237N9trDw38oA==", "id"=>"6"} + Contact Load (0.4ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/contacts_controller.rb:17 +  (0.2ms) begin transaction + ↳ app/controllers/contacts_controller.rb:18 + Contact Destroy (0.6ms) DELETE FROM "contacts" WHERE "contacts"."id" = ? [["id", 6]] + ↳ app/controllers/contacts_controller.rb:18 +  (86.0ms) commit transaction + ↳ app/controllers/contacts_controller.rb:18 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 98ms (ActiveRecord: 87.2ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 17:24:33 +0300 +Processing by ContactsController#index as HTML + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" + ↳ app/views/contacts/index.html.erb:12 + Rendered contacts/index.html.erb within layouts/application (3.3ms) +Completed 200 OK in 37ms (Views: 34.9ms | ActiveRecord: 0.3ms) + + +Started DELETE "/contacts/1" for 127.0.0.1 at 2018-09-20 17:24:35 +0300 +Processing by ContactsController#destroy as HTML + Parameters: {"authenticity_token"=>"HPcNDL0c6O3E6vSD7h5J0WJNXQzCxKK1b8sO94rd0KDh9YyxQA7scTiE/P84nbenyIOz8Hn//NWk3HdhLiEuRQ==", "id"=>"1"} + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/contacts_controller.rb:17 +  (0.1ms) begin transaction + ↳ app/controllers/contacts_controller.rb:18 + Contact Destroy (0.4ms) DELETE FROM "contacts" WHERE "contacts"."id" = ? [["id", 1]] + ↳ app/controllers/contacts_controller.rb:18 +  (70.2ms) commit transaction + ↳ app/controllers/contacts_controller.rb:18 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 79ms (ActiveRecord: 70.9ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 17:24:35 +0300 +Processing by ContactsController#index as HTML + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" + ↳ app/views/contacts/index.html.erb:12 + Rendered contacts/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 30ms (Views: 28.5ms | ActiveRecord: 0.3ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-20 17:24:49 +0300 +Processing by ContactsController#new as HTML + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (2.7ms) +Completed 200 OK in 36ms (Views: 34.4ms | ActiveRecord: 0.0ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-20 17:24:54 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"KcwEu4OG6M5P7jas3DFBpMD82aQmknlbDhBVqve3o5A7gJQfY3QGClWlqCCJ7rImZkYNdxS2h4pQLcgh6dJPBw==", "contact"=>{"first_name"=>"Joan", "last_name"=>"Castillo", "phonenumber"=>"+228-84-9088936"}, "commit"=>"create"} +  (0.1ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 + Contact Create (0.6ms) INSERT INTO "contacts" ("first_name", "last_name", "phonenumber", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["first_name", "Joan"], ["last_name", "Castillo"], ["phonenumber", "+228-84-9088936"], ["created_at", "2018-09-20 14:24:54.185017"], ["updated_at", "2018-09-20 14:24:54.185017"]] + ↳ app/controllers/contacts_controller.rb:10 +  (218.1ms) commit transaction + ↳ app/controllers/contacts_controller.rb:10 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 227ms (ActiveRecord: 218.9ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 17:24:54 +0300 +Processing by ContactsController#index as HTML + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" + ↳ app/views/contacts/index.html.erb:12 + Rendered contacts/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 28ms (Views: 25.9ms | ActiveRecord: 0.3ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-20 17:25:02 +0300 +Processing by ContactsController#new as HTML + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (2.4ms) +Completed 200 OK in 28ms (Views: 26.7ms | ActiveRecord: 0.0ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-20 17:25:05 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"6g5uXleaNXd5RGm+wQox680R293Wh/iM99wY8YLgXHf4Qv76t2jbs2MP9zKU1cJpa6sPDuSjBl2p4YV6nIWw4A==", "contact"=>{"first_name"=>"Felicia", "last_name"=>"Jones", "phonenumber"=>"+173-29-4726778"}, "commit"=>"create"} +  (0.1ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 + Contact Create (1.8ms) INSERT INTO "contacts" ("first_name", "last_name", "phonenumber", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["first_name", "Felicia"], ["last_name", "Jones"], ["phonenumber", "+173-29-4726778"], ["created_at", "2018-09-20 14:25:05.698066"], ["updated_at", "2018-09-20 14:25:05.698066"]] + ↳ app/controllers/contacts_controller.rb:10 +  (236.6ms) commit transaction + ↳ app/controllers/contacts_controller.rb:10 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 246ms (ActiveRecord: 238.5ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 17:25:05 +0300 +Processing by ContactsController#index as HTML + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" + ↳ app/views/contacts/index.html.erb:12 + Rendered contacts/index.html.erb within layouts/application (4.6ms) +Completed 200 OK in 44ms (Views: 41.6ms | ActiveRecord: 0.3ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-20 17:25:07 +0300 +Processing by ContactsController#new as HTML + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (2.4ms) +Completed 200 OK in 36ms (Views: 34.5ms | ActiveRecord: 0.0ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-20 17:25:09 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"DERP8m5jDSdwxxqMJbkKKJfvdEEhAtq2QTU6rY4bB0MeCN9WjpHj42qMhABwZvmqMVWgkhMmJGcfCKcmkH7r1A==", "contact"=>{"first_name"=>"Chantale", "last_name"=>"Wooten", "phonenumber"=>"+137-84-5044764"}, "commit"=>"create"} +  (0.2ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 + Contact Create (0.8ms) INSERT INTO "contacts" ("first_name", "last_name", "phonenumber", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["first_name", "Chantale"], ["last_name", "Wooten"], ["phonenumber", "+137-84-5044764"], ["created_at", "2018-09-20 14:25:09.317800"], ["updated_at", "2018-09-20 14:25:09.317800"]] + ↳ app/controllers/contacts_controller.rb:10 +  (263.5ms) commit transaction + ↳ app/controllers/contacts_controller.rb:10 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 274ms (ActiveRecord: 264.5ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 17:25:09 +0300 +Processing by ContactsController#index as HTML + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" + ↳ app/views/contacts/index.html.erb:12 + Rendered contacts/index.html.erb within layouts/application (3.7ms) +Completed 200 OK in 34ms (Views: 32.2ms | ActiveRecord: 0.3ms) + + +Started GET "/destroy_user_session" for 127.0.0.1 at 2018-09-20 17:27:56 +0300 + +ActionController::RoutingError (No route matches [GET] "/destroy_user_session"): + +actionpack (5.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.1) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.1) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.1) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.1) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.1) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.1) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.5) lib/rack/method_override.rb:22:in `call' +rack (2.0.5) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.5) lib/rack/sendfile.rb:111:in `call' +railties (5.2.1) lib/rails/engine.rb:524:in `call' +puma (3.12.0) lib/puma/configuration.rb:225:in `call' +puma (3.12.0) lib/puma/server.rb:658:in `handle_request' +puma (3.12.0) lib/puma/server.rb:472:in `process_client' +puma (3.12.0) lib/puma/server.rb:332:in `block in run' +puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread' +Started GET "/users/destroy_user_session" for 127.0.0.1 at 2018-09-20 17:28:05 +0300 + +ActionController::RoutingError (No route matches [GET] "/users/destroy_user_session"): + +actionpack (5.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.1) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.1) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.1) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.1) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.1) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.1) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.5) lib/rack/method_override.rb:22:in `call' +rack (2.0.5) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.5) lib/rack/sendfile.rb:111:in `call' +railties (5.2.1) lib/rails/engine.rb:524:in `call' +puma (3.12.0) lib/puma/configuration.rb:225:in `call' +puma (3.12.0) lib/puma/server.rb:658:in `handle_request' +puma (3.12.0) lib/puma/server.rb:472:in `process_client' +puma (3.12.0) lib/puma/server.rb:332:in `block in run' +puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread' +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 17:29:15 +0300 +Processing by ContactsController#index as HTML + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.4ms) SELECT "contacts".* FROM "contacts" + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (4.9ms) +Completed 200 OK in 58ms (Views: 54.4ms | ActiveRecord: 0.4ms) + + +Started DELETE "/users/sign_out" for 127.0.0.1 at 2018-09-20 17:29:17 +0300 +Processing by Devise::SessionsController#destroy as HTML + Parameters: {"authenticity_token"=>"qMIOjz4A3OwGiPVvqzuEWkt243pMVz3PIDij1Y1XVqVVwI8ywxLYcPrm/RN9uHos4bgNhvdsY6/rL9pDKauoQA=="} + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/ +Filter chain halted as :verify_signed_out_user rendered or redirected +Completed 302 Found in 18ms (ActiveRecord: 1.2ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-20 17:29:17 +0300 +Processing by ContactsController#index as HTML + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 27ms (Views: 25.8ms | ActiveRecord: 0.2ms) + + +Started DELETE "/users/sign_out" for 127.0.0.1 at 2018-09-20 17:29:19 +0300 +Processing by Devise::SessionsController#destroy as HTML + Parameters: {"authenticity_token"=>"CrTeEOY56wNJNYbgmkoScM3VC+M6x942bI28haNoYi/3tl+tGyvvn7VbjpxMyewGZxvlH4H8gFanmsUTB5Scyg=="} +Redirected to http://localhost:3000/ +Filter chain halted as :verify_signed_out_user rendered or redirected +Completed 302 Found in 2ms (ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-20 17:29:19 +0300 +Processing by ContactsController#index as HTML + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (3.3ms) +Completed 200 OK in 36ms (Views: 33.3ms | ActiveRecord: 0.3ms) + + +Started GET "/users/sign_in" for 127.0.0.1 at 2018-09-20 17:29:26 +0300 +Processing by Devise::SessionsController#new as HTML + Rendering devise/sessions/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (2.8ms) + Rendered devise/sessions/new.html.erb within layouts/application (12.2ms) +Completed 200 OK in 55ms (Views: 53.1ms | ActiveRecord: 0.0ms) + + +Started POST "/users/sign_in" for 127.0.0.1 at 2018-09-20 17:29:32 +0300 +Processing by Devise::SessionsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"MGQyEOZer0dyhxi83E3umj2mt+1AYNUsuuNEDbwXsr7NZrOtG0yr247pEMAKzhDsl2hZEftbi0xx9D2bGOtMWw==", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "admin@admin.com"], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Completed 401 Unauthorized in 4ms (ActiveRecord: 0.4ms) + + +Processing by Devise::SessionsController#new as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"MGQyEOZer0dyhxi83E3umj2mt+1AYNUsuuNEDbwXsr7NZrOtG0yr247pEMAKzhDsl2hZEftbi0xx9D2bGOtMWw==", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} + Rendering devise/sessions/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (0.9ms) + Rendered devise/sessions/new.html.erb within layouts/application (3.5ms) +Completed 200 OK in 214ms (Views: 23.5ms | ActiveRecord: 0.0ms) + + +Started GET "/users/sign_up" for 127.0.0.1 at 2018-09-20 17:29:37 +0300 +Processing by Devise::RegistrationsController#new as HTML + Rendering devise/registrations/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (1.8ms) + Rendered devise/registrations/new.html.erb within layouts/application (9.8ms) +Completed 200 OK in 56ms (Views: 54.1ms | ActiveRecord: 0.0ms) + + +Started POST "/users" for 127.0.0.1 at 2018-09-20 17:29:41 +0300 +Processing by Devise::RegistrationsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"V450v++H5839BXBqX9BsEkxyGMLxWck0TD86fRvPb6OqjPUCEpXjUQFreBaJU5Jk5rz2Pkpil1SHKEPrvzORRg==", "user"=>{"email"=>"wakek@tumefuzivaruwi.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"} +  (0.1ms) begin transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "wakek@tumefuzivaruwi.com"], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "wakek@tumefuzivaruwi.com"], ["encrypted_password", "$2a$11$tvU1TsESw9CFYrvgqPujqeikVevg.LZF/P3Alu4rE27U2PhztFulC"], ["created_at", "2018-09-20 14:29:42.148085"], ["updated_at", "2018-09-20 14:29:42.148085"]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (77.4ms) commit transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/ +Completed 302 Found in 257ms (ActiveRecord: 77.9ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-20 17:29:42 +0300 +Processing by ContactsController#index as HTML + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.5ms) SELECT "contacts".* FROM "contacts" + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (7.1ms) +Completed 200 OK in 31ms (Views: 28.4ms | ActiveRecord: 0.5ms) + + +Started GET "/users/sign_in" for 127.0.0.1 at 2018-09-20 17:29:47 +0300 +Processing by Devise::SessionsController#new as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/ +Filter chain halted as :require_no_authentication rendered or redirected +Completed 302 Found in 4ms (ActiveRecord: 0.4ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-20 17:29:47 +0300 +Processing by ContactsController#index as HTML + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (5.1ms) +Completed 200 OK in 43ms (Views: 40.5ms | ActiveRecord: 0.3ms) + + +Started GET "/users/sign_in" for 127.0.0.1 at 2018-09-20 17:29:51 +0300 +Processing by Devise::SessionsController#new as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/ +Filter chain halted as :require_no_authentication rendered or redirected +Completed 302 Found in 6ms (ActiveRecord: 0.5ms) + + +Started GET "/users/sign_up" for 127.0.0.1 at 2018-09-20 17:29:53 +0300 +Processing by Devise::RegistrationsController#new as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/ +Filter chain halted as :require_no_authentication rendered or redirected +Completed 302 Found in 6ms (ActiveRecord: 0.5ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-20 17:29:53 +0300 +Processing by ContactsController#index as HTML + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (3.3ms) +Completed 200 OK in 34ms (Views: 31.8ms | ActiveRecord: 0.3ms) + + +Started DELETE "/users/sign_out" for 127.0.0.1 at 2018-09-20 17:29:57 +0300 +Processing by Devise::SessionsController#destroy as HTML + Parameters: {"authenticity_token"=>"eIRXyEOLUIs4Vh/pgF7mfDvef3XX91AOU+002Rz85UOFhtZ1vplUF8Q4F5VW3RgKkRCRiWzMDm6Y+k1PuAAbpg=="} + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.2ms) commit transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/ +Completed 302 Found in 44ms (ActiveRecord: 0.5ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-20 17:29:57 +0300 +Processing by ContactsController#index as HTML + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 21ms (Views: 20.1ms | ActiveRecord: 0.2ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-20 17:30:03 +0300 +Processing by ContactsController#index as HTML + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.4ms) SELECT "contacts".* FROM "contacts" + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 42ms (Views: 38.8ms | ActiveRecord: 0.4ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-20 17:30:09 +0300 +Processing by ContactsController#index as HTML + Rendering contacts/index.html.erb within layouts/application + Contact Load (1.2ms) SELECT "contacts".* FROM "contacts" + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (6.4ms) +Completed 200 OK in 45ms (Views: 41.3ms | ActiveRecord: 1.2ms) + + +Started GET "/users/sign_in" for 127.0.0.1 at 2018-09-20 17:30:13 +0300 +Processing by Devise::SessionsController#new as HTML + Rendering devise/sessions/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (2.5ms) + Rendered devise/sessions/new.html.erb within layouts/application (9.5ms) +Completed 200 OK in 49ms (Views: 45.5ms | ActiveRecord: 0.0ms) + + +Started GET "/users/sign_up" for 127.0.0.1 at 2018-09-20 17:30:15 +0300 +Processing by Devise::RegistrationsController#new as HTML + Rendering devise/registrations/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (2.5ms) + Rendered devise/registrations/new.html.erb within layouts/application (13.9ms) +Completed 200 OK in 55ms (Views: 53.8ms | ActiveRecord: 0.0ms) + + +Started GET "/users/sign_in" for 127.0.0.1 at 2018-09-20 17:32:57 +0300 +Processing by Devise::SessionsController#new as HTML + Rendering devise/sessions/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (1.2ms) + Rendered devise/sessions/new.html.erb within layouts/application (4.9ms) +Completed 200 OK in 42ms (Views: 26.4ms | ActiveRecord: 1.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-20 17:32:59 +0300 +Processing by ContactsController#index as HTML +Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) + + +Started GET "/users/sign_in" for 127.0.0.1 at 2018-09-20 17:32:59 +0300 +Processing by Devise::SessionsController#new as HTML + Rendering devise/sessions/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (2.0ms) + Rendered devise/sessions/new.html.erb within layouts/application (10.4ms) +Completed 200 OK in 59ms (Views: 57.0ms | ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-20 17:33:04 +0300 +Processing by ContactsController#index as HTML +Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) + + +Started GET "/users/sign_in" for 127.0.0.1 at 2018-09-20 17:33:04 +0300 +Processing by Devise::SessionsController#new as HTML + Rendering devise/sessions/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (4.1ms) + Rendered devise/sessions/new.html.erb within layouts/application (11.9ms) +Completed 200 OK in 47ms (Views: 43.4ms | ActiveRecord: 0.0ms) + + +Started GET "/users/sign_up" for 127.0.0.1 at 2018-09-20 17:33:09 +0300 +Processing by Devise::RegistrationsController#new as HTML + Rendering devise/registrations/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (2.2ms) + Rendered devise/registrations/new.html.erb within layouts/application (7.7ms) +Completed 200 OK in 41ms (Views: 40.0ms | ActiveRecord: 0.0ms) + + +Started POST "/users" for 127.0.0.1 at 2018-09-20 17:33:13 +0300 +Processing by Devise::RegistrationsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"iPfVBKJ3mbEtVoJgfKYQLWoxNqoI1RHvWFlGSURqe4SpHZbR7j7HmlhqLjqPy8ns3FJGDmNAD7D8q9UB8TeXAw==", "user"=>{"email"=>"xoxuxako@pyqafewihivujo.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"} +  (0.1ms) begin transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "xoxuxako@pyqafewihivujo.com"], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Create (1.9ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "xoxuxako@pyqafewihivujo.com"], ["encrypted_password", "$2a$11$mFubhTjTynnMkHGchVzcy.tjkt8JLHzdPBcoileFcNIaW5IVDNeH6"], ["created_at", "2018-09-20 14:33:14.029960"], ["updated_at", "2018-09-20 14:33:14.029960"]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (80.5ms) commit transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/ +Completed 302 Found in 302ms (ActiveRecord: 82.7ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-20 17:33:14 +0300 +Processing by ContactsController#index as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (26.8ms) +Completed 200 OK in 76ms (Views: 64.5ms | ActiveRecord: 1.8ms) + + +Started DELETE "/users/sign_out" for 127.0.0.1 at 2018-09-20 17:33:18 +0300 +Processing by Devise::SessionsController#destroy as HTML + Parameters: {"authenticity_token"=>"Kak2REqn2aAP1RxGezOwJ18mtoO/9um47v2T1cZKWjfmwkTK0wbG+uQUnWjMS0YDtIi/80rqNyX36/NDebGoeA=="} + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) commit transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/ +Completed 302 Found in 18ms (ActiveRecord: 0.7ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-20 17:33:18 +0300 +Processing by ContactsController#index as HTML +Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) + + +Started GET "/users/sign_in" for 127.0.0.1 at 2018-09-20 17:33:18 +0300 +Processing by Devise::SessionsController#new as HTML + Rendering devise/sessions/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (3.5ms) + Rendered devise/sessions/new.html.erb within layouts/application (10.9ms) +Completed 200 OK in 65ms (Views: 62.4ms | ActiveRecord: 0.0ms) + + +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Started GET "/" for 127.0.0.1 at 2018-09-20 17:34:29 +0300 +Processing by ContactsController#index as HTML +Completed 401 Unauthorized in 3ms (ActiveRecord: 0.0ms) + + +Started GET "/users/sign_in" for 127.0.0.1 at 2018-09-20 17:34:29 +0300 +Processing by Devise::SessionsController#new as HTML + Rendering devise/sessions/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (1.1ms) + Rendered devise/sessions/new.html.erb within layouts/application (4.1ms) +Completed 200 OK in 34ms (Views: 21.6ms | ActiveRecord: 0.9ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 17:34:33 +0300 +Processing by ContactsController#index as HTML +Completed 401 Unauthorized in 2ms (ActiveRecord: 0.0ms) + + +Started GET "/users/sign_in" for 127.0.0.1 at 2018-09-20 17:34:33 +0300 +Processing by Devise::SessionsController#new as HTML + Rendering devise/sessions/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (3.3ms) + Rendered devise/sessions/new.html.erb within layouts/application (11.8ms) +Completed 200 OK in 56ms (Views: 54.1ms | ActiveRecord: 0.0ms) + + +Started GET "/users/sign_up" for 127.0.0.1 at 2018-09-20 17:34:37 +0300 +Processing by Devise::RegistrationsController#new as HTML + Rendering devise/registrations/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (2.3ms) + Rendered devise/registrations/new.html.erb within layouts/application (8.2ms) +Completed 200 OK in 38ms (Views: 36.0ms | ActiveRecord: 0.0ms) + + +Started POST "/users" for 127.0.0.1 at 2018-09-20 17:34:40 +0300 +Processing by Devise::RegistrationsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"0/rLujluURw1ZLJga/ZXsQfaxdCVYgs4c/7g3U06XVipJ3dzu4OUZ4rAen3WVYVqdJhGeKHC5SroOIWzRWT/dw==", "user"=>{"email"=>"sakepiwoz@tumygapihakog.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"} +  (0.3ms) begin transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "sakepiwoz@tumygapihakog.com"], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Create (0.9ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "sakepiwoz@tumygapihakog.com"], ["encrypted_password", "$2a$11$Hn6uW.a.6uJeB4DMU/UxyOeXj7KgZL5AdE0T6KfqqzRIYYpAOTK4O"], ["created_at", "2018-09-20 14:34:40.890643"], ["updated_at", "2018-09-20 14:34:40.890643"]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (80.9ms) commit transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 278ms (ActiveRecord: 82.3ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 17:34:40 +0300 +Processing by ContactsController#index as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 4], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (17.5ms) +Completed 200 OK in 46ms (Views: 39.7ms | ActiveRecord: 1.6ms) + + +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) DROP TABLE IF EXISTS "contacts" + ↳ db/schema.rb:15 +  (0.1ms) SELECT sqlite_version(*) + ↳ db/schema.rb:15 +  (106.8ms) CREATE TABLE "contacts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "phonenumber" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "user_id" integer) + ↳ db/schema.rb:15 +  (99.2ms) CREATE INDEX "index_contacts_on_user_id" ON "contacts" ("user_id") + ↳ db/schema.rb:15 +  (0.4ms) DROP TABLE IF EXISTS "users" + ↳ db/schema.rb:25 +  (105.6ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/schema.rb:25 +  (170.1ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email") + ↳ db/schema.rb:25 +  (252.5ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token") + ↳ db/schema.rb:25 +  (252.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) + ↳ db/schema.rb:13 +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ db/schema.rb:13 +  (74.7ms) INSERT INTO "schema_migrations" (version) VALUES (20180920132335) + ↳ db/schema.rb:13 +  (74.6ms) INSERT INTO "schema_migrations" (version) VALUES +(20180920130430), +(20180920132032); + + + ↳ db/schema.rb:13 +  (102.7ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/schema.rb:13 + ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + ↳ db/schema.rb:13 +  (0.2ms) begin transaction + ↳ db/schema.rb:13 + ActiveRecord::InternalMetadata Create (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2018-09-20 14:35:00.748480"], ["updated_at", "2018-09-20 14:35:00.748480"]] + ↳ db/schema.rb:13 +  (97.4ms) commit transaction + ↳ db/schema.rb:13 + ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.2ms) begin transaction + ↳ bin/rails:9 +  (0.1ms) commit transaction + ↳ bin/rails:9 +  (0.2ms) DROP TABLE IF EXISTS "contacts" + ↳ db/schema.rb:15 +  (0.2ms) SELECT sqlite_version(*) + ↳ db/schema.rb:15 +  (75.9ms) CREATE TABLE "contacts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "phonenumber" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "user_id" integer) + ↳ db/schema.rb:15 +  (97.1ms) CREATE INDEX "index_contacts_on_user_id" ON "contacts" ("user_id") + ↳ db/schema.rb:15 +  (0.5ms) DROP TABLE IF EXISTS "users" + ↳ db/schema.rb:25 +  (107.1ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/schema.rb:25 +  (101.0ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email") + ↳ db/schema.rb:25 +  (108.9ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token") + ↳ db/schema.rb:25 +  (107.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) + ↳ db/schema.rb:13 +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ db/schema.rb:13 +  (81.8ms) INSERT INTO "schema_migrations" (version) VALUES (20180920132335) + ↳ db/schema.rb:13 +  (99.3ms) INSERT INTO "schema_migrations" (version) VALUES +(20180920130430), +(20180920132032); + + + ↳ db/schema.rb:13 +  (101.9ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/schema.rb:13 + ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + ↳ db/schema.rb:13 +  (0.1ms) begin transaction + ↳ db/schema.rb:13 + ActiveRecord::InternalMetadata Create (0.6ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2018-09-20 14:35:01.774408"], ["updated_at", "2018-09-20 14:35:01.774408"]] + ↳ db/schema.rb:13 +  (89.3ms) commit transaction + ↳ db/schema.rb:13 + ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.1ms) begin transaction + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Update (0.6ms) UPDATE "ar_internal_metadata" SET "value" = ?, "updated_at" = ? WHERE "ar_internal_metadata"."key" = ? [["value", "test"], ["updated_at", "2018-09-20 14:35:01.880115"], ["key", "environment"]] + ↳ bin/rails:9 +  (100.5ms) commit transaction + ↳ bin/rails:9 +  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 17:35:03 +0300 +Processing by ContactsController#index as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 4], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (4.3ms) +Completed 200 OK in 41ms (Views: 34.5ms | ActiveRecord: 0.9ms) + + +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT sqlite_version(*) + ↳ bin/rails:9 +  (134.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) + ↳ bin/rails:9 +  (145.6ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ bin/rails:9 +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to DeviseCreateUsers (20180920130430) +  (0.1ms) begin transaction + ↳ bin/rails:9 +  (1.2ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180920130430_devise_create_users.rb:5 +  (0.6ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email") + ↳ db/migrate/20180920130430_devise_create_users.rb:39 +  (0.4ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token") + ↳ db/migrate/20180920130430_devise_create_users.rb:40 + ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920130430"]] + ↳ bin/rails:9 +  (128.7ms) commit transaction + ↳ bin/rails:9 +Migrating to CreateContacts (20180920132032) +  (0.2ms) begin transaction + ↳ bin/rails:9 +  (1.1ms) CREATE TABLE "contacts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "phonenumber" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180920132032_create_contacts.rb:3 + ActiveRecord::SchemaMigration Create (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920132032"]] + ↳ bin/rails:9 +  (167.9ms) commit transaction + ↳ bin/rails:9 +Migrating to AddUserToContact (20180920132335) +  (0.2ms) begin transaction + ↳ bin/rails:9 +  (1.0ms) ALTER TABLE "contacts" ADD "user_id" integer + ↳ db/migrate/20180920132335_add_user_to_contact.rb:3 +  (0.6ms) CREATE INDEX "index_contacts_on_user_id" ON "contacts" ("user_id") + ↳ db/migrate/20180920132335_add_user_to_contact.rb:3 + ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920132335"]] + ↳ bin/rails:9 +  (112.7ms) commit transaction + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.1ms) begin transaction + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Create (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2018-09-20 14:35:29.170300"], ["updated_at", "2018-09-20 14:35:29.170300"]] + ↳ bin/rails:9 +  (67.7ms) commit transaction + ↳ bin/rails:9 +  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 17:35:30 +0300 +Processing by ContactsController#index as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 4], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Completed 401 Unauthorized in 8ms (ActiveRecord: 2.0ms) + + +Started GET "/users/sign_in" for 127.0.0.1 at 2018-09-20 17:35:30 +0300 +Processing by Devise::SessionsController#new as HTML + Rendering devise/sessions/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (1.8ms) + Rendered devise/sessions/new.html.erb within layouts/application (5.9ms) +Completed 200 OK in 36ms (Views: 27.3ms | ActiveRecord: 0.0ms) + + +Started GET "/users/sign_up" for 127.0.0.1 at 2018-09-20 17:35:33 +0300 +Processing by Devise::RegistrationsController#new as HTML + Rendering devise/registrations/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (1.1ms) + Rendered devise/registrations/new.html.erb within layouts/application (5.3ms) +Completed 200 OK in 39ms (Views: 35.7ms | ActiveRecord: 0.0ms) + + +Started POST "/users" for 127.0.0.1 at 2018-09-20 17:35:37 +0300 +Processing by Devise::RegistrationsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"KBBaODvPTETnxqWNEXp8U7Yqb09/uS6BWuvKPPORg2xSzebxuSKJP1hibZCs2a6IxWjs50sZwJPBLa9S+88hQw==", "user"=>{"email"=>"gaju@zusoj.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"} +  (0.1ms) begin transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "gaju@zusoj.com"], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "gaju@zusoj.com"], ["encrypted_password", "$2a$11$kiOAf4SJ.0klrN3b/Y/igeJbaZhHo8Nhl/Xaco9OspQ63qxdoK4s."], ["created_at", "2018-09-20 14:35:37.222982"], ["updated_at", "2018-09-20 14:35:37.222982"]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (84.0ms) commit transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 255ms (ActiveRecord: 84.5ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 17:35:37 +0300 +Processing by ContactsController#index as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.4ms) SELECT "contacts".* FROM "contacts" + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (4.0ms) +Completed 200 OK in 31ms (Views: 25.2ms | ActiveRecord: 1.2ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-20 17:35:46 +0300 +Processing by ContactsController#new as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (3.4ms) +Completed 200 OK in 50ms (Views: 27.8ms | ActiveRecord: 1.2ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-20 17:35:49 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"RBPWVNiF9CMvZQyouyHiObhyWEou1nG+IP/8DYdILg24pu30wtu1DWWJhy1mw5cd5rPyonWh4pF6Jr4wkTtpvg==", "contact"=>{"first_name"=>"Ayanna", "last_name"=>"Ortiz", "phonenumber"=>"+342-29-8147977"}, "commit"=>"create"} + User Load (1.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.2ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 + Contact Create (0.7ms) INSERT INTO "contacts" ("first_name", "last_name", "phonenumber", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["first_name", "Ayanna"], ["last_name", "Ortiz"], ["phonenumber", "+342-29-8147977"], ["created_at", "2018-09-20 14:35:49.532491"], ["updated_at", "2018-09-20 14:35:49.532491"]] + ↳ app/controllers/contacts_controller.rb:10 +  (230.5ms) commit transaction + ↳ app/controllers/contacts_controller.rb:10 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 247ms (ActiveRecord: 232.7ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 17:35:49 +0300 +Processing by ContactsController#index as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (3.4ms) +Completed 200 OK in 38ms (Views: 33.8ms | ActiveRecord: 0.7ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-20 17:35:51 +0300 +Processing by ContactsController#new as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (2.7ms) +Completed 200 OK in 39ms (Views: 33.6ms | ActiveRecord: 0.5ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-20 17:35:54 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"2wh2imFiOe1GLG+1rRGwHRmcyoA/ZuQojggG2xTO4/EnvU0qezx4wwzA5DBw88U5R11gaGQRdwfU0UTmAr2kQg==", "contact"=>{"first_name"=>"Mia", "last_name"=>"Kane", "phonenumber"=>"+643-33-5921348"}, "commit"=>"create"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.4ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 + Contact Create (1.5ms) INSERT INTO "contacts" ("first_name", "last_name", "phonenumber", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["first_name", "Mia"], ["last_name", "Kane"], ["phonenumber", "+643-33-5921348"], ["created_at", "2018-09-20 14:35:54.087789"], ["updated_at", "2018-09-20 14:35:54.087789"]] + ↳ app/controllers/contacts_controller.rb:10 +  (306.3ms) commit transaction + ↳ app/controllers/contacts_controller.rb:10 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 323ms (ActiveRecord: 308.6ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 17:35:54 +0300 +Processing by ContactsController#index as HTML + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (3.4ms) +Completed 200 OK in 33ms (Views: 27.6ms | ActiveRecord: 0.8ms) + + +Started DELETE "/users/sign_out" for 127.0.0.1 at 2018-09-20 17:35:56 +0300 +Processing by Devise::SessionsController#destroy as HTML + Parameters: {"authenticity_token"=>"LCHNCFIa5rvfrWHq00b10MgLEnqmpPIfdxt/BbOXjWm0RgcEJJnMPq3iNL/Hb1WXry50mYlFvZb5pev4Bj4dmg=="} + User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.3ms) begin transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) commit transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/ +Completed 302 Found in 12ms (ActiveRecord: 1.2ms) + + +Started GET "/users/sign_in" for 127.0.0.1 at 2018-09-20 17:35:56 +0300 +Processing by Devise::SessionsController#new as HTML + Rendering devise/sessions/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (1.5ms) + Rendered devise/sessions/new.html.erb within layouts/application (6.3ms) +Completed 200 OK in 43ms (Views: 41.2ms | ActiveRecord: 0.0ms) + + +Started GET "/users/sign_up" for 127.0.0.1 at 2018-09-20 17:35:58 +0300 +Processing by Devise::RegistrationsController#new as HTML + Rendering devise/registrations/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (1.8ms) + Rendered devise/registrations/new.html.erb within layouts/application (6.2ms) +Completed 200 OK in 37ms (Views: 35.6ms | ActiveRecord: 0.0ms) + + +Started POST "/users" for 127.0.0.1 at 2018-09-20 17:36:01 +0300 +Processing by Devise::RegistrationsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"ANWYSL00ypDGn+hD7z0sz1Nb7JQzT3fYHoVGPFttfUPyKGB8Dzqy1MeyTE8ZHGBxpU5V7QLQkKNPi20tCMUZRw==", "user"=>{"email"=>"rexuge@dadudyxy.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"} +  (0.1ms) begin transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "rexuge@dadudyxy.com"], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Create (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "rexuge@dadudyxy.com"], ["encrypted_password", "$2a$11$xXZ908YFobxbzmtWAXS.FuDtZV6mZnnXJ7LUA0oT656kenZYbKR8G"], ["created_at", "2018-09-20 14:36:01.368105"], ["updated_at", "2018-09-20 14:36:01.368105"]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (71.8ms) commit transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/ +Completed 302 Found in 301ms (ActiveRecord: 72.6ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-20 17:36:01 +0300 +Processing by ContactsController#index as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 28ms (Views: 24.1ms | ActiveRecord: 0.6ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-20 17:36:46 +0300 +Processing by ContactsController#index as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (13.5ms) +Completed 200 OK in 58ms (Views: 36.3ms | ActiveRecord: 2.3ms) + + +Started DELETE "/users/sign_out" for 127.0.0.1 at 2018-09-20 17:36:48 +0300 +Processing by Devise::SessionsController#destroy as HTML + Parameters: {"authenticity_token"=>"EL+4sIB/W9UcfkaxtCBp0GKAY8ALTzfqFKr+iJGymWI7aHuVC00h58JozxUTM+JC2Lxapi2TTrbN152f+anjDg=="} + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.2ms) commit transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/ +Completed 302 Found in 11ms (ActiveRecord: 0.8ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-20 17:36:48 +0300 +Processing by ContactsController#index as HTML +Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) + + +Started GET "/users/sign_in" for 127.0.0.1 at 2018-09-20 17:36:48 +0300 +Processing by Devise::SessionsController#new as HTML + Rendering devise/sessions/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (1.4ms) + Rendered devise/sessions/new.html.erb within layouts/application (6.3ms) +Completed 200 OK in 40ms (Views: 38.5ms | ActiveRecord: 0.0ms) + + +Started GET "/users/sign_up" for 127.0.0.1 at 2018-09-20 17:36:50 +0300 +Processing by Devise::RegistrationsController#new as HTML + Rendering devise/registrations/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (2.7ms) + Rendered devise/registrations/new.html.erb within layouts/application (9.5ms) +Completed 200 OK in 35ms (Views: 33.8ms | ActiveRecord: 0.0ms) + + +Started POST "/users" for 127.0.0.1 at 2018-09-20 17:36:53 +0300 +Processing by Devise::RegistrationsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"jCJrjtgx8RiAWL5EiFAMtxhj8Pzeh5mG0xzOgiIEp5OOBE+8Ob+mCacKih/2cbeaxCBryzaY0CZtfLoMuNZ7jw==", "user"=>{"email"=>"xupejag@hudyb.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"} +  (0.1ms) begin transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "xupejag@hudyb.com"], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Create (1.0ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "xupejag@hudyb.com"], ["encrypted_password", "$2a$11$Lln23Vzx2lJ/7Tyf3CL4Mun4NGNdyPS5IWX1zQ7cPQbb.41PcwSba"], ["created_at", "2018-09-20 14:36:54.179624"], ["updated_at", "2018-09-20 14:36:54.179624"]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (73.1ms) commit transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/ +Completed 302 Found in 271ms (ActiveRecord: 74.3ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-20 17:36:54 +0300 +Processing by ContactsController#index as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 23ms (Views: 20.1ms | ActiveRecord: 0.4ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-20 17:37:31 +0300 +Processing by ContactsController#new as HTML + User Load (0.9ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (2.7ms) +Completed 200 OK in 35ms (Views: 29.2ms | ActiveRecord: 0.9ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-20 17:37:34 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"7red2QaUhmISdhBgu466A/SsHrm9VwGmNfHcNmzdqmN/wcCtOviouXWd8MVS8PfjPAE8Boy8oh6Kt4MOLwGusQ==", "contact"=>{"first_name"=>"Calista", "last_name"=>"Stevens", "phonenumber"=>"+591-79-1410496"}, "commit"=>"create"} + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.2ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 + Contact Create (2.1ms) INSERT INTO "contacts" ("first_name", "last_name", "phonenumber", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["first_name", "Calista"], ["last_name", "Stevens"], ["phonenumber", "+591-79-1410496"], ["created_at", "2018-09-20 14:37:34.549659"], ["updated_at", "2018-09-20 14:37:34.549659"]] + ↳ app/controllers/contacts_controller.rb:10 +  (153.6ms) commit transaction + ↳ app/controllers/contacts_controller.rb:10 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 169ms (ActiveRecord: 156.4ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 17:37:34 +0300 +Processing by ContactsController#index as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 39ms (Views: 32.7ms | ActiveRecord: 0.8ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-20 17:41:11 +0300 +Processing by ContactsController#index as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 3]] + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (6.6ms) +Completed 200 OK in 57ms (Views: 21.0ms | ActiveRecord: 1.4ms) + + +Started DELETE "/users/sign_out" for 127.0.0.1 at 2018-09-20 17:41:15 +0300 +Processing by Devise::SessionsController#destroy as HTML + Parameters: {"authenticity_token"=>"J4kMnAD3i9HFTuJ9eEIjtXG4sNb8H0Gmkp4akdmo4Ub3NOfFDrq3twgFVrIjQkA/F5zIWbVutJJBtkCuHVVYcg=="} + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.2ms) begin transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) commit transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/ +Completed 302 Found in 13ms (ActiveRecord: 0.9ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-20 17:41:15 +0300 +Processing by ContactsController#index as HTML +Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) + + +Started GET "/users/sign_in" for 127.0.0.1 at 2018-09-20 17:41:15 +0300 +Processing by Devise::SessionsController#new as HTML + Rendering devise/sessions/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (1.4ms) + Rendered devise/sessions/new.html.erb within layouts/application (5.4ms) +Completed 200 OK in 31ms (Views: 29.2ms | ActiveRecord: 0.0ms) + + +Started GET "/users/sign_up" for 127.0.0.1 at 2018-09-20 17:41:18 +0300 +Processing by Devise::RegistrationsController#new as HTML + Rendering devise/registrations/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (1.8ms) + Rendered devise/registrations/new.html.erb within layouts/application (7.2ms) +Completed 200 OK in 35ms (Views: 33.3ms | ActiveRecord: 0.0ms) + + +Started POST "/users" for 127.0.0.1 at 2018-09-20 17:41:21 +0300 +Processing by Devise::RegistrationsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"Ab+Ui/yx/cLuVnkO5qXEPcu5rolo2bB2kwkdA684NjhInRRin3gPF1UrqZCIhmLyrsLiUVNlrScgDKZDlenaJg==", "user"=>{"email"=>"dodunabu@nasoxijumep.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"} +  (0.1ms) begin transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "dodunabu@nasoxijumep.com"], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Create (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "dodunabu@nasoxijumep.com"], ["encrypted_password", "$2a$11$g4NHoJ3rxiymu1n0WasrL.lLBbGE.IGBeTMNQnsevLePO1QTaKGWa"], ["created_at", "2018-09-20 14:41:21.779670"], ["updated_at", "2018-09-20 14:41:21.779670"]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (74.8ms) commit transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/ +Completed 302 Found in 258ms (ActiveRecord: 75.3ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-20 17:41:21 +0300 +Processing by ContactsController#index as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 4], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 4]] + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (3.2ms) +Completed 200 OK in 40ms (Views: 36.4ms | ActiveRecord: 0.6ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-20 17:41:24 +0300 +Processing by ContactsController#new as HTML + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 4], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (3.4ms) +Completed 200 OK in 61ms (Views: 33.9ms | ActiveRecord: 1.7ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-20 17:41:27 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"BeSQtp7Vi8E+BIWaoX6ieVE3nu7VdTRjm75qUW1rfHiXgi4ro/uMzi+PG+Sq4XPQEH9gl0IBGhm5BoqOD3d75A==", "contact"=>{"first_name"=>"Rigel", "last_name"=>"Head", "phonenumber"=>"+247-86-1959979"}, "commit"=>"create"} + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 4], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.4ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 + Contact Create (0.5ms) INSERT INTO "contacts" ("first_name", "last_name", "phonenumber", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["first_name", "Rigel"], ["last_name", "Head"], ["phonenumber", "+247-86-1959979"], ["created_at", "2018-09-20 14:41:27.748933"], ["updated_at", "2018-09-20 14:41:27.748933"]] + ↳ app/controllers/contacts_controller.rb:10 +  (275.9ms) commit transaction + ↳ app/controllers/contacts_controller.rb:10 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 290ms (ActiveRecord: 277.3ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 17:41:28 +0300 +Processing by ContactsController#index as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 4], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 4]] + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (3.2ms) +Completed 200 OK in 61ms (Views: 54.5ms | ActiveRecord: 0.8ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-20 17:41:30 +0300 +Processing by ContactsController#new as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 4], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (5.7ms) +Completed 200 OK in 71ms (Views: 64.8ms | ActiveRecord: 0.4ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-20 17:41:33 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"zRTOUxIZIrD73vfdNL0k7b1WBy0gJfUh2KVWfzzvGudfcnDOLzclv+pVaaM/IvVE/B75VLdR21v6HbagXvMdew==", "contact"=>{"first_name"=>"Rae", "last_name"=>"Moore", "phonenumber"=>"+383-86-5759166"}, "commit"=>"create"} + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 4], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.2ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 + Contact Create (0.5ms) INSERT INTO "contacts" ("first_name", "last_name", "phonenumber", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["first_name", "Rae"], ["last_name", "Moore"], ["phonenumber", "+383-86-5759166"], ["created_at", "2018-09-20 14:41:33.556440"], ["updated_at", "2018-09-20 14:41:33.556440"]] + ↳ app/controllers/contacts_controller.rb:10 +  (300.3ms) commit transaction + ↳ app/controllers/contacts_controller.rb:10 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 314ms (ActiveRecord: 301.6ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 17:41:33 +0300 +Processing by ContactsController#index as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 4], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 4]] + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (3.5ms) +Completed 200 OK in 55ms (Views: 48.8ms | ActiveRecord: 0.6ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-20 17:41:41 +0300 +Processing by ContactsController#new as HTML + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 4], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (3.8ms) +Completed 200 OK in 55ms (Views: 45.6ms | ActiveRecord: 0.6ms) + + + User Load (0.5ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT ? [["LIMIT", 1]] + User Load (0.4ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT ? [["LIMIT", 1]] + Contact Load (0.4ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? LIMIT ? [["user_id", 4], ["LIMIT", 11]] +Started POST "/contacts" for 127.0.0.1 at 2018-09-20 17:43:36 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"VZJQgKldlEXr44Z+yGtjEoD7xrZbsSAbm9FOTnE5zsLH9O4dlHOTSvpoGADD9LK7wbM4z8zFDmG5aa6REyXJXg==", "contact"=>{"first_name"=>"Sandra", "last_name"=>"Livingston", "phonenumber"=>"+731-23-3027743"}, "commit"=>"create"} + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 4], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 + Contact Create (0.6ms) INSERT INTO "contacts" ("first_name", "last_name", "phonenumber", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["first_name", "Sandra"], ["last_name", "Livingston"], ["phonenumber", "+731-23-3027743"], ["created_at", "2018-09-20 14:43:36.379670"], ["updated_at", "2018-09-20 14:43:36.379670"]] + ↳ app/controllers/contacts_controller.rb:10 +  (317.4ms) commit transaction + ↳ app/controllers/contacts_controller.rb:10 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 334ms (ActiveRecord: 318.7ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 17:43:36 +0300 +Processing by ContactsController#index as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 4], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 4]] + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (3.3ms) +Completed 200 OK in 40ms (Views: 35.1ms | ActiveRecord: 0.7ms) + + +Started DELETE "/users/sign_out" for 127.0.0.1 at 2018-09-20 17:43:44 +0300 +Processing by Devise::SessionsController#destroy as HTML + Parameters: {"authenticity_token"=>"1Vz2K4N1FJTUxnkDbo/kcYVjCR7YXzxzEvoC2nGTMm1U2xhDw/+GLcPVNjBhvXyufKOYmSW6W/uvst20kLY1pw=="} + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 4], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.3ms) begin transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.2ms) commit transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/ +Completed 302 Found in 14ms (ActiveRecord: 1.1ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-20 17:43:44 +0300 +Processing by ContactsController#index as HTML +Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) + + +Started GET "/users/sign_in" for 127.0.0.1 at 2018-09-20 17:43:44 +0300 +Processing by Devise::SessionsController#new as HTML + Rendering devise/sessions/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (1.8ms) + Rendered devise/sessions/new.html.erb within layouts/application (6.8ms) +Completed 200 OK in 40ms (Views: 38.0ms | ActiveRecord: 0.0ms) + + +Started GET "/users/sign_up" for 127.0.0.1 at 2018-09-20 17:43:47 +0300 +Processing by Devise::RegistrationsController#new as HTML + Rendering devise/registrations/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (2.7ms) + Rendered devise/registrations/new.html.erb within layouts/application (9.5ms) +Completed 200 OK in 46ms (Views: 43.7ms | ActiveRecord: 0.0ms) + + +Started POST "/users" for 127.0.0.1 at 2018-09-20 17:43:50 +0300 +Processing by Devise::RegistrationsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"v3KZZK3do/nFtGsX4sZEudaYX43Rxl3eZiEWEmnZZyozOytR0kJgy8tteqQMUBXnqcXVGD6QTyjGpHWxzVj2Jg==", "user"=>{"email"=>"vuwotovob@kycikaruqocakuf.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"} +  (0.1ms) begin transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "vuwotovob@kycikaruqocakuf.com"], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Create (0.8ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "vuwotovob@kycikaruqocakuf.com"], ["encrypted_password", "$2a$11$X/BhQmRcIKITmaKq0mcxV.qen4c1/RLFjizgvgMW90jMTQYXDPhB6"], ["created_at", "2018-09-20 14:43:50.638874"], ["updated_at", "2018-09-20 14:43:50.638874"]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (89.7ms) commit transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/ +Completed 302 Found in 317ms (ActiveRecord: 90.8ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-20 17:43:50 +0300 +Processing by ContactsController#index as HTML + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 5], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.4ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 5]] + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (4.5ms) +Completed 200 OK in 30ms (Views: 25.1ms | ActiveRecord: 1.0ms) + + + Contact Load (0.7ms) SELECT "contacts".* FROM "contacts" LIMIT ? [["LIMIT", 11]] +  (0.5ms) SELECT COUNT(*) FROM "contacts" + User Load (0.6ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ? [["LIMIT", 1]] + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? LIMIT ? [["user_id", 1], ["LIMIT", 11]] + User Load (0.3ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ? [["LIMIT", 1]] +  (0.4ms) SELECT COUNT(*) FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] +Started GET "/" for 127.0.0.1 at 2018-09-20 17:46:02 +0300 +Processing by ContactsController#index as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 5], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 5]] + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (4.5ms) +Completed 200 OK in 111ms (Views: 25.7ms | ActiveRecord: 2.0ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-20 17:46:07 +0300 +Processing by ContactsController#new as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 5], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (5.9ms) +Completed 200 OK in 56ms (Views: 34.9ms | ActiveRecord: 1.0ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-20 17:46:10 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"2c0Govu1wJYjXj7KZZPbk6ZeBr/+myEeLIP0vh3VgDv+KOTXWdMir6839UPW9Qyv0Xb8LvEYZyy8iq0UJ6T2+g==", "contact"=>{"first_name"=>"Jescie", "last_name"=>"Hutchinson", "phonenumber"=>"+584-87-7756535"}, "commit"=>"create"} + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 5], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 +  (0.1ms) rollback transaction + ↳ app/controllers/contacts_controller.rb:10 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (1.4ms) +Completed 200 OK in 84ms (Views: 19.0ms | ActiveRecord: 0.7ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-20 17:46:13 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"m+pwvDWzuKjxyBpe9kJXWH0FpABTzSOGw/S8P4w29RAR+gi7bNWU2CKcttFV34FMXIi8h6h6QPp8ILIvMaiZqg==", "contact"=>{"first_name"=>"Jescie", "last_name"=>"Hutchinson", "phonenumber"=>"+584-87-7756535"}, "commit"=>"create"} + User Load (0.9ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 5], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.2ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 +  (0.2ms) rollback transaction + ↳ app/controllers/contacts_controller.rb:10 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (4.4ms) +Completed 200 OK in 49ms (Views: 38.9ms | ActiveRecord: 1.3ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-20 17:46:13 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"SytFDTQvIyMTLL5wUH1g/m1Zu/bssBBBHWgXHi1qb6jBOz0KbUkPU8B4Ev/z4LbqTNSjcRcHcz2ivBkOkPQDEg==", "contact"=>{"first_name"=>"Jescie", "last_name"=>"Hutchinson", "phonenumber"=>"+584-87-7756535"}, "commit"=>"create"} + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 5], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.2ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 +  (0.2ms) rollback transaction + ↳ app/controllers/contacts_controller.rb:10 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (1.9ms) +Completed 200 OK in 29ms (Views: 22.6ms | ActiveRecord: 0.6ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-20 17:46:13 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"+eygo3a1rBER+tlFwwRtklxqBMQybRJ9Slk8Zlrpa9Nz/NikL9OAYcKudcpgmbuGfeccQ8nacQH1jTJ253cHaQ==", "contact"=>{"first_name"=>"Jescie", "last_name"=>"Hutchinson", "phonenumber"=>"+584-87-7756535"}, "commit"=>"create"} + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 5], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 +  (0.1ms) rollback transaction + ↳ app/controllers/contacts_controller.rb:10 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (1.7ms) +Completed 200 OK in 28ms (Views: 20.6ms | ActiveRecord: 0.5ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-20 17:46:13 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"xOefPMIoxDK5aWQ3Ryjj9IVH0U/8XnpKe+jTUV13lsBO9+c7m07oQmo9yLjktTXgpMrJyAfpGTbEPN1B4On6eg==", "contact"=>{"first_name"=>"Jescie", "last_name"=>"Hutchinson", "phonenumber"=>"+584-87-7756535"}, "commit"=>"create"} + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 5], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.2ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 +  (0.4ms) rollback transaction + ↳ app/controllers/contacts_controller.rb:10 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (2.6ms) +Completed 200 OK in 63ms (Views: 50.1ms | ActiveRecord: 1.2ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-20 17:46:14 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"en7cAyIdYZvffpEOIx2SAJ73EENfaCUX7sFBSQ70lOfwbqQEe3tN6wwqPYGAgEQUv3oIxKTfRmtRFU9Zs2r4XQ==", "contact"=>{"first_name"=>"Jescie", "last_name"=>"Hutchinson", "phonenumber"=>"+584-87-7756535"}, "commit"=>"create"} + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 5], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.4ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 +  (0.1ms) rollback transaction + ↳ app/controllers/contacts_controller.rb:10 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (1.5ms) +Completed 200 OK in 26ms (Views: 18.8ms | ActiveRecord: 0.8ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-20 17:46:16 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"uZIcCkgpotGK6mu9CO5SBgAIOH1UYDxXYe5FlbcFnDwzgmQNEU+OoVm+xzKrc4QSIYUg+q/XXyveOkuFCpvwhg==", "contact"=>{"first_name"=>"Jescie", "last_name"=>"Hutchinson", "phonenumber"=>"+584-87-7756535"}, "commit"=>"create"} + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 5], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.2ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 +  (0.2ms) rollback transaction + ↳ app/controllers/contacts_controller.rb:10 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (2.8ms) +Completed 200 OK in 49ms (Views: 38.0ms | ActiveRecord: 1.0ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 17:49:11 +0300 +Processing by ContactsController#index as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 5], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 5]] + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (3.6ms) +Completed 200 OK in 44ms (Views: 21.8ms | ActiveRecord: 2.2ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-20 17:49:13 +0300 +Processing by ContactsController#new as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 5], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (6.6ms) +Completed 200 OK in 73ms (Views: 49.5ms | ActiveRecord: 1.1ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-20 17:49:16 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"UKO1PsswS5aqJF1Mzr5WrH+kGMqZ5pktllqyclppPSd3RldLaVapryZNlsV92IGQCIziW5Zl3x8GU+vYYBhL5g==", "contact"=>{"first_name"=>"Barry", "last_name"=>"Haney", "phonenumber"=>"+264-73-4238822"}, "commit"=>"create"} + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 5], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.2ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 + Contact Create (0.8ms) INSERT INTO "contacts" ("first_name", "last_name", "phonenumber", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["first_name", "Barry"], ["last_name", "Haney"], ["phonenumber", "+264-73-4238822"], ["created_at", "2018-09-20 14:49:16.925639"], ["updated_at", "2018-09-20 14:49:16.925639"], ["user_id", 5]] + ↳ app/controllers/contacts_controller.rb:10 +  (238.1ms) commit transaction + ↳ app/controllers/contacts_controller.rb:10 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 257ms (ActiveRecord: 239.6ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 17:49:17 +0300 +Processing by ContactsController#index as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 5], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 5]] + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (5.3ms) +Completed 200 OK in 39ms (Views: 33.8ms | ActiveRecord: 0.6ms) + + +Started DELETE "/users/sign_out" for 127.0.0.1 at 2018-09-20 17:49:22 +0300 +Processing by Devise::SessionsController#destroy as HTML + Parameters: {"authenticity_token"=>"qj6OwrObfRYsAkC5KkuYaMcAEihBYAo1kQlFukI45nQgLvbF6v1RZv9W7DaJ1k585o0Kr7rXaUku3Uuq/6aKzg=="} + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 5], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) commit transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/ +Completed 302 Found in 11ms (ActiveRecord: 0.8ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-20 17:49:22 +0300 +Processing by ContactsController#index as HTML +Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) + + +Started GET "/users/sign_in" for 127.0.0.1 at 2018-09-20 17:49:22 +0300 +Processing by Devise::SessionsController#new as HTML + Rendering devise/sessions/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (1.6ms) + Rendered devise/sessions/new.html.erb within layouts/application (7.6ms) +Completed 200 OK in 36ms (Views: 34.6ms | ActiveRecord: 0.0ms) + + +Started GET "/users/sign_up" for 127.0.0.1 at 2018-09-20 17:49:24 +0300 +Processing by Devise::RegistrationsController#new as HTML + Rendering devise/registrations/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (1.3ms) + Rendered devise/registrations/new.html.erb within layouts/application (5.5ms) +Completed 200 OK in 29ms (Views: 27.1ms | ActiveRecord: 0.0ms) + + +Started POST "/users" for 127.0.0.1 at 2018-09-20 17:49:28 +0300 +Processing by Devise::RegistrationsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"M1McfoCgBUx1GipwZlu122N2KbL6YSHBHWLwk/aUIO6S3aFGRkI6LuEMAiZNVv+84MsbIi55oj5u2id9kx0dMg==", "user"=>{"email"=>"mogy@gyvikij.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"} +  (0.1ms) begin transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "mogy@gyvikij.com"], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Create (2.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "mogy@gyvikij.com"], ["encrypted_password", "$2a$11$Hwg146s5q0XFntZV7WPBQ.rQNI52aEvRSSwfhvGa5RoyxHuES8xc."], ["created_at", "2018-09-20 14:49:28.617937"], ["updated_at", "2018-09-20 14:49:28.617937"]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (80.6ms) commit transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/ +Completed 302 Found in 269ms (ActiveRecord: 83.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-20 17:49:28 +0300 +Processing by ContactsController#index as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 6], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 6]] + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 22ms (Views: 19.0ms | ActiveRecord: 0.4ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-20 17:49:36 +0300 +Processing by ContactsController#new as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 6], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (2.5ms) +Completed 200 OK in 38ms (Views: 33.5ms | ActiveRecord: 0.3ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-20 17:49:37 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"I2ZPhr1Djm6SPFSRwuj0Q+GZ6NQ13uGRgSBqVahCL+RV1Q2Kpo6DaGfi9dtr9n0Ee7sI7vUxkPvSdCy4VfCG1w==", "contact"=>{"first_name"=>"", "last_name"=>"", "phonenumber"=>""}, "commit"=>"create"} + User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 6], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.2ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 + Contact Create (1.8ms) INSERT INTO "contacts" ("first_name", "last_name", "phonenumber", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["first_name", ""], ["last_name", ""], ["phonenumber", ""], ["created_at", "2018-09-20 14:49:37.049998"], ["updated_at", "2018-09-20 14:49:37.049998"], ["user_id", 6]] + ↳ app/controllers/contacts_controller.rb:10 +  (150.6ms) commit transaction + ↳ app/controllers/contacts_controller.rb:10 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 169ms (ActiveRecord: 153.3ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 17:49:37 +0300 +Processing by ContactsController#index as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 6], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 6]] + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 34ms (Views: 30.1ms | ActiveRecord: 0.5ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-20 17:49:39 +0300 +Processing by ContactsController#new as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 6], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (3.3ms) +Completed 200 OK in 50ms (Views: 42.2ms | ActiveRecord: 0.4ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-20 17:49:42 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"GY0qk7x5VkfLP9PD9mDgTh4kI+Fyp/7QqA5kp1WJk+BvPmifp7RbQT7hcolffmkJhAbD27JIj7r7WiJKqDs60w==", "contact"=>{"first_name"=>"Alea", "last_name"=>"Branch", "phonenumber"=>"+376-56-3826643"}, "commit"=>"create"} + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 6], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 + Contact Create (0.7ms) INSERT INTO "contacts" ("first_name", "last_name", "phonenumber", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["first_name", "Alea"], ["last_name", "Branch"], ["phonenumber", "+376-56-3826643"], ["created_at", "2018-09-20 14:49:42.092819"], ["updated_at", "2018-09-20 14:49:42.092819"], ["user_id", 6]] + ↳ app/controllers/contacts_controller.rb:10 +  (207.2ms) commit transaction + ↳ app/controllers/contacts_controller.rb:10 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 221ms (ActiveRecord: 208.5ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 17:49:42 +0300 +Processing by ContactsController#index as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 6], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 6]] + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (5.4ms) +Completed 200 OK in 36ms (Views: 31.2ms | ActiveRecord: 0.7ms) + + +Started DELETE "/users/sign_out" for 127.0.0.1 at 2018-09-20 17:49:49 +0300 +Processing by Devise::SessionsController#destroy as HTML + Parameters: {"authenticity_token"=>"pWYHCd9GhMP52GAgLOIE+LJCDbq+ZwnnDd/qskCm2dboNWM/3fQViFXzg0BoV+Optk8wl2DzxQA499pE28Rsgg=="} + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 6], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) commit transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/ +Completed 302 Found in 9ms (ActiveRecord: 0.7ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-20 17:49:49 +0300 +Processing by ContactsController#index as HTML +Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) + + +Started GET "/users/sign_in" for 127.0.0.1 at 2018-09-20 17:49:49 +0300 +Processing by Devise::SessionsController#new as HTML + Rendering devise/sessions/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (1.4ms) + Rendered devise/sessions/new.html.erb within layouts/application (5.9ms) +Completed 200 OK in 35ms (Views: 33.5ms | ActiveRecord: 0.0ms) + + +Started GET "/users/password/new" for 127.0.0.1 at 2018-09-20 17:49:51 +0300 +Processing by Devise::PasswordsController#new as HTML + Rendering devise/passwords/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (1.4ms) + Rendered devise/passwords/new.html.erb within layouts/application (4.4ms) +Completed 200 OK in 32ms (Views: 29.2ms | ActiveRecord: 0.0ms) + + +Started GET "/users/sign_up" for 127.0.0.1 at 2018-09-20 17:49:54 +0300 +Processing by Devise::RegistrationsController#new as HTML + Rendering devise/registrations/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (2.1ms) + Rendered devise/registrations/new.html.erb within layouts/application (9.9ms) +Completed 200 OK in 47ms (Views: 44.8ms | ActiveRecord: 0.0ms) + + +Started POST "/users" for 127.0.0.1 at 2018-09-20 17:49:57 +0300 +Processing by Devise::RegistrationsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"Bneu7ptut+1VVBRePixtJxzeXXb/b2iniprYMiwAaZEptncYU+Byed2j3V+LwnRhEXsvaFw7Sg5JvEEz/TIf3g==", "user"=>{"email"=>"joge@ziw.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"} +  (0.1ms) begin transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "joge@ziw.com"], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "joge@ziw.com"], ["encrypted_password", "$2a$11$MeqXFYXsqVb3MWecBNScPeU.ARgzFLHx49EIhCfDr/Xv5W/3upKeC"], ["created_at", "2018-09-20 14:49:57.893294"], ["updated_at", "2018-09-20 14:49:57.893294"]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (117.1ms) commit transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/ +Completed 302 Found in 314ms (ActiveRecord: 117.6ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-20 17:49:58 +0300 +Processing by ContactsController#index as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 7], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 7]] + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 23ms (Views: 20.1ms | ActiveRecord: 0.4ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-20 17:51:13 +0300 +Processing by ContactsController#index as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 7], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 7]] + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (3.8ms) +Completed 200 OK in 46ms (Views: 23.5ms | ActiveRecord: 2.3ms) + + +Started DELETE "/users/sign_out" for 127.0.0.1 at 2018-09-20 17:51:53 +0300 +Processing by Devise::SessionsController#destroy as HTML + Parameters: {"authenticity_token"=>"UKgOt2VGKwOy488HcCgB7sa0Dd7ZoTIqSL+t7wLfxTGhrFLHlHmEDqCPTMmJGEvspvPb+WTWmj6KH4LUc1SQFA=="} + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 7], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.3ms) begin transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) commit transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/ +Completed 302 Found in 8ms (ActiveRecord: 0.7ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-20 17:51:53 +0300 +Processing by ContactsController#index as HTML +Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) + + +Started GET "/users/sign_in" for 127.0.0.1 at 2018-09-20 17:51:53 +0300 +Processing by Devise::SessionsController#new as HTML + Rendering devise/sessions/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (1.3ms) + Rendered devise/sessions/new.html.erb within layouts/application (5.1ms) +Completed 200 OK in 40ms (Views: 38.5ms | ActiveRecord: 0.0ms) + + +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT sqlite_version(*) + ↳ bin/rails:9 +  (162.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) + ↳ bin/rails:9 +  (235.7ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ bin/rails:9 +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to DeviseCreateUsers (20180920130430) +  (0.1ms) begin transaction + ↳ bin/rails:9 +  (2.1ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180920130430_devise_create_users.rb:5 +  (0.5ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email") + ↳ db/migrate/20180920130430_devise_create_users.rb:39 +  (0.3ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token") + ↳ db/migrate/20180920130430_devise_create_users.rb:40 + ActiveRecord::SchemaMigration Create (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920130430"]] + ↳ bin/rails:9 +  (259.1ms) commit transaction + ↳ bin/rails:9 +Migrating to CreateContacts (20180920132032) +  (0.2ms) begin transaction + ↳ bin/rails:9 +  (1.1ms) CREATE TABLE "contacts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "phonenumber" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180920132032_create_contacts.rb:3 + ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920132032"]] + ↳ bin/rails:9 +  (111.1ms) commit transaction + ↳ bin/rails:9 +Migrating to AddUserToContact (20180920132335) +  (0.2ms) begin transaction + ↳ bin/rails:9 +  (0.8ms) ALTER TABLE "contacts" ADD "user_id" integer + ↳ db/migrate/20180920132335_add_user_to_contact.rb:3 +  (0.3ms) CREATE INDEX "index_contacts_on_user_id" ON "contacts" ("user_id") + ↳ db/migrate/20180920132335_add_user_to_contact.rb:3 + ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920132335"]] + ↳ bin/rails:9 +  (113.2ms) commit transaction + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.2ms) begin transaction + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Create (0.7ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2018-09-20 14:52:54.701830"], ["updated_at", "2018-09-20 14:52:54.701830"]] + ↳ bin/rails:9 +  (72.1ms) commit transaction + ↳ bin/rails:9 +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Started GET "/users/sign_in" for 127.0.0.1 at 2018-09-20 17:53:03 +0300 +Processing by Devise::SessionsController#new as HTML + Rendering devise/sessions/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (2.5ms) + Rendered devise/sessions/new.html.erb within layouts/application (13.7ms) +Completed 200 OK in 79ms (Views: 51.5ms | ActiveRecord: 1.1ms) + + +Started GET "/users/sign_up" for 127.0.0.1 at 2018-09-20 17:53:05 +0300 +Processing by Devise::RegistrationsController#new as HTML + Rendering devise/registrations/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (5.5ms) + Rendered devise/registrations/new.html.erb within layouts/application (14.2ms) +Completed 200 OK in 61ms (Views: 58.3ms | ActiveRecord: 0.0ms) + + +Started POST "/users" for 127.0.0.1 at 2018-09-20 17:53:08 +0300 +Processing by Devise::RegistrationsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"EsxHP86XWAg7cLjNyQ0UyODJh2wdYZR8jdNR2qzCA+qvgf4pA7GArMM8rzV0uoUnFeSJSWVj5YFrLg2BwFrIRw==", "user"=>{"email"=>"jepihiqebe@gedoqihi.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"} +  (0.1ms) begin transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "jepihiqebe@gedoqihi.com"], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Create (1.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "jepihiqebe@gedoqihi.com"], ["encrypted_password", "$2a$11$Xlq4ut.RJcNbgFh9mV5CzegfGJzBejyiXHtpZ9lEewVUi13/SfAKO"], ["created_at", "2018-09-20 14:53:08.454474"], ["updated_at", "2018-09-20 14:53:08.454474"]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (108.6ms) commit transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/ +Completed 302 Found in 280ms (ActiveRecord: 110.2ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-20 17:53:08 +0300 +Processing by ContactsController#index as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (4.9ms) +Completed 200 OK in 39ms (Views: 29.9ms | ActiveRecord: 1.2ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-20 17:53:12 +0300 +Processing by ContactsController#new as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (2.9ms) +Completed 200 OK in 38ms (Views: 22.9ms | ActiveRecord: 0.8ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-20 17:53:19 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"kYTEsRe+YWI3KrjRnsUwDLuLDuiTZaeph4M6CyDqghhSp7HCcUg5HQsGJ3saIJTms8uye1atSXVkbF/4qUHOrg==", "contact"=>{"first_name"=>"", "last_name"=>"", "phonenumber"=>"7861781235"}, "commit"=>"create"} + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 + Contact Create (2.7ms) INSERT INTO "contacts" ("first_name", "last_name", "phonenumber", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["first_name", ""], ["last_name", ""], ["phonenumber", 7861781235], ["created_at", "2018-09-20 14:53:19.522402"], ["updated_at", "2018-09-20 14:53:19.522402"], ["user_id", 1]] + ↳ app/controllers/contacts_controller.rb:10 +  (263.2ms) commit transaction + ↳ app/controllers/contacts_controller.rb:10 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 280ms (ActiveRecord: 266.3ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 17:53:19 +0300 +Processing by ContactsController#index as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (5.2ms) +Completed 200 OK in 41ms (Views: 35.9ms | ActiveRecord: 0.8ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 17:55:40 +0300 +Processing by ContactsController#index as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Completed 500 Internal Server Error in 19ms (ActiveRecord: 1.1ms) + + + +SyntaxError (/home/getty/code/RailsGirlsCodeChallenge/app/models/contact.rb:3: syntax error, unexpected tSYMBEG, expecting keyword_do or '{' or '(' +idates :first_name, presence :true + ^): + +app/models/contact.rb:3: syntax error, unexpected tSYMBEG, expecting keyword_do or '{' or '(' +app/controllers/contacts_controller.rb:3:in `index' +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 17:55:57 +0300 +Processing by ContactsController#index as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (15.0ms) +Completed 200 OK in 56ms (Views: 32.8ms | ActiveRecord: 2.5ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-20 17:55:59 +0300 +Processing by ContactsController#new as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (2.5ms) +Completed 200 OK in 31ms (Views: 28.1ms | ActiveRecord: 0.3ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-20 17:56:01 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"wIgn20DtUX68vkfG8D3DsOKQC7ek1WACFOLWNsRlan0Dq1KoJhsJAYCS2Gx02Gda6tC3JGEdjt73DbPFTc4myw==", "contact"=>{"first_name"=>"", "last_name"=>"", "phonenumber"=>""}, "commit"=>"create"} + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.2ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 +  (0.2ms) rollback transaction + ↳ app/controllers/contacts_controller.rb:10 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (3.4ms) +Completed 200 OK in 69ms (Views: 53.7ms | ActiveRecord: 1.1ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-20 17:56:30 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"dfvksI5eaSzmXIVjBkjadiO5u+QIJ56wL4rDjbk6aehH8kQRDBRdo6hXFWygwPz8g3FXrjpIOW8s0X1JiSDZ5w==", "contact"=>{"first_name"=>"Taylor", "last_name"=>"Myers", "phonenumber"=>""}, "commit"=>"create"} + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 +  (0.1ms) rollback transaction + ↳ app/controllers/contacts_controller.rb:10 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (2.5ms) +Completed 200 OK in 53ms (Views: 21.9ms | ActiveRecord: 2.1ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-20 17:56:40 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"fUNDNPVPUevi93oixL2vvPR7Qy5HrWIcO+Vfct1UE85PSuOVdwVlZKz86i1iNYk2VLOvZHXCxcM4vuG27U6jwQ==", "contact"=>{"first_name"=>"", "last_name"=>"Myers", "phonenumber"=>"7861781235"}, "commit"=>"create"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 +  (0.2ms) rollback transaction + ↳ app/controllers/contacts_controller.rb:10 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (4.2ms) +Completed 200 OK in 38ms (Views: 29.9ms | ActiveRecord: 0.7ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 17:57:37 +0300 +Processing by ContactsController#index as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (16.7ms) +Completed 200 OK in 66ms (Views: 40.1ms | ActiveRecord: 2.7ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-20 17:57:39 +0300 +Processing by ContactsController#new as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (3.8ms) +Completed 200 OK in 55ms (Views: 50.3ms | ActiveRecord: 0.4ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-20 17:57:46 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"mz3pAc9ZfAULAJuyl51BKCa1304/VvR+s886z51Hn2FYHpxyqa8kejcsBBgTeOXCLvVj3fqeGqJQIF88FOzT1w==", "contact"=>{"first_name"=>"Abdul", "last_name"=>"Drake", "phonenumber"=>"+394-55-3953628676767676"}, "commit"=>"create"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.2ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 + Contact Create (2.4ms) INSERT INTO "contacts" ("first_name", "last_name", "phonenumber", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["first_name", "Abdul"], ["last_name", "Drake"], ["phonenumber", 394], ["created_at", "2018-09-20 14:57:46.510834"], ["updated_at", "2018-09-20 14:57:46.510834"], ["user_id", 1]] + ↳ app/controllers/contacts_controller.rb:10 +  (152.3ms) commit transaction + ↳ app/controllers/contacts_controller.rb:10 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 175ms (ActiveRecord: 155.3ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 17:57:46 +0300 +Processing by ContactsController#index as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (8.7ms) +Completed 200 OK in 61ms (Views: 54.7ms | ActiveRecord: 0.6ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-20 17:57:55 +0300 +Processing by ContactsController#new as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (3.3ms) +Completed 200 OK in 62ms (Views: 53.5ms | ActiveRecord: 0.5ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-20 17:58:02 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"/e0t8+B5ooHTdJyKfiss6i0zpJ5Jsj+s9dljMJuDrQ0+zliAho/6/u9YAyD6zogAJXMYDYx60XAWNgbDEijhuw==", "contact"=>{"first_name"=>"Ora", "last_name"=>"Pace", "phonenumber"=>"777777777777777777777777777+597-60-9982796"}, "commit"=>"create"} + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.2ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 +  (0.4ms) rollback transaction + ↳ app/controllers/contacts_controller.rb:10 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (2.9ms) +Completed 200 OK in 73ms (Views: 54.4ms | ActiveRecord: 1.2ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-20 17:58:21 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"+DGwPwF/RK+uJC/qrmJ72hPnd6XloZJNtTFLEDCtxVDKOBCegzVwIOAvv+UI6l1Qsy+b79fONZK2avXUALd1Xw==", "contact"=>{"first_name"=>"Ora", "last_name"=>"Pace", "phonenumber"=>"2455555552225"}, "commit"=>"create"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 +  (0.1ms) rollback transaction + ↳ app/controllers/contacts_controller.rb:10 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (2.3ms) +Completed 200 OK in 43ms (Views: 34.3ms | ActiveRecord: 0.6ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-20 17:58:22 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"zv3KWmIudVWzm2v7vQnQrg9MXcLdd6kTaQX5X2SkNuz89Gr74GRB2v2Q+/QbgfYkr4SxiO8YDsxqXkebVL6G4w==", "contact"=>{"first_name"=>"Ora", "last_name"=>"Pace", "phonenumber"=>"2455555552225"}, "commit"=>"create"} + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.2ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 +  (0.1ms) rollback transaction + ↳ app/controllers/contacts_controller.rb:10 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (3.1ms) +Completed 200 OK in 46ms (Views: 33.1ms | ActiveRecord: 0.9ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-20 17:58:25 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"srk8qcVGrUSWkkM+dydqip16uIEq/orjuMfLEgLF3wWAsJwIRwyZy9iZ0zHRr0wAPbJUyxiRLTy7nHXWMt9vCg==", "contact"=>{"first_name"=>"Ora", "last_name"=>"Pace", "phonenumber"=>"245555555222"}, "commit"=>"create"} + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.3ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 + Contact Create (2.3ms) INSERT INTO "contacts" ("first_name", "last_name", "phonenumber", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["first_name", "Ora"], ["last_name", "Pace"], ["phonenumber", 245555555222], ["created_at", "2018-09-20 14:58:25.896444"], ["updated_at", "2018-09-20 14:58:25.896444"], ["user_id", 1]] + ↳ app/controllers/contacts_controller.rb:10 +  (203.5ms) commit transaction + ↳ app/controllers/contacts_controller.rb:10 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 225ms (ActiveRecord: 206.7ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 17:58:26 +0300 +Processing by ContactsController#index as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (6.4ms) +Completed 200 OK in 40ms (Views: 36.1ms | ActiveRecord: 0.7ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-20 18:03:11 +0300 +Processing by ContactsController#new as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Completed 500 Internal Server Error in 21ms (ActiveRecord: 1.1ms) + + + +ArgumentError (Unknown validator: 'NumerialityValidator'): + +app/models/contact.rb:4:in `' +app/models/contact.rb:1:in `
' +app/controllers/contacts_controller.rb:6:in `new' +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-20 18:04:42 +0300 +Processing by ContactsController#new as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (1.7ms) +Completed 200 OK in 40ms (Views: 16.8ms | ActiveRecord: 1.5ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-20 18:06:34 +0300 +Processing by ContactsController#index as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (13.1ms) +Completed 200 OK in 57ms (Views: 33.4ms | ActiveRecord: 1.8ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-20 18:06:36 +0300 +Processing by ContactsController#new as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (4.5ms) +Completed 200 OK in 44ms (Views: 37.4ms | ActiveRecord: 0.5ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-20 18:06:45 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"ILBJ3/9EuHlex48IBN86WlN7t9uZyMkoIrilqYtfhdLjkzysmbLgBmLrEKKAOp6wWzsLSFwAJ/TBV8BaAvTJZA==", "contact"=>{"first_name"=>"Erasmus", "last_name"=>"Patrick", "phonenumber"=>"rert"}, "commit"=>"create"} + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.2ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 +  (0.2ms) rollback transaction + ↳ app/controllers/contacts_controller.rb:10 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (3.0ms) +Completed 200 OK in 48ms (Views: 33.1ms | ActiveRecord: 1.0ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-20 18:07:02 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"HyKo1DFLDF8o78sZ4NVuL8ho5nWL/DBYaCw0hmgNUqUtKwh1swE40GbkWxZGXUilaKAKP7mTl4drd4pCWBfiqg==", "contact"=>{"first_name"=>"Erasmus", "last_name"=>"Patrick", "phonenumber"=>"8786"}, "commit"=>"create"} + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 + Contact Create (0.6ms) INSERT INTO "contacts" ("first_name", "last_name", "phonenumber", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["first_name", "Erasmus"], ["last_name", "Patrick"], ["phonenumber", 8786], ["created_at", "2018-09-20 15:07:02.498512"], ["updated_at", "2018-09-20 15:07:02.498512"], ["user_id", 1]] + ↳ app/controllers/contacts_controller.rb:10 +  (229.6ms) commit transaction + ↳ app/controllers/contacts_controller.rb:10 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 241ms (ActiveRecord: 230.5ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 18:07:02 +0300 +Processing by ContactsController#index as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (6.3ms) +Completed 200 OK in 68ms (Views: 62.6ms | ActiveRecord: 0.8ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 18:10:53 +0300 +Processing by ContactsController#index as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (15.0ms) +Completed 200 OK in 78ms (Views: 32.3ms | ActiveRecord: 2.2ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-20 18:10:54 +0300 +Processing by ContactsController#new as HTML + User Load (1.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (3.5ms) +Completed 200 OK in 33ms (Views: 27.3ms | ActiveRecord: 1.0ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-20 18:10:56 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"xA53joBN/kIWV+hzwAF+duMVhFb8LnsyJUPLmfyuSKkHLQL95rumPSp7d9lE5Nqc61U4xTnmle7GrK5qdQUEHw==", "contact"=>{"first_name"=>"", "last_name"=>"", "phonenumber"=>""}, "commit"=>"create"} + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.2ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 +  (0.1ms) rollback transaction + ↳ app/controllers/contacts_controller.rb:10 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (5.8ms) +Completed 200 OK in 58ms (Views: 39.8ms | ActiveRecord: 0.9ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-20 18:11:04 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"/Hh+XhpFIToyUQrJfpMytOvVhfbjpHZP/7fW9gzFET/Ocd7/mA8VtXxamsbYGxQ+Sx1pvNHL0ZD87GgyPN+hMA==", "contact"=>{"first_name"=>"Cora", "last_name"=>"Blackwell", "phonenumber"=>"+615-30-4490715"}, "commit"=>"create"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 +  (0.2ms) rollback transaction + ↳ app/controllers/contacts_controller.rb:10 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (4.9ms) +Completed 200 OK in 44ms (Views: 33.2ms | ActiveRecord: 0.7ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-20 18:11:10 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"lMOln8U9ySYShZUd0hiwlHg9Ugtjok6T2kzkeuJTWW6mygU+R3f9qVyOBRJ0kJYe2PW+QVHN6UzZF1q+0knpYQ==", "contact"=>{"first_name"=>"Cora", "last_name"=>"Blackwell", "phonenumber"=>"615-30-4490715"}, "commit"=>"create"} + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.2ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 +  (0.1ms) rollback transaction + ↳ app/controllers/contacts_controller.rb:10 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (2.8ms) +Completed 200 OK in 43ms (Views: 32.4ms | ActiveRecord: 0.8ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-20 18:11:20 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"SWOL4NMpXY4YlEBZf4n1kR+xv3i9oXA07LqFwm0zBHd7aitBUWNpAVaf0FbZAdMbv3lTMo/O1+vv4TsGXSm0eA==", "contact"=>{"first_name"=>"Cora", "last_name"=>"Blackwell", "phonenumber"=>"6153044988880715"}, "commit"=>"create"} + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 +  (0.1ms) rollback transaction + ↳ app/controllers/contacts_controller.rb:10 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (3.9ms) +Completed 200 OK in 46ms (Views: 37.0ms | ActiveRecord: 0.6ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-20 18:11:28 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"L71HbVHaDuFbOd7r1Z1awEQAqbqYMetoe5jrxMoTvDAdtOfM05A6bhUyTuRzFXxK5MhF8KpeTLd4w1UA+gkMPw==", "contact"=>{"first_name"=>"Cora", "last_name"=>"Blackwell", "phonenumber"=>"61530880715"}, "commit"=>"create"} + User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.2ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 + Contact Create (0.7ms) INSERT INTO "contacts" ("first_name", "last_name", "phonenumber", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["first_name", "Cora"], ["last_name", "Blackwell"], ["phonenumber", 61530880715], ["created_at", "2018-09-20 15:11:28.611730"], ["updated_at", "2018-09-20 15:11:28.611730"], ["user_id", 1]] + ↳ app/controllers/contacts_controller.rb:10 +  (241.3ms) commit transaction + ↳ app/controllers/contacts_controller.rb:10 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 257ms (ActiveRecord: 242.9ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 18:11:28 +0300 +Processing by ContactsController#index as HTML + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (6.4ms) +Completed 200 OK in 44ms (Views: 37.6ms | ActiveRecord: 0.9ms) + + +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.2ms) DROP TABLE IF EXISTS "contacts" + ↳ db/schema.rb:15 +  (0.1ms) SELECT sqlite_version(*) + ↳ db/schema.rb:15 +  (116.8ms) CREATE TABLE "contacts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "phonenumber" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "user_id" integer) + ↳ db/schema.rb:15 +  (111.7ms) CREATE INDEX "index_contacts_on_user_id" ON "contacts" ("user_id") + ↳ db/schema.rb:15 +  (0.4ms) DROP TABLE IF EXISTS "users" + ↳ db/schema.rb:25 +  (93.7ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/schema.rb:25 +  (100.8ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email") + ↳ db/schema.rb:25 +  (108.0ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token") + ↳ db/schema.rb:25 +  (107.4ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) + ↳ db/schema.rb:13 +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ db/schema.rb:13 +  (87.8ms) INSERT INTO "schema_migrations" (version) VALUES (20180920132335) + ↳ db/schema.rb:13 +  (87.0ms) INSERT INTO "schema_migrations" (version) VALUES +(20180920130430), +(20180920132032); + + + ↳ db/schema.rb:13 +  (122.8ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/schema.rb:13 + ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + ↳ db/schema.rb:13 +  (0.2ms) begin transaction + ↳ db/schema.rb:13 + ActiveRecord::InternalMetadata Create (2.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2018-09-20 15:13:02.749680"], ["updated_at", "2018-09-20 15:13:02.749680"]] + ↳ db/schema.rb:13 +  (92.9ms) commit transaction + ↳ db/schema.rb:13 + ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.2ms) begin transaction + ↳ bin/rails:9 +  (0.1ms) commit transaction + ↳ bin/rails:9 +  (0.3ms) DROP TABLE IF EXISTS "contacts" + ↳ db/schema.rb:15 +  (0.2ms) SELECT sqlite_version(*) + ↳ db/schema.rb:15 +  (84.4ms) CREATE TABLE "contacts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "phonenumber" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "user_id" integer) + ↳ db/schema.rb:15 +  (98.4ms) CREATE INDEX "index_contacts_on_user_id" ON "contacts" ("user_id") + ↳ db/schema.rb:15 +  (0.3ms) DROP TABLE IF EXISTS "users" + ↳ db/schema.rb:25 +  (108.2ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/schema.rb:25 +  (101.9ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email") + ↳ db/schema.rb:25 +  (119.4ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token") + ↳ db/schema.rb:25 +  (122.5ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) + ↳ db/schema.rb:13 +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ db/schema.rb:13 +  (76.7ms) INSERT INTO "schema_migrations" (version) VALUES (20180920132335) + ↳ db/schema.rb:13 +  (76.7ms) INSERT INTO "schema_migrations" (version) VALUES +(20180920130430), +(20180920132032); + + + ↳ db/schema.rb:13 +  (108.0ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/schema.rb:13 + ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + ↳ db/schema.rb:13 +  (0.1ms) begin transaction + ↳ db/schema.rb:13 + ActiveRecord::InternalMetadata Create (0.7ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2018-09-20 15:13:03.799176"], ["updated_at", "2018-09-20 15:13:03.799176"]] + ↳ db/schema.rb:13 +  (92.0ms) commit transaction + ↳ db/schema.rb:13 + ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.2ms) begin transaction + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Update (0.6ms) UPDATE "ar_internal_metadata" SET "value" = ?, "updated_at" = ? WHERE "ar_internal_metadata"."key" = ? [["value", "test"], ["updated_at", "2018-09-20 15:13:03.900772"], ["key", "environment"]] + ↳ bin/rails:9 +  (74.4ms) commit transaction + ↳ bin/rails:9 +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.1ms) begin transaction + ↳ bin/rails:9 +  (0.1ms) commit transaction + ↳ bin/rails:9 +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 18:13:11 +0300 +Processing by ContactsController#index as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Completed 401 Unauthorized in 6ms (ActiveRecord: 0.9ms) + + +Started GET "/users/sign_in" for 127.0.0.1 at 2018-09-20 18:13:11 +0300 +Processing by Devise::SessionsController#new as HTML + Rendering devise/sessions/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (1.1ms) + Rendered devise/sessions/new.html.erb within layouts/application (13.0ms) +Completed 200 OK in 40ms (Views: 29.7ms | ActiveRecord: 0.0ms) + + +Started GET "/users/sign_up" for 127.0.0.1 at 2018-09-20 18:13:14 +0300 +Processing by Devise::RegistrationsController#new as HTML + Rendering devise/registrations/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (1.9ms) + Rendered devise/registrations/new.html.erb within layouts/application (7.9ms) +Completed 200 OK in 39ms (Views: 37.6ms | ActiveRecord: 0.0ms) + + +Started POST "/users" for 127.0.0.1 at 2018-09-20 18:13:17 +0300 +Processing by Devise::RegistrationsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"c3sD8lp8yBS1nrPRH7Da4EtWfp22rupFxqYvtW4knmXONrrkl1oQsE3SpCmiB0sPvntwuM6sm7ggW3PuArxVyA==", "user"=>{"email"=>"xijuxem@mudukitomijup.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"} +  (0.1ms) begin transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "xijuxem@mudukitomijup.com"], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Create (2.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "xijuxem@mudukitomijup.com"], ["encrypted_password", "$2a$11$imz9Ti8/3xA5OT2xLq603./pQuvEWayik0Jw3B/wVwSQxAELrj7C."], ["created_at", "2018-09-20 15:13:17.644630"], ["updated_at", "2018-09-20 15:13:17.644630"]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (78.1ms) commit transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 293ms (ActiveRecord: 80.4ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 18:13:17 +0300 +Processing by ContactsController#index as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (4.8ms) +Completed 200 OK in 42ms (Views: 30.5ms | ActiveRecord: 1.2ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-20 18:13:22 +0300 +Processing by ContactsController#new as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (3.6ms) +Completed 200 OK in 53ms (Views: 30.3ms | ActiveRecord: 1.2ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-20 18:13:25 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"SFcthCD+IhcuiMnR8ycUjArutwbo1NisyJDYKT57AzyLdFj3Rgh6aBKkVnt3wrBmAq4LlS0cNnArf73at9BPig==", "contact"=>{"first_name"=>"Alyssa", "last_name"=>"Foley", "phonenumber"=>"+485-25-6196630"}, "commit"=>"create"} + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 +  (0.1ms) rollback transaction + ↳ app/controllers/contacts_controller.rb:10 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (1.6ms) +Completed 200 OK in 26ms (Views: 18.2ms | ActiveRecord: 0.4ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-20 18:13:30 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"JChjU8r4Fe9VCF9inZW6mWDECxBTMN/dIt6AEASGmh4WIcPySLIhYBsDz207HZwTwAznWmFfeAIhhT7UNJwqEQ==", "contact"=>{"first_name"=>"Alyssa", "last_name"=>"Foley", "phonenumber"=>"6196630"}, "commit"=>"create"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.2ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 + Contact Create (1.5ms) INSERT INTO "contacts" ("first_name", "last_name", "phonenumber", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["first_name", "Alyssa"], ["last_name", "Foley"], ["phonenumber", 6196630], ["created_at", "2018-09-20 15:13:30.662321"], ["updated_at", "2018-09-20 15:13:30.662321"], ["user_id", 1]] + ↳ app/controllers/contacts_controller.rb:10 +  (139.4ms) commit transaction + ↳ app/controllers/contacts_controller.rb:10 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 155ms (ActiveRecord: 141.5ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 18:13:30 +0300 +Processing by ContactsController#index as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (3.2ms) +Completed 200 OK in 29ms (Views: 25.7ms | ActiveRecord: 0.5ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 18:14:24 +0300 +Processing by ContactsController#index as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (13.2ms) +Completed 200 OK in 55ms (Views: 31.9ms | ActiveRecord: 2.1ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-20 18:14:26 +0300 +Processing by ContactsController#new as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (4.2ms) +Completed 200 OK in 44ms (Views: 39.1ms | ActiveRecord: 0.4ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-20 18:14:34 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"NpkJmW36x1yojuENB3fOP8ZcJIl2yzf8v0v43QPl0PH1unzqCwyfI5SifqeDkmrVzhyYGrMD2SBcpJ0uik6cRw==", "contact"=>{"first_name"=>"Inga", "last_name"=>"Little", "phonenumber"=>"037"}, "commit"=>"create"} + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.2ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 +  (0.1ms) rollback transaction + ↳ app/controllers/contacts_controller.rb:10 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (2.6ms) +Completed 200 OK in 47ms (Views: 31.0ms | ActiveRecord: 0.8ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-20 18:14:39 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"n51G8MmoJRJWMSx2NWkwdj7Im1JEQASuz3dS1Vk1HO2tlOZRS+IRnRg6vHmT4Rb8ngB3GHYvo3HMLOwRaS+s4g==", "contact"=>{"first_name"=>"Inga", "last_name"=>"Little", "phonenumber"=>"0379999999999"}, "commit"=>"create"} + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 + Contact Create (0.4ms) INSERT INTO "contacts" ("first_name", "last_name", "phonenumber", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["first_name", "Inga"], ["last_name", "Little"], ["phonenumber", 379999999999], ["created_at", "2018-09-20 15:14:39.948062"], ["updated_at", "2018-09-20 15:14:39.948062"], ["user_id", 1]] + ↳ app/controllers/contacts_controller.rb:10 +  (214.0ms) commit transaction + ↳ app/controllers/contacts_controller.rb:10 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 231ms (ActiveRecord: 215.1ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-20 18:14:40 +0300 +Processing by ContactsController#index as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (3.5ms) +Completed 200 OK in 25ms (Views: 18.8ms | ActiveRecord: 0.7ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-20 18:14:42 +0300 +Processing by ContactsController#new as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (2.9ms) +Completed 200 OK in 39ms (Views: 34.5ms | ActiveRecord: 0.5ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-20 18:14:49 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"keV8Mzb5feMXC+OHkp/yCUvKKNyrhxg2GQWL4B40Ls5SxglAUA8lnCsnfC0WelbjQ4qUT25P9ur66u4Tl59ieA==", "contact"=>{"first_name"=>"Ainsley", "last_name"=>"Mcdowell", "phonenumber"=>"66"}, "commit"=>"create"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.2ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 +  (0.2ms) rollback transaction + ↳ app/controllers/contacts_controller.rb:10 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (2.7ms) +Completed 200 OK in 44ms (Views: 34.0ms | ActiveRecord: 0.8ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-20 18:14:55 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"osPmAdzEIZgutWdfg6SMwxH73qv545+wZPQxlVtD6+OQykagXo4VF2C+91AlLKpJsTMy4cuMOG9nr49Ra1lb7A==", "contact"=>{"first_name"=>"Ainsley", "last_name"=>"Mcdowell", "phonenumber"=>"669999999999999999999999999999999999999999"}, "commit"=>"create"} + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 +  (0.1ms) rollback transaction + ↳ app/controllers/contacts_controller.rb:10 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (2.8ms) +Completed 200 OK in 45ms (Views: 34.5ms | ActiveRecord: 0.6ms) + + +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to CreateSms (20180921061618) +  (0.1ms) begin transaction + ↳ bin/rails:9 +  (0.1ms) SELECT sqlite_version(*) + ↳ db/migrate/20180921061618_create_sms.rb:3 +  (0.5ms) CREATE TABLE "sms" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "message" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180921061618_create_sms.rb:3 + ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180921061618"]] + ↳ bin/rails:9 +  (97.5ms) commit transaction + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.2ms) begin transaction + ↳ bin/rails:9 +  (0.1ms) commit transaction + ↳ bin/rails:9 +  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT sqlite_version(*) + ↳ bin/rails:9 +  (84.4ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) + ↳ bin/rails:9 +  (113.1ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ bin/rails:9 +  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to DeviseCreateUsers (20180920130430) +  (0.1ms) begin transaction + ↳ bin/rails:9 +  (0.1ms) SELECT sqlite_version(*) + ↳ db/migrate/20180920130430_devise_create_users.rb:5 +  (1.0ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180920130430_devise_create_users.rb:5 +  (14.3ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email") + ↳ db/migrate/20180920130430_devise_create_users.rb:39 +  (0.2ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token") + ↳ db/migrate/20180920130430_devise_create_users.rb:40 + ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920130430"]] + ↳ bin/rails:9 +  (135.6ms) commit transaction + ↳ bin/rails:9 +Migrating to CreateContacts (20180920132032) +  (0.1ms) begin transaction + ↳ bin/rails:9 +  (0.6ms) CREATE TABLE "contacts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "phonenumber" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180920132032_create_contacts.rb:3 + ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920132032"]] + ↳ bin/rails:9 +  (97.7ms) commit transaction + ↳ bin/rails:9 +Migrating to AddUserToContact (20180920132335) +  (0.1ms) begin transaction + ↳ bin/rails:9 +  (0.5ms) ALTER TABLE "contacts" ADD "user_id" integer + ↳ db/migrate/20180920132335_add_user_to_contact.rb:3 +  (0.5ms) CREATE INDEX "index_contacts_on_user_id" ON "contacts" ("user_id") + ↳ db/migrate/20180920132335_add_user_to_contact.rb:3 +  (1.2ms) ALTER TABLE "contacts" ADD "user_id" integer + ↳ db/migrate/20180920132335_add_user_to_contact.rb:4 +  (0.4ms) rollback transaction + ↳ bin/rails:9 +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.1ms) begin transaction + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2018-09-21 06:20:02.780926"], ["updated_at", "2018-09-21 06:20:02.780926"]] + ↳ bin/rails:9 +  (76.3ms) commit transaction + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT sqlite_version(*) + ↳ bin/rails:9 +  (127.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) + ↳ bin/rails:9 +  (98.8ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ bin/rails:9 +  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to DeviseCreateUsers (20180920130430) +  (0.1ms) begin transaction + ↳ bin/rails:9 +  (0.8ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180920130430_devise_create_users.rb:5 +  (14.1ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email") + ↳ db/migrate/20180920130430_devise_create_users.rb:39 +  (0.3ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token") + ↳ db/migrate/20180920130430_devise_create_users.rb:40 + ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920130430"]] + ↳ bin/rails:9 +  (93.2ms) commit transaction + ↳ bin/rails:9 +Migrating to CreateContacts (20180920132032) +  (0.1ms) begin transaction + ↳ bin/rails:9 +  (0.6ms) CREATE TABLE "contacts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "phonenumber" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180920132032_create_contacts.rb:3 + ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920132032"]] + ↳ bin/rails:9 +  (106.1ms) commit transaction + ↳ bin/rails:9 +Migrating to AddUserToContact (20180920132335) +  (0.1ms) begin transaction + ↳ bin/rails:9 +  (0.8ms) ALTER TABLE "contacts" ADD "user_id" integer + ↳ db/migrate/20180920132335_add_user_to_contact.rb:3 +  (0.3ms) CREATE INDEX "index_contacts_on_user_id" ON "contacts" ("user_id") + ↳ db/migrate/20180920132335_add_user_to_contact.rb:3 +  (0.6ms) ALTER TABLE "contacts" ADD "user_id" integer + ↳ db/migrate/20180920132335_add_user_to_contact.rb:4 +  (0.3ms) rollback transaction + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to CreateSmsSends (20180921061918) +  (0.1ms) begin transaction + ↳ bin/rails:9 +  (0.1ms) SELECT sqlite_version(*) + ↳ db/migrate/20180921061918_create_sms_sends.rb:3 +  (0.4ms) CREATE TABLE "sms_sends" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "message" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180921061918_create_sms_sends.rb:3 + ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180921061918"]] + ↳ bin/rails:9 +  (115.9ms) commit transaction + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.1ms) begin transaction + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2018-09-21 06:21:23.739254"], ["updated_at", "2018-09-21 06:21:23.739254"]] + ↳ bin/rails:9 +  (60.9ms) commit transaction + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.2ms) SELECT sqlite_version(*) + ↳ bin/rails:9 +  (101.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) + ↳ bin/rails:9 +  (100.2ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ bin/rails:9 +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to DeviseCreateUsers (20180920130430) +  (0.1ms) begin transaction + ↳ bin/rails:9 +  (2.2ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180920130430_devise_create_users.rb:5 +  (0.5ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email") + ↳ db/migrate/20180920130430_devise_create_users.rb:39 +  (0.4ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token") + ↳ db/migrate/20180920130430_devise_create_users.rb:40 + ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920130430"]] + ↳ bin/rails:9 +  (121.8ms) commit transaction + ↳ bin/rails:9 +Migrating to CreateContacts (20180920132032) +  (0.2ms) begin transaction + ↳ bin/rails:9 +  (1.2ms) CREATE TABLE "contacts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "phonenumber" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180920132032_create_contacts.rb:3 + ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920132032"]] + ↳ bin/rails:9 +  (103.3ms) commit transaction + ↳ bin/rails:9 +Migrating to AddUserToContact (20180920132335) +  (0.2ms) begin transaction + ↳ bin/rails:9 +  (0.9ms) ALTER TABLE "contacts" ADD "user_id" integer + ↳ db/migrate/20180920132335_add_user_to_contact.rb:3 +  (0.5ms) CREATE INDEX "index_contacts_on_user_id" ON "contacts" ("user_id") + ↳ db/migrate/20180920132335_add_user_to_contact.rb:3 + ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920132335"]] + ↳ bin/rails:9 +  (133.0ms) commit transaction + ↳ bin/rails:9 +Migrating to CreateSmsSends (20180921061918) +  (0.1ms) begin transaction + ↳ bin/rails:9 +  (0.5ms) CREATE TABLE "sms_sends" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "message" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180921061918_create_sms_sends.rb:3 + ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180921061918"]] + ↳ bin/rails:9 +  (130.6ms) commit transaction + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.1ms) begin transaction + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Create (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2018-09-21 06:24:01.848500"], ["updated_at", "2018-09-21 06:24:01.848500"]] + ↳ bin/rails:9 +  (81.4ms) commit transaction + ↳ bin/rails:9 +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.2ms) SELECT sqlite_version(*) + ↳ bin/rails:9 +  (134.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) + ↳ bin/rails:9 +  (155.1ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ bin/rails:9 +  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to DeviseCreateUsers (20180920130430) +  (0.1ms) begin transaction + ↳ bin/rails:9 +  (0.8ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180920130430_devise_create_users.rb:5 +  (0.5ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email") + ↳ db/migrate/20180920130430_devise_create_users.rb:39 +  (0.3ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token") + ↳ db/migrate/20180920130430_devise_create_users.rb:40 + ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920130430"]] + ↳ bin/rails:9 +  (139.0ms) commit transaction + ↳ bin/rails:9 +Migrating to CreateContacts (20180920132032) +  (0.2ms) begin transaction + ↳ bin/rails:9 +  (0.9ms) CREATE TABLE "contacts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "phonenumber" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180920132032_create_contacts.rb:3 + ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920132032"]] + ↳ bin/rails:9 +  (135.2ms) commit transaction + ↳ bin/rails:9 +Migrating to AddUserToContact (20180920132335) +  (0.2ms) begin transaction + ↳ bin/rails:9 +  (0.8ms) ALTER TABLE "contacts" ADD "user_id" integer + ↳ db/migrate/20180920132335_add_user_to_contact.rb:3 +  (0.3ms) CREATE INDEX "index_contacts_on_user_id" ON "contacts" ("user_id") + ↳ db/migrate/20180920132335_add_user_to_contact.rb:3 +  (0.9ms) ALTER TABLE "sms_sends" ADD "user_id" integer + ↳ db/migrate/20180920132335_add_user_to_contact.rb:4 +  (0.3ms) rollback transaction + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to AddUserToContact (20180920132335) +  (0.1ms) begin transaction + ↳ bin/rails:9 +  (0.4ms) ALTER TABLE "contacts" ADD "user_id" integer + ↳ db/migrate/20180920132335_add_user_to_contact.rb:3 +  (0.1ms) SELECT sqlite_version(*) + ↳ db/migrate/20180920132335_add_user_to_contact.rb:3 +  (0.1ms) CREATE INDEX "index_contacts_on_user_id" ON "contacts" ("user_id") + ↳ db/migrate/20180920132335_add_user_to_contact.rb:3 + ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920132335"]] + ↳ bin/rails:9 +  (151.3ms) commit transaction + ↳ bin/rails:9 +Migrating to CreateSmsSends (20180921061918) +  (0.2ms) begin transaction + ↳ bin/rails:9 +  (0.9ms) CREATE TABLE "sms_sends" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "message" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180921061918_create_sms_sends.rb:3 + ActiveRecord::SchemaMigration Create (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180921061918"]] + ↳ bin/rails:9 +  (125.7ms) commit transaction + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.2ms) begin transaction + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Create (0.6ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2018-09-21 06:27:03.672935"], ["updated_at", "2018-09-21 06:27:03.672935"]] + ↳ bin/rails:9 +  (70.2ms) commit transaction + ↳ bin/rails:9 +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to AddUserToSmsSend (20180921062827) +  (0.1ms) begin transaction + ↳ bin/rails:9 +  (0.9ms) ALTER TABLE "sms_sends" ADD "User_id" integer + ↳ db/migrate/20180921062827_add_user_to_sms_send.rb:3 +  (0.1ms) SELECT sqlite_version(*) + ↳ db/migrate/20180921062827_add_user_to_sms_send.rb:3 +  (0.2ms) CREATE INDEX "index_sms_sends_on_User_id" ON "sms_sends" ("User_id") + ↳ db/migrate/20180921062827_add_user_to_sms_send.rb:3 + ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180921062827"]] + ↳ bin/rails:9 +  (132.5ms) commit transaction + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.2ms) begin transaction + ↳ bin/rails:9 +  (0.1ms) commit transaction + ↳ bin/rails:9 +  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.1ms) begin transaction + ↳ bin/rails:9 +  (0.0ms) commit transaction + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to AddSmsSendToContact (20180921063144) +  (0.1ms) begin transaction + ↳ bin/rails:9 +  (0.4ms) ALTER TABLE "contacts" ADD "SmsSend_id" integer + ↳ db/migrate/20180921063144_add_sms_send_to_contact.rb:3 +  (0.1ms) SELECT sqlite_version(*) + ↳ db/migrate/20180921063144_add_sms_send_to_contact.rb:3 +  (0.1ms) CREATE INDEX "index_contacts_on_SmsSend_id" ON "contacts" ("SmsSend_id") + ↳ db/migrate/20180921063144_add_sms_send_to_contact.rb:3 + ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180921063144"]] + ↳ bin/rails:9 +  (158.2ms) commit transaction + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.1ms) begin transaction + ↳ bin/rails:9 +  (0.1ms) commit transaction + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT sqlite_version(*) + ↳ bin/rails:9 +  (118.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) + ↳ bin/rails:9 +  (118.3ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ bin/rails:9 +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to DeviseCreateUsers (20180920130430) +  (0.1ms) begin transaction + ↳ bin/rails:9 +  (1.3ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180920130430_devise_create_users.rb:5 +  (0.7ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email") + ↳ db/migrate/20180920130430_devise_create_users.rb:39 +  (0.5ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token") + ↳ db/migrate/20180920130430_devise_create_users.rb:40 + ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920130430"]] + ↳ bin/rails:9 +  (110.1ms) commit transaction + ↳ bin/rails:9 +Migrating to CreateContacts (20180920132032) +  (0.2ms) begin transaction + ↳ bin/rails:9 +  (1.1ms) CREATE TABLE "contacts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "phonenumber" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180920132032_create_contacts.rb:3 + ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920132032"]] + ↳ bin/rails:9 +  (135.6ms) commit transaction + ↳ bin/rails:9 +Migrating to AddUserToContact (20180920132335) +  (0.2ms) begin transaction + ↳ bin/rails:9 +  (0.9ms) ALTER TABLE "contacts" ADD "user_id" integer + ↳ db/migrate/20180920132335_add_user_to_contact.rb:3 +  (0.5ms) CREATE INDEX "index_contacts_on_user_id" ON "contacts" ("user_id") + ↳ db/migrate/20180920132335_add_user_to_contact.rb:3 + ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920132335"]] + ↳ bin/rails:9 +  (123.4ms) commit transaction + ↳ bin/rails:9 +Migrating to CreateSmsSends (20180921061918) +  (0.2ms) begin transaction + ↳ bin/rails:9 +  (0.9ms) CREATE TABLE "sms_sends" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "message" varchar, "mobile" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180921061918_create_sms_sends.rb:3 + ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180921061918"]] + ↳ bin/rails:9 +  (126.6ms) commit transaction + ↳ bin/rails:9 +Migrating to AddUserToSmsSend (20180921062827) +  (0.2ms) begin transaction + ↳ bin/rails:9 +  (1.3ms) ALTER TABLE "sms_sends" ADD "User_id" integer + ↳ db/migrate/20180921062827_add_user_to_sms_send.rb:3 +  (0.5ms) CREATE INDEX "index_sms_sends_on_User_id" ON "sms_sends" ("User_id") + ↳ db/migrate/20180921062827_add_user_to_sms_send.rb:3 + ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180921062827"]] + ↳ bin/rails:9 +  (145.0ms) commit transaction + ↳ bin/rails:9 +Migrating to AddSmsSendToContact (20180921063144) +  (0.2ms) begin transaction + ↳ bin/rails:9 +  (1.2ms) ALTER TABLE "contacts" ADD "SmsSend_id" integer + ↳ db/migrate/20180921063144_add_sms_send_to_contact.rb:3 +  (0.7ms) CREATE INDEX "index_contacts_on_SmsSend_id" ON "contacts" ("SmsSend_id") + ↳ db/migrate/20180921063144_add_sms_send_to_contact.rb:3 + ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180921063144"]] + ↳ bin/rails:9 +  (177.4ms) commit transaction + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.1ms) begin transaction + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Create (2.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2018-09-21 06:39:39.682061"], ["updated_at", "2018-09-21 06:39:39.682061"]] + ↳ bin/rails:9 +  (116.5ms) commit transaction + ↳ bin/rails:9 +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Started GET "/" for 127.0.0.1 at 2018-09-21 09:44:27 +0300 +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Processing by ContactsController#index as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Completed 401 Unauthorized in 16ms (ActiveRecord: 1.0ms) + + +Started GET "/users/sign_in" for 127.0.0.1 at 2018-09-21 09:44:27 +0300 +Processing by Devise::SessionsController#new as HTML + Rendering devise/sessions/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (2.8ms) + Rendered devise/sessions/new.html.erb within layouts/application (149.7ms) +Completed 200 OK in 936ms (Views: 827.3ms | ActiveRecord: 0.0ms) + + +Started GET "/users/sign_up" for 127.0.0.1 at 2018-09-21 09:44:31 +0300 +Processing by Devise::RegistrationsController#new as HTML + Rendering devise/registrations/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (2.4ms) + Rendered devise/registrations/new.html.erb within layouts/application (9.7ms) +Completed 200 OK in 77ms (Views: 74.3ms | ActiveRecord: 0.0ms) + + +Started POST "/users" for 127.0.0.1 at 2018-09-21 09:44:36 +0300 +Processing by Devise::RegistrationsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"NUie42kVmFG5V8Iri+i3NuTMDytLQbs8ysTWXuNl9EeIBSf1pDNA9UEb1dM2XybZEeEBDjNDysEsOYoFj/0/6g==", "user"=>{"email"=>"jelewaje@vonaj.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"} +  (0.1ms) begin transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "jelewaje@vonaj.com"], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Create (0.9ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "jelewaje@vonaj.com"], ["encrypted_password", "$2a$11$dWEvA2vebjbGEiWuWbkSoOChCzgOsmBsW90K3vwBxocRc04UXcmQW"], ["created_at", "2018-09-21 06:44:37.305324"], ["updated_at", "2018-09-21 06:44:37.305324"]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (115.8ms) commit transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/ +Completed 302 Found in 549ms (ActiveRecord: 116.9ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-21 09:44:37 +0300 +Processing by ContactsController#index as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.4ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (9.6ms) +Completed 200 OK in 221ms (Views: 38.7ms | ActiveRecord: 1.7ms) + + +Started GET "/sign_in" for 127.0.0.1 at 2018-09-21 09:44:48 +0300 + +ActionController::RoutingError (No route matches [GET] "/sign_in"): + +actionpack (5.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.1) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.1) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.1) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.1) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.1) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.1) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.5) lib/rack/method_override.rb:22:in `call' +rack (2.0.5) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.5) lib/rack/sendfile.rb:111:in `call' +railties (5.2.1) lib/rails/engine.rb:524:in `call' +puma (3.12.0) lib/puma/configuration.rb:225:in `call' +puma (3.12.0) lib/puma/server.rb:658:in `handle_request' +puma (3.12.0) lib/puma/server.rb:472:in `process_client' +puma (3.12.0) lib/puma/server.rb:332:in `block in run' +puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread' +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 09:44:55 +0300 +Processing by SmsSendsController#new as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (2.2ms) +Completed 500 Internal Server Error in 25ms (ActiveRecord: 0.5ms) + + + +ActionView::Template::Error (First argument in form cannot contain nil or be empty): + 1: + 2: <%= form_for @contact, url: {action: "create"} do |f|%> + 3: mobile Number: <%= f.text_field :mobile%> + 4: message: <%= f.text_field :message%> + 5: <%= f.submit "send" %> + +app/views/sms_sends/new.html.erb:2:in `_app_views_sms_sends_new_html_erb__4423166349930774332_15550760' +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 09:45:11 +0300 +Processing by SmsSendsController#new as HTML + User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (7.6ms) +Completed 500 Internal Server Error in 17ms (ActiveRecord: 0.8ms) + + + +ActionView::Template::Error (undefined method `model_name' for #): + 1: + 2: <%= form_for @at, url: {action: "create"} do |f|%> + 3: mobile Number: <%= f.text_field :mobile%> + 4: message: <%= f.text_field :message%> + 5: <%= f.submit "send" %> + +app/views/sms_sends/new.html.erb:2:in `_app_views_sms_sends_new_html_erb__4423166349930774332_70224808986200' +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 09:46:00 +0300 +Processing by SmsSendsController#new as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (3.4ms) +Completed 500 Internal Server Error in 23ms (ActiveRecord: 1.0ms) + + + +ActionView::Template::Error (undefined method `model_name' for #): + 1: + 2: <%= form_for @at, url: {action: "create"} do |f|%> + 3: mobile Number: <%= f.text_field :mobile%> + 4: message: <%= f.text_field :message%> + 5: <%= f.submit "send" %> + +app/views/sms_sends/new.html.erb:2:in `_app_views_sms_sends_new_html_erb__4423166349930774332_70224803614900' +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 09:47:36 +0300 +Processing by SmsSendsController#new as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (3.7ms) +Completed 500 Internal Server Error in 25ms (ActiveRecord: 1.2ms) + + + +ActionView::Template::Error (undefined method `model_name' for #): + 1: + 2: <%= form_for @at, url: {action: "create"} do |f|%> + 3: mobile Number: <%= f.text_field :mobile%> + 4: message: <%= f.text_field :message%> + 5: <%= f.submit "send" %> + +app/views/sms_sends/new.html.erb:2:in `_app_views_sms_sends_new_html_erb__4423166349930774332_70224864418660' +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 09:48:25 +0300 +Processing by SmsSendsController#new as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (3.8ms) +Completed 500 Internal Server Error in 25ms (ActiveRecord: 1.2ms) + + + +ActionView::Template::Error (undefined method `model_name' for #): + 1: + 2: <%= form_for @at, url: {action: "create"} do |f|%> + 3: mobile Number: <%= f.text_field :mobile%> + 4: message: <%= f.text_field :message%> + 5: <%= f.submit "send" %> + +app/views/sms_sends/new.html.erb:2:in `_app_views_sms_sends_new_html_erb__4423166349930774332_70224867888480' +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 09:48:29 +0300 +Processing by SmsSendsController#new as HTML + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (9.6ms) +Completed 500 Internal Server Error in 25ms (ActiveRecord: 0.6ms) + + + +ActionView::Template::Error (undefined method `model_name' for #): + 1: + 2: <%= form_for @at, url: {action: "create"} do |f|%> + 3: mobile Number: <%= f.text_field :mobile%> + 4: message: <%= f.text_field :message%> + 5: <%= f.submit "send" %> + +app/views/sms_sends/new.html.erb:2:in `_app_views_sms_sends_new_html_erb__4423166349930774332_70224809689240' +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.1ms) begin transaction + ↳ bin/rails:9 +  (0.0ms) commit transaction + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Started GET "/" for 127.0.0.1 at 2018-09-21 09:54:15 +0300 +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Processing by ContactsController#index as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (4.6ms) +Completed 200 OK in 260ms (Views: 232.2ms | ActiveRecord: 1.7ms) + + +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 09:56:11 +0300 + +LoadError (cannot load such file -- /home/getty/code/RailsGirlsCodeChallenge/AfricasTalkingGateway): + +app/controllers/sms_sends_controller.rb:1:in `
' +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 09:56:30 +0300 + +LoadError (cannot load such file -- gateway): + +app/controllers/sms_sends_controller.rb:1:in `
' +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 09:56:53 +0300 + +LoadError (cannot load such file -- /home/getty/code/RailsGirlsCodeChallenge/AfricasTalkingGateway): + +app/controllers/sms_sends_controller.rb:1:in `
' +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 09:57:28 +0300 +Processing by SmsSendsController#new as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (6.5ms) +Completed 200 OK in 101ms (Views: 48.9ms | ActiveRecord: 3.2ms) + + +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 09:57:41 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"P4AKu+TeXPab/ZNifY7P27gzCMXHSs+De2zzcdcM8ioNiaoaZpRoedX2A23bBulRGPvkj/UlaFx4N0215xZCJQ==", "sms_send"=>{"mobile"=>"", "message"=>""}, "commit"=>"send"} + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.2ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:8 + SmsSend Create (0.6ms) INSERT INTO "sms_sends" ("message", "mobile", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["message", ""], ["mobile", ""], ["created_at", "2018-09-21 06:57:41.070912"], ["updated_at", "2018-09-21 06:57:41.070912"]] + ↳ app/controllers/sms_sends_controller.rb:8 +  (108.8ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:8 +No template found for SmsSendsController#create, rendering head :no_content +Completed 204 No Content in 161ms (ActiveRecord: 110.2ms) + + +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 09:57:44 +0300 +Processing by SmsSendsController#new as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (2.9ms) +Completed 200 OK in 58ms (Views: 51.3ms | ActiveRecord: 0.5ms) + + +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 09:58:24 +0300 +Processing by SmsSendsController#new as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (3.2ms) +Completed 200 OK in 79ms (Views: 33.7ms | ActiveRecord: 1.8ms) + + +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 09:58:25 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"arrKTWwyctiaL8Z7sSgTyfBVMMLJZMnWUEArzlnSlWRYs2rs7nhGV9QkVnQXoDVDUJ3ciPsLbglTG5UKacglaw==", "sms_send"=>{"mobile"=>"", "message"=>""}, "commit"=>"send"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:8 + SmsSend Create (1.1ms) INSERT INTO "sms_sends" ("message", "mobile", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["message", ""], ["mobile", ""], ["created_at", "2018-09-21 06:58:25.884248"], ["updated_at", "2018-09-21 06:58:25.884248"]] + ↳ app/controllers/sms_sends_controller.rb:8 +  (110.9ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:8 +No template found for SmsSendsController#create, rendering head :no_content +Completed 204 No Content in 186ms (ActiveRecord: 112.5ms) + + +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 09:59:16 +0300 +Processing by SmsSendsController#new as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (2.1ms) +Completed 200 OK in 51ms (Views: 24.2ms | ActiveRecord: 2.0ms) + + +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 09:59:17 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"BE4rs0OTxo1AWvcI0ehcMdqdpFCogUcWTLoeCUkMewM2R4sSwdnyAg5RZwd3YHq7elVIGpru4MlP4aDNeRbLDA==", "sms_send"=>{"mobile"=>"", "message"=>""}, "commit"=>"send"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:8 + SmsSend Create (2.5ms) INSERT INTO "sms_sends" ("message", "mobile", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["message", ""], ["mobile", ""], ["created_at", "2018-09-21 06:59:17.994200"], ["updated_at", "2018-09-21 06:59:17.994200"]] + ↳ app/controllers/sms_sends_controller.rb:8 +  (101.4ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:8 +Completed 500 Internal Server Error in 114ms (ActiveRecord: 104.4ms) + + + +ArgumentError (wrong number of arguments (given 1, expected 2..8)): + +app/controllers/sms_sends_controller.rb:9:in `create' +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 10:00:14 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"BE4rs0OTxo1AWvcI0ehcMdqdpFCogUcWTLoeCUkMewM2R4sSwdnyAg5RZwd3YHq7elVIGpru4MlP4aDNeRbLDA==", "sms_send"=>{"mobile"=>"", "message"=>""}, "commit"=>"send"} + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:8 + SmsSend Create (0.3ms) INSERT INTO "sms_sends" ("message", "mobile", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["message", ""], ["mobile", ""], ["created_at", "2018-09-21 07:00:14.989259"], ["updated_at", "2018-09-21 07:00:14.989259"]] + ↳ app/controllers/sms_sends_controller.rb:8 +  (80.5ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:8 +No template found for SmsSendsController#create, rendering head :no_content +Completed 204 No Content in 1070ms (ActiveRecord: 82.6ms) + + +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 10:00:22 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"BE4rs0OTxo1AWvcI0ehcMdqdpFCogUcWTLoeCUkMewM2R4sSwdnyAg5RZwd3YHq7elVIGpru4MlP4aDNeRbLDA==", "sms_send"=>{"mobile"=>"", "message"=>""}, "commit"=>"send"} + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:8 + SmsSend Create (1.5ms) INSERT INTO "sms_sends" ("message", "mobile", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["message", ""], ["mobile", ""], ["created_at", "2018-09-21 07:00:22.609487"], ["updated_at", "2018-09-21 07:00:22.609487"]] + ↳ app/controllers/sms_sends_controller.rb:8 +  (68.6ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:8 +No template found for SmsSendsController#create, rendering head :no_content +Completed 204 No Content in 1055ms (ActiveRecord: 70.8ms) + + +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 10:03:36 +0300 +Processing by SmsSendsController#new as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (4.8ms) +Completed 200 OK in 44ms (Views: 38.1ms | ActiveRecord: 0.5ms) + + +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 10:03:37 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"5tGn0Xnsn097J+ccVZxhnAemmMaAJshwNVMWSgZ4v+zU2Adw+6arwDUsdxPzFEcWp250jLJJb682CKiONmIP4w==", "sms_send"=>{"mobile"=>"", "message"=>""}, "commit"=>"send"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:8 + SmsSend Create (0.3ms) INSERT INTO "sms_sends" ("message", "mobile", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["message", ""], ["mobile", ""], ["created_at", "2018-09-21 07:03:37.966311"], ["updated_at", "2018-09-21 07:03:37.966311"]] + ↳ app/controllers/sms_sends_controller.rb:8 +  (90.2ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:8 +No template found for SmsSendsController#create, rendering head :no_content +Completed 204 No Content in 1063ms (ActiveRecord: 91.0ms) + + +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 10:04:18 +0300 +Processing by SmsSendsController#new as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (2.2ms) +Completed 200 OK in 36ms (Views: 31.5ms | ActiveRecord: 0.4ms) + + +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 10:04:20 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"27ymLSuw7S76ieAL+35TDGKhqHw9/0+nhvcWT84p+0/ptQaMqfrZobSCcARd9nWGwmlENg+Q6HiFrKiL/jNLQA==", "sms_send"=>{"mobile"=>"", "message"=>""}, "commit"=>"send"} + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:8 + SmsSend Create (0.4ms) INSERT INTO "sms_sends" ("message", "mobile", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["message", ""], ["mobile", ""], ["created_at", "2018-09-21 07:04:20.460677"], ["updated_at", "2018-09-21 07:04:20.460677"]] + ↳ app/controllers/sms_sends_controller.rb:8 +  (165.3ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:8 +No template found for SmsSendsController#create, rendering head :no_content +Completed 204 No Content in 1196ms (ActiveRecord: 166.1ms) + + +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 10:06:13 +0300 +Processing by SmsSendsController#new as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (2.1ms) +Completed 200 OK in 31ms (Views: 27.9ms | ActiveRecord: 0.3ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-21 10:06:36 +0300 +Processing by ContactsController#index as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (6.0ms) +Completed 200 OK in 57ms (Views: 46.1ms | ActiveRecord: 1.4ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-21 10:06:39 +0300 +Processing by ContactsController#new as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (2.3ms) +Completed 200 OK in 43ms (Views: 26.5ms | ActiveRecord: 1.1ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-21 10:06:42 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"ZnMbAOB5dsZnYppmRJesIzs38lIjBengbqAAdcGc65OlUG5zho8uuVtOBczAcgjJM3dOwebNBzyNT2WGSDenJQ==", "contact"=>{"first_name"=>"Vielka", "last_name"=>"Daniels", "phonenumber"=>"+733-24-5605678"}, "commit"=>"create"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 +  (0.1ms) rollback transaction + ↳ app/controllers/contacts_controller.rb:10 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (2.8ms) +Completed 200 OK in 48ms (Views: 33.8ms | ActiveRecord: 0.6ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-21 10:09:05 +0300 +Processing by ContactsController#index as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (3.2ms) +Completed 200 OK in 62ms (Views: 55.7ms | ActiveRecord: 0.7ms) + + +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 10:09:51 +0300 +Processing by SmsSendsController#new as HTML + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (3.7ms) +Completed 200 OK in 55ms (Views: 47.5ms | ActiveRecord: 0.6ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-21 10:11:17 +0300 +Processing by ContactsController#index as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (4.5ms) +Completed 200 OK in 45ms (Views: 39.4ms | ActiveRecord: 0.8ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-21 10:15:21 +0300 +Processing by ContactsController#new as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (3.4ms) +Completed 200 OK in 42ms (Views: 38.5ms | ActiveRecord: 0.3ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-21 10:15:23 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"0ZnOE1Yz5wYXVVfBOriotgnJmdsEm4Pe+k7Y7KxxAi0SurtgMMW/eSt5yGu+XQxcAYklSMFTbQIZob0fJdpOmw==", "contact"=>{"first_name"=>"", "last_name"=>"", "phonenumber"=>""}, "commit"=>"create"} + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.2ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 +  (0.1ms) rollback transaction + ↳ app/controllers/contacts_controller.rb:10 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (4.9ms) +Completed 200 OK in 47ms (Views: 31.5ms | ActiveRecord: 0.8ms) + + +  (0.2ms) begin transaction + SmsSend Create (0.9ms) INSERT INTO "sms_sends" ("message", "mobile", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["message", "kukuii"], ["mobile", "254711903303"], ["created_at", "2018-09-21 07:18:09.248366"], ["updated_at", "2018-09-21 07:18:09.248366"]] +  (80.2ms) commit transaction + SmsSend Load (0.7ms) SELECT "sms_sends".* FROM "sms_sends" ORDER BY "sms_sends"."id" DESC LIMIT ? [["LIMIT", 1]] + SmsSend Load (0.3ms) SELECT "sms_sends".* FROM "sms_sends" ORDER BY "sms_sends"."id" DESC LIMIT ? [["LIMIT", 1]] +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 10:21:08 +0300 +Processing by SmsSendsController#new as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (2.1ms) +Completed 200 OK in 53ms (Views: 21.3ms | ActiveRecord: 1.8ms) + + +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 10:21:45 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"pUq9mQH2Kk4ao35tvViFxkktm+H2csLvGYjXCaNS2x+XQx04g7wewVSo7mIb0KNM6eV3q8QdZTAa02nNk0hrEA==", "sms_send"=>{"mobile"=>"254705263536", "message"=>"Sssssup KKKeeevveeeennn"}, "commit"=>"send"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:8 + SmsSend Create (0.8ms) INSERT INTO "sms_sends" ("message", "mobile", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["message", "Sssssup KKKeeevveeeennn"], ["mobile", "254705263536"], ["created_at", "2018-09-21 07:21:45.500428"], ["updated_at", "2018-09-21 07:21:45.500428"]] + ↳ app/controllers/sms_sends_controller.rb:8 +  (204.6ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:8 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:9 +  (0.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:9 +No template found for SmsSendsController#create, rendering head :no_content +Completed 204 No Content in 1754ms (ActiveRecord: 206.2ms) + + +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 10:30:55 +0300 +Processing by SmsSendsController#new as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (2.4ms) +Completed 200 OK in 46ms (Views: 39.7ms | ActiveRecord: 0.4ms) + + +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.1ms) begin transaction + ↳ bin/rails:9 +  (0.0ms) commit transaction + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT sqlite_version(*) + ↳ bin/rails:9 +  (99.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) + ↳ bin/rails:9 +  (101.4ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ bin/rails:9 +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to DeviseCreateUsers (20180920130430) +  (0.1ms) begin transaction + ↳ bin/rails:9 +  (1.2ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180920130430_devise_create_users.rb:5 +  (12.0ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email") + ↳ db/migrate/20180920130430_devise_create_users.rb:39 +  (0.6ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token") + ↳ db/migrate/20180920130430_devise_create_users.rb:40 + ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920130430"]] + ↳ bin/rails:9 +  (117.2ms) commit transaction + ↳ bin/rails:9 +Migrating to CreateContacts (20180920132032) +  (0.2ms) begin transaction + ↳ bin/rails:9 +  (1.1ms) CREATE TABLE "contacts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "phonenumber" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180920132032_create_contacts.rb:3 + ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920132032"]] + ↳ bin/rails:9 +  (121.5ms) commit transaction + ↳ bin/rails:9 +Migrating to AddUserToContact (20180920132335) +  (0.3ms) begin transaction + ↳ bin/rails:9 +  (2.4ms) ALTER TABLE "contacts" ADD "user_id" integer + ↳ db/migrate/20180920132335_add_user_to_contact.rb:3 +  (0.6ms) CREATE INDEX "index_contacts_on_user_id" ON "contacts" ("user_id") + ↳ db/migrate/20180920132335_add_user_to_contact.rb:3 + ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920132335"]] + ↳ bin/rails:9 +  (118.8ms) commit transaction + ↳ bin/rails:9 +Migrating to CreateSmsSends (20180921061918) +  (0.3ms) begin transaction + ↳ bin/rails:9 +  (0.9ms) CREATE TABLE "sms_sends" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "message" varchar, "mobile" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180921061918_create_sms_sends.rb:3 + ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180921061918"]] + ↳ bin/rails:9 +  (111.6ms) commit transaction + ↳ bin/rails:9 +Migrating to AddSmsSendToContact (20180921063144) +  (0.2ms) begin transaction + ↳ bin/rails:9 +  (1.2ms) ALTER TABLE "contacts" ADD "SmsSend_id" integer + ↳ db/migrate/20180921063144_add_sms_send_to_contact.rb:3 +  (0.6ms) CREATE INDEX "index_contacts_on_SmsSend_id" ON "contacts" ("SmsSend_id") + ↳ db/migrate/20180921063144_add_sms_send_to_contact.rb:3 + ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180921063144"]] + ↳ bin/rails:9 +  (119.1ms) commit transaction + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.2ms) begin transaction + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Create (0.6ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2018-09-21 07:34:02.054340"], ["updated_at", "2018-09-21 07:34:02.054340"]] + ↳ bin/rails:9 +  (67.7ms) commit transaction + ↳ bin/rails:9 +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Started GET "/" for 127.0.0.1 at 2018-09-21 10:34:16 +0300 +Processing by ContactsController#index as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Completed 401 Unauthorized in 10ms (ActiveRecord: 1.0ms) + + +Started GET "/users/sign_in" for 127.0.0.1 at 2018-09-21 10:34:16 +0300 +Processing by Devise::SessionsController#new as HTML + Rendering devise/sessions/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (1.2ms) + Rendered devise/sessions/new.html.erb within layouts/application (5.3ms) +Completed 200 OK in 31ms (Views: 22.2ms | ActiveRecord: 0.0ms) + + +Started GET "/users/sign_up" for 127.0.0.1 at 2018-09-21 10:34:18 +0300 +Processing by Devise::RegistrationsController#new as HTML + Rendering devise/registrations/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (1.8ms) + Rendered devise/registrations/new.html.erb within layouts/application (8.6ms) +Completed 200 OK in 37ms (Views: 35.2ms | ActiveRecord: 0.0ms) + + +Started GET "/users/sign_in" for 127.0.0.1 at 2018-09-21 10:34:22 +0300 +Processing by Devise::SessionsController#new as HTML + Rendering devise/sessions/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (2.2ms) + Rendered devise/sessions/new.html.erb within layouts/application (7.9ms) +Completed 200 OK in 48ms (Views: 44.4ms | ActiveRecord: 0.0ms) + + +Started GET "/users/sign_up" for 127.0.0.1 at 2018-09-21 10:34:24 +0300 +Processing by Devise::RegistrationsController#new as HTML + Rendering devise/registrations/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (1.6ms) + Rendered devise/registrations/new.html.erb within layouts/application (10.3ms) +Completed 200 OK in 56ms (Views: 54.3ms | ActiveRecord: 0.0ms) + + +Started POST "/users" for 127.0.0.1 at 2018-09-21 10:34:27 +0300 +Processing by Devise::RegistrationsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"BqthlfyE6sGQ9w0OUabXPfbdeysNG6wtcMNv1KeZSFq75tiDMaIyZWi7GvbsEUbSA/B1DnUZ3dCWPjOPywGD9w==", "user"=>{"email"=>"vahasyhy@tek.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"} +  (0.1ms) begin transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "vahasyhy@tek.com"], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Create (0.2ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "vahasyhy@tek.com"], ["encrypted_password", "$2a$11$RinEqKrsM/hF9XA1qLjuLO4t73/D6rTIi8benHHOeIGh1ii2I2VoC"], ["created_at", "2018-09-21 07:34:27.788706"], ["updated_at", "2018-09-21 07:34:27.788706"]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (90.2ms) commit transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/ +Completed 302 Found in 319ms (ActiveRecord: 90.7ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-21 10:34:27 +0300 +Processing by ContactsController#index as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (4.3ms) +Completed 200 OK in 38ms (Views: 29.0ms | ActiveRecord: 1.1ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-21 10:34:31 +0300 +Processing by ContactsController#new as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (3.8ms) +Completed 200 OK in 59ms (Views: 31.9ms | ActiveRecord: 1.4ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-21 10:34:32 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"/OnB999kdZ/9HjL8/6awo+PqW0mb42nXTYGxmgLXsqI/yrSEuZIt4MEyrVZ7QxRJ66rn2l4rhwuubtRpi3z+FA==", "contact"=>{"first_name"=>"", "last_name"=>"", "phonenumber"=>""}, "commit"=>"create"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 +  (0.3ms) rollback transaction + ↳ app/controllers/contacts_controller.rb:10 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (3.3ms) +Completed 200 OK in 48ms (Views: 28.1ms | ActiveRecord: 0.8ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-21 10:35:51 +0300 +Processing by ContactsController#index as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 49ms (Views: 25.4ms | ActiveRecord: 2.3ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-21 10:35:52 +0300 +Processing by ContactsController#new as HTML + User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (4.1ms) +Completed 200 OK in 77ms (Views: 34.0ms | ActiveRecord: 1.6ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-21 10:35:54 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"0Siu0IRzThc8MobU4zwR9vOlYB6cMyfqqji3u3TGCAASC9uj4oUWaAAeGX5n2bUc++XcjVn7yTZJ19JI/W1Etg==", "contact"=>{"first_name"=>"", "last_name"=>"", "phonenumber"=>""}, "commit"=>"create"} + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 +  (0.1ms) rollback transaction + ↳ app/controllers/contacts_controller.rb:10 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (4.4ms) +Completed 200 OK in 56ms (Views: 36.2ms | ActiveRecord: 0.8ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-21 10:37:03 +0300 +Processing by ContactsController#index as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (4.4ms) +Completed 200 OK in 54ms (Views: 29.4ms | ActiveRecord: 2.1ms) + + +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.3ms) SELECT sqlite_version(*) + ↳ bin/rails:9 +  (145.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) + ↳ bin/rails:9 +  (145.5ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ bin/rails:9 +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to DeviseCreateUsers (20180920130430) +  (0.1ms) begin transaction + ↳ bin/rails:9 +  (0.9ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180920130430_devise_create_users.rb:5 +  (0.7ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email") + ↳ db/migrate/20180920130430_devise_create_users.rb:39 +  (0.4ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token") + ↳ db/migrate/20180920130430_devise_create_users.rb:40 + ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920130430"]] + ↳ bin/rails:9 +  (103.7ms) commit transaction + ↳ bin/rails:9 +Migrating to CreateContacts (20180920132032) +  (0.2ms) begin transaction + ↳ bin/rails:9 +  (1.1ms) CREATE TABLE "contacts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "phonenumber" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180920132032_create_contacts.rb:3 + ActiveRecord::SchemaMigration Create (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920132032"]] + ↳ bin/rails:9 +  (150.4ms) commit transaction + ↳ bin/rails:9 +Migrating to AddUserToContact (20180920132335) +  (0.1ms) begin transaction + ↳ bin/rails:9 +  (0.6ms) ALTER TABLE "contacts" ADD "user_id" integer + ↳ db/migrate/20180920132335_add_user_to_contact.rb:3 +  (0.5ms) CREATE INDEX "index_contacts_on_user_id" ON "contacts" ("user_id") + ↳ db/migrate/20180920132335_add_user_to_contact.rb:3 + ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920132335"]] + ↳ bin/rails:9 +  (174.5ms) commit transaction + ↳ bin/rails:9 +Migrating to CreateSmsSends (20180921061918) +  (0.2ms) begin transaction + ↳ bin/rails:9 +  (1.0ms) CREATE TABLE "sms_sends" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "message" varchar, "mobile" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180921061918_create_sms_sends.rb:3 + ActiveRecord::SchemaMigration Create (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180921061918"]] + ↳ bin/rails:9 +  (191.3ms) commit transaction + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.1ms) begin transaction + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Create (8.7ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2018-09-21 07:39:19.482597"], ["updated_at", "2018-09-21 07:39:19.482597"]] + ↳ bin/rails:9 +  (71.3ms) commit transaction + ↳ bin/rails:9 +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-21 10:40:08 +0300 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Processing by ContactsController#new as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Completed 401 Unauthorized in 5ms (ActiveRecord: 0.9ms) + + +Started GET "/users/sign_in" for 127.0.0.1 at 2018-09-21 10:40:08 +0300 +Processing by Devise::SessionsController#new as HTML + Rendering devise/sessions/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (1.0ms) + Rendered devise/sessions/new.html.erb within layouts/application (3.7ms) +Completed 200 OK in 30ms (Views: 22.3ms | ActiveRecord: 0.0ms) + + +Started GET "/users/sign_up" for 127.0.0.1 at 2018-09-21 10:40:10 +0300 +Processing by Devise::RegistrationsController#new as HTML + Rendering devise/registrations/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (2.0ms) + Rendered devise/registrations/new.html.erb within layouts/application (8.8ms) +Completed 200 OK in 41ms (Views: 39.2ms | ActiveRecord: 0.0ms) + + +Started POST "/users" for 127.0.0.1 at 2018-09-21 10:40:13 +0300 +Processing by Devise::RegistrationsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"qxTXJCXao2q6eNrJtKQboxol5rmDXcFUp40eiqcL4skWWW4y6Px7zkI0zTEJE4pM7wjonPtfsKlBcELRy5MpZA==", "user"=>{"email"=>"bosicuji@wuvapyterekajab.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"} +  (0.1ms) begin transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "bosicuji@wuvapyterekajab.com"], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "bosicuji@wuvapyterekajab.com"], ["encrypted_password", "$2a$11$VUq6Kfth0c33sJtwijJgx.59rzIE8HOOzX0RPJgX0gU2h2vH0AoaS"], ["created_at", "2018-09-21 07:40:13.595380"], ["updated_at", "2018-09-21 07:40:13.595380"]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (91.1ms) commit transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/contacts/new +Completed 302 Found in 278ms (ActiveRecord: 91.8ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-21 10:40:13 +0300 +Processing by ContactsController#new as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (2.6ms) +Completed 200 OK in 53ms (Views: 23.4ms | ActiveRecord: 1.2ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-21 10:40:15 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"fRzPhpCMio5Nw7Nfm+9vRNdX0pNfUayLmPM2kmy43+JPFW8nEsa+AQPII1A9Z0nOd58+2W0+C1SbqIhWXKJv7Q==", "contact"=>{"first_name"=>"", "last_name"=>"", "phonenumber"=>""}, "commit"=>"create"} + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.2ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 +  (0.1ms) rollback transaction + ↳ app/controllers/contacts_controller.rb:10 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (4.6ms) +Completed 200 OK in 54ms (Views: 36.3ms | ActiveRecord: 0.9ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-21 10:40:27 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"D/bHWX8Eelg7zojE4rcR86AD8d672AdsCvRAyMJH9ls9/2f4/U5O13XFGMtEPzd5AMsdlIm3oLMJr/4M8l1GVA==", "contact"=>{"first_name"=>"Bevis", "last_name"=>"Justice", "phonenumber"=>"664145209603"}, "commit"=>"create"} + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.2ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 + Contact Create (2.0ms) INSERT INTO "contacts" ("first_name", "last_name", "phonenumber", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["first_name", "Bevis"], ["last_name", "Justice"], ["phonenumber", 664145209603], ["created_at", "2018-09-21 07:40:27.760038"], ["updated_at", "2018-09-21 07:40:27.760038"], ["user_id", 1]] + ↳ app/controllers/contacts_controller.rb:10 +  (225.5ms) commit transaction + ↳ app/controllers/contacts_controller.rb:10 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 243ms (ActiveRecord: 228.2ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-21 10:40:28 +0300 +Processing by ContactsController#index as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (4.1ms) +Completed 200 OK in 41ms (Views: 36.2ms | ActiveRecord: 0.7ms) + + +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 10:40:31 +0300 +Processing by SmsSendsController#new as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (2.1ms) +Completed 200 OK in 40ms (Views: 25.4ms | ActiveRecord: 1.2ms) + + +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 10:40:38 +0300 +Processing by SmsSendsController#new as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (2.7ms) +Completed 200 OK in 46ms (Views: 40.7ms | ActiveRecord: 0.5ms) + + +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to AddContactToSmsSend (20180921074512) +  (0.1ms) begin transaction + ↳ bin/rails:9 +  (0.4ms) ALTER TABLE "sms_sends" ADD "contact_id" integer + ↳ db/migrate/20180921074512_add_contact_to_sms_send.rb:3 +  (0.1ms) SELECT sqlite_version(*) + ↳ db/migrate/20180921074512_add_contact_to_sms_send.rb:3 +  (0.2ms) CREATE INDEX "index_sms_sends_on_contact_id" ON "sms_sends" ("contact_id") + ↳ db/migrate/20180921074512_add_contact_to_sms_send.rb:3 + ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180921074512"]] + ↳ bin/rails:9 +  (145.3ms) commit transaction + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.1ms) begin transaction + ↳ bin/rails:9 +  (0.1ms) commit transaction + ↳ bin/rails:9 +  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-21 10:45:43 +0300 +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Processing by ContactsController#new as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (2.5ms) +Completed 200 OK in 49ms (Views: 21.4ms | ActiveRecord: 1.8ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-21 10:45:45 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"SIYKmC9O74Ak+bDvCYMCMHm2bIx/HhZSDPYFMN85mAOLpX/rSbi3/xjVL0WNZqbacfbQH7rW+I7vGWDDVpLUtQ==", "contact"=>{"first_name"=>"", "last_name"=>"", "phonenumber"=>""}, "commit"=>"create"} + User Load (1.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 +  (0.1ms) rollback transaction + ↳ app/controllers/contacts_controller.rb:10 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (4.4ms) +Completed 200 OK in 52ms (Views: 33.4ms | ActiveRecord: 1.4ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-21 10:45:49 +0300 +Processing by ContactsController#index as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (4.0ms) +Completed 200 OK in 54ms (Views: 48.1ms | ActiveRecord: 0.7ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-21 10:45:51 +0300 +Processing by ContactsController#new as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (2.8ms) +Completed 200 OK in 37ms (Views: 30.7ms | ActiveRecord: 0.5ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-21 10:45:53 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"gIs7w6ki0/26pU/dB/pQSGhWrk+qOhL6kXxJ4LPmqRhDqE6wz9SLgoaJ0HeDH/SiYBYS3G/y/CZykywTOk3lrg==", "contact"=>{"first_name"=>"", "last_name"=>"", "phonenumber"=>""}, "commit"=>"create"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.2ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 +  (0.2ms) rollback transaction + ↳ app/controllers/contacts_controller.rb:10 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (4.7ms) +Completed 200 OK in 51ms (Views: 36.7ms | ActiveRecord: 0.8ms) + + +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 10:48:49 +0300 +Processing by SmsSendsController#new as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (3.6ms) +Completed 200 OK in 61ms (Views: 36.3ms | ActiveRecord: 2.0ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-21 10:59:24 +0300 +Processing by ContactsController#index as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.4ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:13 + Rendered contacts/index.html.erb within layouts/application (3.7ms) +Completed 200 OK in 37ms (Views: 31.0ms | ActiveRecord: 0.8ms) + + +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 10:59:30 +0300 +Processing by SmsSendsController#new as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (2.9ms) +Completed 200 OK in 43ms (Views: 39.3ms | ActiveRecord: 0.4ms) + + +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 11:00:05 +0300 +Processing by SmsSendsController#new as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (2.1ms) +Completed 200 OK in 40ms (Views: 34.2ms | ActiveRecord: 0.5ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-21 11:04:08 +0300 +Processing by ContactsController#new as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (4.3ms) +Completed 200 OK in 56ms (Views: 48.8ms | ActiveRecord: 0.5ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-21 11:04:24 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"AJ8cdcFpJShYDwFRl5Gret5JsbWlvmO3WYI6tdG1BZ3DvGkGp599V2QjnvsTdA+Q1gkNJmB2jWu6bV9GWB5JKw==", "contact"=>{"first_name"=>"Felicia", "last_name"=>"Mills", "phonenumber"=>"254711903303"}, "commit"=>"create"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.3ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 + Contact Create (0.7ms) INSERT INTO "contacts" ("first_name", "last_name", "phonenumber", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["first_name", "Felicia"], ["last_name", "Mills"], ["phonenumber", 254711903303], ["created_at", "2018-09-21 08:04:24.917210"], ["updated_at", "2018-09-21 08:04:24.917210"], ["user_id", 1]] + ↳ app/controllers/contacts_controller.rb:10 +  (222.1ms) commit transaction + ↳ app/controllers/contacts_controller.rb:10 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 246ms (ActiveRecord: 223.4ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-21 11:04:25 +0300 +Processing by ContactsController#index as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (4.7ms) +Completed 200 OK in 39ms (Views: 34.7ms | ActiveRecord: 0.6ms) + + +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 11:04:27 +0300 +Processing by SmsSendsController#new as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (2.0ms) +Completed 200 OK in 35ms (Views: 31.4ms | ActiveRecord: 0.4ms) + + +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT sqlite_version(*) + ↳ bin/rails:9 +  (150.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) + ↳ bin/rails:9 +  (87.1ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ bin/rails:9 +  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to DeviseCreateUsers (20180920130430) +  (0.1ms) begin transaction + ↳ bin/rails:9 +  (0.8ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180920130430_devise_create_users.rb:5 +  (0.5ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email") + ↳ db/migrate/20180920130430_devise_create_users.rb:39 +  (0.3ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token") + ↳ db/migrate/20180920130430_devise_create_users.rb:40 + ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920130430"]] + ↳ bin/rails:9 +  (121.5ms) commit transaction + ↳ bin/rails:9 +Migrating to CreateContacts (20180920132032) +  (0.1ms) begin transaction + ↳ bin/rails:9 +  (0.9ms) CREATE TABLE "contacts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "phonenumber" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180920132032_create_contacts.rb:3 + ActiveRecord::SchemaMigration Create (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920132032"]] + ↳ bin/rails:9 +  (90.6ms) commit transaction + ↳ bin/rails:9 +Migrating to AddUserToContact (20180920132335) +  (0.1ms) begin transaction + ↳ bin/rails:9 +  (1.1ms) ALTER TABLE "contacts" ADD "user_id" integer + ↳ db/migrate/20180920132335_add_user_to_contact.rb:3 +  (0.4ms) CREATE INDEX "index_contacts_on_user_id" ON "contacts" ("user_id") + ↳ db/migrate/20180920132335_add_user_to_contact.rb:3 + ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920132335"]] + ↳ bin/rails:9 +  (124.0ms) commit transaction + ↳ bin/rails:9 +Migrating to CreateSmsSends (20180921061918) +  (0.2ms) begin transaction + ↳ bin/rails:9 +  (0.9ms) CREATE TABLE "sms_sends" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "message" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180921061918_create_sms_sends.rb:3 + ActiveRecord::SchemaMigration Create (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180921061918"]] + ↳ bin/rails:9 +  (112.8ms) commit transaction + ↳ bin/rails:9 +Migrating to AddContactToSmsSend (20180921074512) +  (0.1ms) begin transaction + ↳ bin/rails:9 +  (0.9ms) ALTER TABLE "sms_sends" ADD "contact_id" integer + ↳ db/migrate/20180921074512_add_contact_to_sms_send.rb:3 +  (0.3ms) CREATE INDEX "index_sms_sends_on_contact_id" ON "sms_sends" ("contact_id") + ↳ db/migrate/20180921074512_add_contact_to_sms_send.rb:3 + ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180921074512"]] + ↳ bin/rails:9 +  (101.8ms) commit transaction + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.1ms) begin transaction + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Create (0.6ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2018-09-21 08:06:05.900071"], ["updated_at", "2018-09-21 08:06:05.900071"]] + ↳ bin/rails:9 +  (72.6ms) commit transaction + ↳ bin/rails:9 +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 11:12:22 +0300 +Processing by SmsSendsController#new as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Completed 401 Unauthorized in 7ms (ActiveRecord: 1.2ms) + + +Started GET "/users/sign_in" for 127.0.0.1 at 2018-09-21 11:12:22 +0300 +Processing by Devise::SessionsController#new as HTML + Rendering devise/sessions/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (1.2ms) + Rendered devise/sessions/new.html.erb within layouts/application (4.9ms) +Completed 200 OK in 41ms (Views: 27.9ms | ActiveRecord: 0.0ms) + + +Started GET "/users/sign_up" for 127.0.0.1 at 2018-09-21 11:12:24 +0300 +Processing by Devise::RegistrationsController#new as HTML + Rendering devise/registrations/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (1.0ms) + Rendered devise/registrations/new.html.erb within layouts/application (5.3ms) +Completed 200 OK in 29ms (Views: 26.1ms | ActiveRecord: 0.0ms) + + +Started POST "/users" for 127.0.0.1 at 2018-09-21 11:12:27 +0300 +Processing by Devise::RegistrationsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"w7rN6iYcL+qXAwxkRMLaXr7dIVkHR+yT8zmgD4QoeJB+93T86zr3Tm9PG5z5dUuxS/AvfH9FnW4VxPxU6LCzPQ==", "user"=>{"email"=>"fazulycyr@nizefeb.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"} +  (0.1ms) begin transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "fazulycyr@nizefeb.com"], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Create (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "fazulycyr@nizefeb.com"], ["encrypted_password", "$2a$11$2fnwymtqTiUTGCNWjirm/e.QbpGdhbpc5OHVmbh3It3AwA59Kvq.i"], ["created_at", "2018-09-21 08:12:27.592308"], ["updated_at", "2018-09-21 08:12:27.592308"]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (84.9ms) commit transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/sms_sends/new +Completed 302 Found in 309ms (ActiveRecord: 85.8ms) + + +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 11:12:27 +0300 +Processing by SmsSendsController#new as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (2.7ms) +Completed 200 OK in 44ms (Views: 28.0ms | ActiveRecord: 1.2ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-21 11:12:38 +0300 +Processing by ContactsController#index as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.4ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (7.6ms) +Completed 200 OK in 65ms (Views: 53.2ms | ActiveRecord: 1.5ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-21 11:12:40 +0300 +Processing by ContactsController#new as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (2.9ms) +Completed 200 OK in 55ms (Views: 32.7ms | ActiveRecord: 1.2ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-21 11:12:56 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"m9xXh/2Hz/OJs2fcwEpzQC8kenT0I74J5Eo+uCk/fqRY/yL0m3GXjLWf+HZEr9eqJ2TG5zHrUNUHpVtLoJQyEg==", "contact"=>{"first_name"=>"Ishmael", "last_name"=>"Gray", "phonenumber"=>"254711903303"}, "commit"=>"create"} + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 + Contact Create (1.9ms) INSERT INTO "contacts" ("first_name", "last_name", "phonenumber", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["first_name", "Ishmael"], ["last_name", "Gray"], ["phonenumber", 254711903303], ["created_at", "2018-09-21 08:12:56.812180"], ["updated_at", "2018-09-21 08:12:56.812180"], ["user_id", 1]] + ↳ app/controllers/contacts_controller.rb:10 +  (289.2ms) commit transaction + ↳ app/controllers/contacts_controller.rb:10 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 309ms (ActiveRecord: 291.7ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-21 11:12:57 +0300 +Processing by ContactsController#index as HTML + User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (4.7ms) +Completed 200 OK in 56ms (Views: 50.8ms | ActiveRecord: 1.0ms) + + +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 11:13:00 +0300 +Processing by SmsSendsController#new as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (2.8ms) +Completed 200 OK in 41ms (Views: 36.4ms | ActiveRecord: 0.4ms) + + +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 11:13:12 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"raG94l6dBbcUNhUgiowRG3NFT5NZ25gD35Pi9FrKyLMQtGMCkFjGxXGl8W8UlhDyeoQLOImMo1birVbGn6Aqxg==", "sms_send"=>{"message"=>"Aki plis work"}, "commit"=>"send"} + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Completed 500 Internal Server Error in 229ms (ActiveRecord: 0.6ms) + + + +NameError (undefined local variable or method `contact_id' for # +Did you mean? contact_url): + +app/controllers/sms_sends_controller.rb:8:in `create' +Started GET "/contacts" for 127.0.0.1 at 2018-09-21 11:13:29 +0300 +Processing by ContactsController#index as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (5.8ms) +Completed 200 OK in 52ms (Views: 46.3ms | ActiveRecord: 0.5ms) + + +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 11:13:58 +0300 +Processing by SmsSendsController#new as HTML + User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (2.0ms) +Completed 200 OK in 57ms (Views: 31.5ms | ActiveRecord: 1.1ms) + + +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 11:14:00 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"ZtWRhReYiTASHwenWWA5mkTFuOBwmeA5ccDRpOVU/nDbwE9l2V1KQneM4+jHejhzTQT8S6DO22xM/mWWID4cBQ==", "sms_send"=>{"message"=>""}, "commit"=>"send"} + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Completed 500 Internal Server Error in 196ms (ActiveRecord: 0.3ms) + + + +NameError (undefined local variable or method `contact_id' for # +Did you mean? contact_url): + +app/controllers/sms_sends_controller.rb:8:in `create' +Started GET "/contacts" for 127.0.0.1 at 2018-09-21 11:14:10 +0300 +Processing by ContactsController#index as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (4.3ms) +Completed 200 OK in 42ms (Views: 36.3ms | ActiveRecord: 0.7ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-21 11:43:40 +0300 +Processing by ContactsController#index as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (12.2ms) +Completed 200 OK in 58ms (Views: 34.2ms | ActiveRecord: 2.0ms) + + +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 11:43:42 +0300 +Processing by SmsSendsController#new as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (2.4ms) +Completed 200 OK in 40ms (Views: 22.3ms | ActiveRecord: 1.7ms) + + +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 11:43:47 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"Pxbam+Ims7VT2eJV8h6wSA3UqixafPOjU1bQW5TFnvCCAwR7LONwxzZKBhpsBLGhBBXuh4oryPZuaGRpUa98hQ==", "sms_send"=>{"message"=>"klhlk"}, "commit"=>"send"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:8 + SmsSend Create (3.4ms) INSERT INTO "sms_sends" ("message", "created_at", "updated_at") VALUES (?, ?, ?) [["message", "klhlk"], ["created_at", "2018-09-21 08:43:47.010827"], ["updated_at", "2018-09-21 08:43:47.010827"]] + ↳ app/controllers/sms_sends_controller.rb:8 +  (230.5ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:8 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:9 +  (0.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:9 +Completed 500 Internal Server Error in 451ms (ActiveRecord: 234.7ms) + + + +NameError (undefined local variable or method `contact_phonenumber' for # +Did you mean? contacts_url): + +app/controllers/sms_sends_controller.rb:10:in `create' +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 11:44:14 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"Pxbam+Ims7VT2eJV8h6wSA3UqixafPOjU1bQW5TFnvCCAwR7LONwxzZKBhpsBLGhBBXuh4oryPZuaGRpUa98hQ==", "sms_send"=>{"message"=>"klhlk"}, "commit"=>"send"} + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:8 + SmsSend Create (0.3ms) INSERT INTO "sms_sends" ("message", "created_at", "updated_at") VALUES (?, ?, ?) [["message", "klhlk"], ["created_at", "2018-09-21 08:44:14.193636"], ["updated_at", "2018-09-21 08:44:14.193636"]] + ↳ app/controllers/sms_sends_controller.rb:8 +  (74.5ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:8 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:9 +  (0.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:9 +No template found for SmsSendsController#create, rendering head :no_content +Completed 204 No Content in 1248ms (ActiveRecord: 76.6ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-21 11:44:18 +0300 +Processing by ContactsController#index as HTML + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (26.7ms) +Completed 200 OK in 92ms (Views: 78.3ms | ActiveRecord: 2.1ms) + + +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 11:44:20 +0300 +Processing by SmsSendsController#new as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (4.3ms) +Completed 200 OK in 39ms (Views: 34.7ms | ActiveRecord: 0.3ms) + + +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 11:44:22 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"sK0COaUBB+MMyQDwS1G1t3qJh5b3TrWn7OodsxyJD2oNuNzZa8TEkWla5L/VS7Rec0jDPScZjvLR1KmB2ePtHw==", "sms_send"=>{"message"=>"kn"}, "commit"=>"send"} + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.2ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:8 + SmsSend Create (2.0ms) INSERT INTO "sms_sends" ("message", "created_at", "updated_at") VALUES (?, ?, ?) [["message", "kn"], ["created_at", "2018-09-21 08:44:22.921608"], ["updated_at", "2018-09-21 08:44:22.921608"]] + ↳ app/controllers/sms_sends_controller.rb:8 +  (166.5ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:8 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:9 +  (0.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:9 +No template found for SmsSendsController#create, rendering head :no_content +Completed 204 No Content in 1137ms (ActiveRecord: 169.4ms) + + +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 11:44:44 +0300 +Processing by SmsSendsController#new as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (3.4ms) +Completed 200 OK in 70ms (Views: 63.5ms | ActiveRecord: 0.5ms) + + +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 11:45:14 +0300 +Processing by SmsSendsController#new as HTML + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (2.6ms) +Completed 200 OK in 58ms (Views: 50.7ms | ActiveRecord: 0.6ms) + + +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 12:06:36 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"ZmskoPcATsOnXItxX7XaWIQ3HMB9CmRYWmakHYtRKyHbfvpAOcWNscLPbz7Br9uxjfZYa61dXw1nWBAvTjvJVA==", "sms_send"=>{"message"=>""}, "commit"=>"send"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:8 + SmsSend Create (2.2ms) INSERT INTO "sms_sends" ("message", "created_at", "updated_at") VALUES (?, ?, ?) [["message", ""], ["created_at", "2018-09-21 09:06:36.606440"], ["updated_at", "2018-09-21 09:06:36.606440"]] + ↳ app/controllers/sms_sends_controller.rb:8 +  (90.4ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:8 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:9 +  (0.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:9 +Completed 500 Internal Server Error in 1199ms (ActiveRecord: 93.3ms) + + + +AfricasTalkingGatewayException (requirement failed: The message to send should not be empty): + +app/controllers/sms_sends_controller.rb:10:in `create' +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 12:07:25 +0300 +Processing by SmsSendsController#new as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (2.0ms) +Completed 200 OK in 47ms (Views: 24.1ms | ActiveRecord: 1.6ms) + + +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 12:07:27 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"cDgH2toZRhs2KSCxwhkKqnGpeXzCfk5vcA37cMvr9/NCMad7WFNylHgisL5kkSwg0WGVNvAR6bBzVkW0+/FH/A==", "sms_send"=>{"message"=>""}, "commit"=>"send"} + User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Completed 500 Internal Server Error in 240ms (ActiveRecord: 0.7ms) + + + +NameError (undefined local variable or method `contact_id' for # +Did you mean? contact_url): + +app/controllers/sms_sends_controller.rb:8:in `create' +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 12:07:38 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"cDgH2toZRhs2KSCxwhkKqnGpeXzCfk5vcA37cMvr9/NCMad7WFNylHgisL5kkSwg0WGVNvAR6bBzVkW0+/FH/A==", "sms_send"=>{"message"=>""}, "commit"=>"send"} + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:8 + SmsSend Create (0.3ms) INSERT INTO "sms_sends" ("message", "created_at", "updated_at") VALUES (?, ?, ?) [["message", ""], ["created_at", "2018-09-21 09:07:39.089253"], ["updated_at", "2018-09-21 09:07:39.089253"]] + ↳ app/controllers/sms_sends_controller.rb:8 +  (122.8ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:8 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:9 +  (0.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:9 +Completed 500 Internal Server Error in 337ms (ActiveRecord: 125.2ms) + + + +NameError (undefined local variable or method `contact' for # +Did you mean? contact_url): + +app/controllers/sms_sends_controller.rb:10:in `create' +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 12:08:30 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"cDgH2toZRhs2KSCxwhkKqnGpeXzCfk5vcA37cMvr9/NCMad7WFNylHgisL5kkSwg0WGVNvAR6bBzVkW0+/FH/A==", "sms_send"=>{"message"=>""}, "commit"=>"send"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:8 + SmsSend Create (1.1ms) INSERT INTO "sms_sends" ("message", "created_at", "updated_at") VALUES (?, ?, ?) [["message", ""], ["created_at", "2018-09-21 09:08:30.437114"], ["updated_at", "2018-09-21 09:08:30.437114"]] + ↳ app/controllers/sms_sends_controller.rb:8 +  (66.8ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:8 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:9 +  (0.3ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:9 +Completed 500 Internal Server Error in 109ms (ActiveRecord: 71.7ms) + + + +NameError (uninitialized constant SmsSendsController::Contacts): + +app/controllers/sms_sends_controller.rb:10:in `create' +Started GET "/" for 127.0.0.1 at 2018-09-21 12:58:08 +0300 +Processing by ContactsController#index as HTML +Completed 401 Unauthorized in 12ms (ActiveRecord: 0.0ms) + + +Started GET "/users/sign_in" for 127.0.0.1 at 2018-09-21 12:58:11 +0300 +Processing by Devise::SessionsController#new as HTML + Rendering devise/sessions/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (1.2ms) + Rendered devise/sessions/new.html.erb within layouts/application (4.8ms) +Completed 200 OK in 278ms (Views: 262.3ms | ActiveRecord: 0.8ms) + + +Started GET "/users/sign_up" for 127.0.0.1 at 2018-09-21 12:58:14 +0300 +Processing by Devise::RegistrationsController#new as HTML + Rendering devise/registrations/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (2.3ms) + Rendered devise/registrations/new.html.erb within layouts/application (9.0ms) +Completed 200 OK in 67ms (Views: 64.7ms | ActiveRecord: 0.0ms) + + +Started POST "/users" for 127.0.0.1 at 2018-09-21 12:58:18 +0300 +Processing by Devise::RegistrationsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"CKCyLzYmIe+xhdP/KtrR1gACvVv4ZTew6Q+ooMz1k5Aikp9xXz3OhJD/tTzej9U62pp8UJG2nBOBEae0aTDXOQ==", "user"=>{"email"=>"kyhi@hyvotum.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"} +  (0.1ms) begin transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "kyhi@hyvotum.com"], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Create (0.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "kyhi@hyvotum.com"], ["encrypted_password", "$2a$11$.qz6FDZYo4KiJlWP4jtLiunSDlBl.nkIjv.wFj8eCtPR2yDhhIZPS"], ["created_at", "2018-09-21 09:58:18.798407"], ["updated_at", "2018-09-21 09:58:18.798407"]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (134.9ms) commit transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/ +Completed 302 Found in 429ms (ActiveRecord: 135.5ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-21 12:58:19 +0300 +Processing by ContactsController#index as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.4ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 2]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (7.3ms) +Completed 200 OK in 87ms (Views: 41.8ms | ActiveRecord: 1.4ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-21 12:58:22 +0300 +Processing by ContactsController#new as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (3.3ms) +Completed 200 OK in 48ms (Views: 28.7ms | ActiveRecord: 0.8ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-21 12:58:35 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"gyK+mHN330+y3ZXPTDVwcnIxhN9LzVzHDrzxMx3sqj/0EIiTCbqt5NwKrgTpQzSZphrgWwlc5d0evjfVeLY78A==", "contact"=>{"first_name"=>"Catherine", "last_name"=>"Parsons", "phonenumber"=>"26771697219"}, "commit"=>"create"} + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 +  (0.1ms) rollback transaction + ↳ app/controllers/contacts_controller.rb:10 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (3.4ms) +Completed 200 OK in 46ms (Views: 36.7ms | ActiveRecord: 0.7ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-21 12:58:40 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"HiG+YmZicA6nXsOsm+SReGSdIb8bMvnWST4P/MrSPmIMuXUdKM3e8sev92m69RPanR+z982piylTUw3kfpn54Q==", "contact"=>{"first_name"=>"Catherine", "last_name"=>"Parsons", "phonenumber"=>"267716972197"}, "commit"=>"create"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.2ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 + Contact Create (0.5ms) INSERT INTO "contacts" ("first_name", "last_name", "phonenumber", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["first_name", "Catherine"], ["last_name", "Parsons"], ["phonenumber", 267716972197], ["created_at", "2018-09-21 09:58:40.364752"], ["updated_at", "2018-09-21 09:58:40.364752"], ["user_id", 2]] + ↳ app/controllers/contacts_controller.rb:10 +  (160.5ms) commit transaction + ↳ app/controllers/contacts_controller.rb:10 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 172ms (ActiveRecord: 161.6ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-21 12:58:40 +0300 +Processing by ContactsController#index as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 2]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 43ms (Views: 38.4ms | ActiveRecord: 0.7ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-21 12:58:42 +0300 +Processing by ContactsController#new as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (3.8ms) +Completed 200 OK in 40ms (Views: 35.7ms | ActiveRecord: 0.3ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-21 12:58:52 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"mCy7VYQVwy+mLpFV5QmbMDERWYtxPmG+hb2PLDkQN5HvHo1e/tixhMj5qp5Af9/b5To9DzOv2KSVv0nKXEqmXg==", "contact"=>{"first_name"=>"Angelica", "last_name"=>"Reyes", "phonenumber"=>"254711903303"}, "commit"=>"create"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 + Contact Create (0.5ms) INSERT INTO "contacts" ("first_name", "last_name", "phonenumber", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["first_name", "Angelica"], ["last_name", "Reyes"], ["phonenumber", 254711903303], ["created_at", "2018-09-21 09:58:52.858823"], ["updated_at", "2018-09-21 09:58:52.858823"], ["user_id", 2]] + ↳ app/controllers/contacts_controller.rb:10 +  (200.1ms) commit transaction + ↳ app/controllers/contacts_controller.rb:10 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 212ms (ActiveRecord: 201.1ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-21 12:58:53 +0300 +Processing by ContactsController#index as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.4ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 2]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (4.1ms) +Completed 200 OK in 39ms (Views: 35.0ms | ActiveRecord: 0.7ms) + + +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 12:58:56 +0300 +Processing by SmsSendsController#new as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (2.5ms) +Completed 200 OK in 96ms (Views: 30.0ms | ActiveRecord: 1.4ms) + + +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 12:59:00 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"dam0rt+uf89d0u85ElrOqEJCuDo4qovuZzEddIQW0vBe0Ff2eK5ZrSMM4BxK5bFH1kiwrQTi0sy80Axwucr3KQ==", "sms_send"=>{"message"=>"gee"}, "commit"=>"send"} + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Completed 500 Internal Server Error in 198ms (ActiveRecord: 0.5ms) + + + +NameError (undefined local variable or method `contact_id' for # +Did you mean? contact_url): + +app/controllers/sms_sends_controller.rb:9:in `create' +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 12:59:32 +0300 +Processing by SmsSendsController#new as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (3.4ms) +Completed 200 OK in 60ms (Views: 23.1ms | ActiveRecord: 2.1ms) + + +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 12:59:35 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"Kj4T40cr/wDdEzNbs66KG6sKFh1IBNFGw6mld5tZ4GUBR/C74CvZYqPNPH7rEfX0PwAeinRMiGQYSLRzpoXFvA==", "sms_send"=>{"message"=>"iii"}, "commit"=>"send"} + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Completed 500 Internal Server Error in 190ms (ActiveRecord: 0.3ms) + + + +NameError (undefined local variable or method `contact_id' for # +Did you mean? contact_url): + +app/controllers/sms_sends_controller.rb:9:in `create' +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 12:59:59 +0300 + +LoadError (cannot load such file -- /home/getty/code/RailsGirlsCodeChallenge/contacts_controller.rb): + +app/controllers/sms_sends_controller.rb:3:in `
' +Started GET "/contacts" for 127.0.0.1 at 2018-09-21 13:00:25 +0300 +Processing by ContactsController#index as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 2]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (10.9ms) +Completed 200 OK in 47ms (Views: 28.5ms | ActiveRecord: 1.6ms) + + +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 13:00:27 +0300 + +LoadError (cannot load such file -- ../contacts_controller.rb): + +app/controllers/sms_sends_controller.rb:3:in `
' +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 13:00:45 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"5UW0kBtVAmWqib/QbCWjIy82PrnzcxERpiv8PobTP/n33X/vVfqsmcp4ixVNNCGB1rSs8SXoY+68Rv4mMpj4eg==", "sms_send"=>{"message"=>"iii"}, "commit"=>"send"} + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Completed 500 Internal Server Error in 180ms (ActiveRecord: 1.0ms) + + + +NameError (undefined local variable or method `contact_id' for # +Did you mean? contact_url): + +app/controllers/sms_sends_controller.rb:9:in `create' +Started GET "/" for 127.0.0.1 at 2018-09-21 13:03:22 +0300 +Processing by ContactsController#index as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 2]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (14.2ms) +Completed 200 OK in 53ms (Views: 33.4ms | ActiveRecord: 1.9ms) + + +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 13:03:24 +0300 + +LoadError (cannot load such file -- /home/getty/code/RailsGirlsCodeChallenge/app/controllers/app/controllers/contacts_controller.rb): + +app/controllers/sms_sends_controller.rb:3:in `
' +Started GET "/" for 127.0.0.1 at 2018-09-21 13:04:18 +0300 +Processing by ContactsController#index as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 2]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (10.6ms) +Completed 200 OK in 41ms (Views: 25.7ms | ActiveRecord: 1.7ms) + + +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 13:04:19 +0300 +Processing by SmsSendsController#new as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (2.9ms) +Completed 200 OK in 52ms (Views: 30.1ms | ActiveRecord: 1.6ms) + + +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 13:04:23 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"sy3H7CZ2aukMWieNtIuVCemUSXD5PWXSvGWFUPQsEtqYVCS0gXZMi3KEKKjsNOrmfZ5B58V1PPBnhJRUyfA3Aw==", "sms_send"=>{"message"=>"iii"}, "commit"=>"send"} + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Completed 500 Internal Server Error in 195ms (ActiveRecord: 0.6ms) + + + +NameError (undefined local variable or method `contact_id' for # +Did you mean? contact_url): + +app/controllers/sms_sends_controller.rb:9:in `create' +  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT sqlite_version(*) + ↳ bin/rails:9 +  (99.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) + ↳ bin/rails:9 +  (99.1ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ bin/rails:9 +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to DeviseCreateUsers (20180920130430) +  (0.2ms) begin transaction + ↳ bin/rails:9 +  (1.0ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180920130430_devise_create_users.rb:5 +  (0.5ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email") + ↳ db/migrate/20180920130430_devise_create_users.rb:39 +  (0.4ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token") + ↳ db/migrate/20180920130430_devise_create_users.rb:40 + ActiveRecord::SchemaMigration Create (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920130430"]] + ↳ bin/rails:9 +  (98.4ms) commit transaction + ↳ bin/rails:9 +Migrating to CreateContacts (20180920132032) +  (0.2ms) begin transaction + ↳ bin/rails:9 +  (1.0ms) CREATE TABLE "contacts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "phonenumber" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180920132032_create_contacts.rb:3 + ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920132032"]] + ↳ bin/rails:9 +  (95.2ms) commit transaction + ↳ bin/rails:9 +Migrating to AddUserToContact (20180920132335) +  (0.2ms) begin transaction + ↳ bin/rails:9 +  (0.9ms) ALTER TABLE "contacts" ADD "user_id" integer + ↳ db/migrate/20180920132335_add_user_to_contact.rb:3 +  (0.5ms) CREATE INDEX "index_contacts_on_user_id" ON "contacts" ("user_id") + ↳ db/migrate/20180920132335_add_user_to_contact.rb:3 + ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920132335"]] + ↳ bin/rails:9 +  (111.2ms) commit transaction + ↳ bin/rails:9 +Migrating to CreateSmsSends (20180921061918) +  (0.2ms) begin transaction + ↳ bin/rails:9 +  (0.8ms) CREATE TABLE "sms_sends" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "message" varchar, "mobile" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180921061918_create_sms_sends.rb:3 + ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180921061918"]] + ↳ bin/rails:9 +  (109.9ms) commit transaction + ↳ bin/rails:9 +Migrating to AddContactToSmsSend (20180921074512) +  (0.2ms) begin transaction + ↳ bin/rails:9 +  (2.5ms) ALTER TABLE "sms_sends" ADD "contact_id" integer + ↳ db/migrate/20180921074512_add_contact_to_sms_send.rb:3 +  (0.4ms) CREATE INDEX "index_sms_sends_on_contact_id" ON "sms_sends" ("contact_id") + ↳ db/migrate/20180921074512_add_contact_to_sms_send.rb:3 + ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180921074512"]] + ↳ bin/rails:9 +  (133.8ms) commit transaction + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.2ms) begin transaction + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Create (0.6ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2018-09-21 10:09:42.380305"], ["updated_at", "2018-09-21 10:09:42.380305"]] + ↳ bin/rails:9 +  (68.2ms) commit transaction + ↳ bin/rails:9 +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Started GET "/" for 127.0.0.1 at 2018-09-21 13:09:53 +0300 +Processing by ContactsController#index as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Completed 401 Unauthorized in 8ms (ActiveRecord: 1.2ms) + + +Started GET "/users/sign_in" for 127.0.0.1 at 2018-09-21 13:09:53 +0300 +Processing by Devise::SessionsController#new as HTML + Rendering devise/sessions/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (1.7ms) + Rendered devise/sessions/new.html.erb within layouts/application (5.8ms) +Completed 200 OK in 69ms (Views: 53.2ms | ActiveRecord: 0.0ms) + + +Started GET "/users/sign_up" for 127.0.0.1 at 2018-09-21 13:09:56 +0300 +Processing by Devise::RegistrationsController#new as HTML + Rendering devise/registrations/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (3.3ms) + Rendered devise/registrations/new.html.erb within layouts/application (8.8ms) +Completed 200 OK in 39ms (Views: 38.1ms | ActiveRecord: 0.0ms) + + +Started POST "/users" for 127.0.0.1 at 2018-09-21 13:10:01 +0300 +Processing by Devise::RegistrationsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"z2v8GuACTt4Iv2uTlR/jZ216zJeUyPOobKjTJT3tjk3lWdFEiRmhtSnFDVBhSueLt+INnP0bWAsEttwxmCjK5A==", "user"=>{"email"=>"cikusa@fygymokupacuq.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"} +  (0.3ms) begin transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "cikusa@fygymokupacuq.com"], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Create (1.1ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "cikusa@fygymokupacuq.com"], ["encrypted_password", "$2a$11$RNoWP0eQ48EtujKS0NRWqO4cKlETXA/4SPmo.8XvrXF..Zktxcf9W"], ["created_at", "2018-09-21 10:10:01.318686"], ["updated_at", "2018-09-21 10:10:01.318686"]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (87.0ms) commit transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/ +Completed 302 Found in 295ms (ActiveRecord: 88.6ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-21 13:10:01 +0300 +Processing by ContactsController#index as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (5.1ms) +Completed 200 OK in 49ms (Views: 40.9ms | ActiveRecord: 1.1ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-21 13:10:04 +0300 +Processing by ContactsController#new as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (3.7ms) +Completed 200 OK in 67ms (Views: 46.4ms | ActiveRecord: 0.8ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-21 13:10:06 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"iSPZTRMhv4ZJa5XzheZ3XuUyUaTnKYZUBh0rPcYCHS3+Ee9GaezNLSe8rjggkDO1MRk1IKW4P04WH+3bo1iM4g==", "contact"=>{"first_name"=>"", "last_name"=>"", "phonenumber"=>""}, "commit"=>"create"} + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 +  (0.1ms) rollback transaction + ↳ app/controllers/contacts_controller.rb:10 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (3.7ms) +Completed 200 OK in 43ms (Views: 29.3ms | ActiveRecord: 0.6ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-21 13:10:15 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"nHFkyK1EOO+n+1DXSwNEk13xNkHNw3n1ZnDJIF3bqsCO6a+34+uWE8cKZBJqEsYxpHOkCRtYCwp8Hcs46ZBtQw==", "contact"=>{"first_name"=>"Isabelle", "last_name"=>"Holt", "phonenumber"=>"6666136866"}, "commit"=>"create"} + User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.2ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 +  (0.1ms) rollback transaction + ↳ app/controllers/contacts_controller.rb:10 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (3.2ms) +Completed 200 OK in 54ms (Views: 40.9ms | ActiveRecord: 1.0ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-21 13:10:19 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"ffLHKngMDMey/l+1F7l9sBN4wJpOks/LkRVD5Zmo2zlvagxVNqOiO9IPa3A2qP8S6vpS0pgJvTSLeEH9LeMcug==", "contact"=>{"first_name"=>"Isabelle", "last_name"=>"Holt", "phonenumber"=>"666613666"}, "commit"=>"create"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.2ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 +  (0.5ms) rollback transaction + ↳ app/controllers/contacts_controller.rb:10 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (2.8ms) +Completed 200 OK in 50ms (Views: 37.8ms | ActiveRecord: 1.0ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-21 13:10:20 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"qqsLyWRhKSctox8KM/8L1DE0V+z0Z0UnkYErL0BclwW4M8C2Ks6H201SK88S7ol2yLbFpCL8N9iL7Ck39BdQhg==", "contact"=>{"first_name"=>"Isabelle", "last_name"=>"Holt", "phonenumber"=>"666613666"}, "commit"=>"create"} + User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.3ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 +  (0.1ms) rollback transaction + ↳ app/controllers/contacts_controller.rb:10 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (4.3ms) +Completed 200 OK in 47ms (Views: 35.3ms | ActiveRecord: 1.4ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-21 13:10:32 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"3N+naYh+O6+1FHQBk9+jjEFC17e4fnnatSiAPZ57eJrOR2wWxtGVU9XlQMSyziEuuMBF/27lCyWvRYIlKjC/GQ==", "contact"=>{"first_name"=>"Isabelle", "last_name"=>"Holt", "phonenumber"=>"254711903303"}, "commit"=>"create"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.2ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 + Contact Create (0.5ms) INSERT INTO "contacts" ("first_name", "last_name", "phonenumber", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["first_name", "Isabelle"], ["last_name", "Holt"], ["phonenumber", 254711903303], ["created_at", "2018-09-21 10:10:32.031062"], ["updated_at", "2018-09-21 10:10:32.031062"], ["user_id", 1]] + ↳ app/controllers/contacts_controller.rb:10 +  (155.1ms) commit transaction + ↳ app/controllers/contacts_controller.rb:10 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 167ms (ActiveRecord: 156.1ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-21 13:10:32 +0300 +Processing by ContactsController#index as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (3.3ms) +Completed 200 OK in 33ms (Views: 27.4ms | ActiveRecord: 0.6ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-21 13:10:35 +0300 +Processing by ContactsController#new as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (3.0ms) +Completed 200 OK in 30ms (Views: 25.5ms | ActiveRecord: 0.4ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-21 13:10:49 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"NQJ6ZydcCXV6P74JzPQ8/SYLrVW4OTMq1PDNkkDQqRdCMExsXZF73hTohcJpgngW8iDJ0fqoijDE8gt0JYo42A==", "contact"=>{"first_name"=>"Maxine", "last_name"=>"Reid", "phonenumber"=>"254739262425"}, "commit"=>"create"} + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 + Contact Create (2.9ms) INSERT INTO "contacts" ("first_name", "last_name", "phonenumber", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["first_name", "Maxine"], ["last_name", "Reid"], ["phonenumber", 254739262425], ["created_at", "2018-09-21 10:10:49.815840"], ["updated_at", "2018-09-21 10:10:49.815840"], ["user_id", 1]] + ↳ app/controllers/contacts_controller.rb:10 +  (214.0ms) commit transaction + ↳ app/controllers/contacts_controller.rb:10 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 229ms (ActiveRecord: 217.5ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-21 13:10:50 +0300 +Processing by ContactsController#index as HTML + User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (4.3ms) +Completed 200 OK in 44ms (Views: 37.3ms | ActiveRecord: 0.9ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-21 13:40:50 +0300 +Processing by ContactsController#index as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.5ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (4.4ms) +Completed 200 OK in 86ms (Views: 81.8ms | ActiveRecord: 0.9ms) + + +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 13:40:53 +0300 + +SyntaxError (/home/getty/code/RailsGirlsCodeChallenge/app/controllers/sms_sends_controller.rb:17: syntax error, unexpected end-of-input, expecting keyword_end): + +app/controllers/sms_sends_controller.rb:17: syntax error, unexpected end-of-input, expecting keyword_end +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 13:41:40 +0300 +Processing by SmsSendsController#new as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (2.2ms) +Completed 200 OK in 49ms (Views: 21.3ms | ActiveRecord: 1.9ms) + + +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 13:41:46 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"oXndlkHAsaN0dG4W05Iz5pYMJnWMuIqG7X0gzBTY63Wz4RbpD28fXxSFWtPyg7FEb460PVoj+Hn3ECLUoJMs9g==", "sms_send"=>{"mobile"=>"", "message"=>"iii"}, "commit"=>"send"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:8 + SmsSend Create (0.5ms) INSERT INTO "sms_sends" ("message", "mobile", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["message", "iii"], ["mobile", ""], ["created_at", "2018-09-21 10:41:46.849449"], ["updated_at", "2018-09-21 10:41:46.849449"]] + ↳ app/controllers/sms_sends_controller.rb:8 +  (163.4ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:8 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:9 +  (0.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:9 +Completed 500 Internal Server Error in 1341ms (ActiveRecord: 164.6ms) + + + +AfricasTalkingGatewayException (requirement failed: Please provide the phone numbers to send to): + +app/controllers/sms_sends_controller.rb:10:in `create' +Started GET "/" for 127.0.0.1 at 2018-09-21 14:19:09 +0300 +Processing by ContactsController#index as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (12.6ms) +Completed 200 OK in 53ms (Views: 35.4ms | ActiveRecord: 1.5ms) + + +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 14:19:12 +0300 +Processing by SmsSendsController#new as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (2.8ms) +Completed 200 OK in 49ms (Views: 26.6ms | ActiveRecord: 2.5ms) + + +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 14:19:20 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"jffG35xom/EIVDiYOhfoB5ar1a/jUh3NM7CG3+bozVimjiWHO2i9k3aKN71iqJfoAqHdON8aRO/oUZfb2zTogQ==", "sms_send"=>{"mobile"=>"", "message"=>"i"}, "commit"=>"send"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:8 + SmsSend Create (0.7ms) INSERT INTO "sms_sends" ("message", "mobile", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["message", "i"], ["mobile", ""], ["created_at", "2018-09-21 11:19:20.037217"], ["updated_at", "2018-09-21 11:19:20.037217"]] + ↳ app/controllers/sms_sends_controller.rb:8 +  (189.4ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:8 +Completed 500 Internal Server Error in 212ms (ActiveRecord: 190.6ms) + + + +NoMethodError (undefined method `user_id' for #): + +app/controllers/sms_sends_controller.rb:9:in `create' +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 14:19:48 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"YbEYYOk7AnsetreVrdtWND/ZsQhZEEORCa9lPMp22TxzKdMfp5Ssh35Hg1CMytSWxlsjQI+LMW4Twmckfj0evw==", "sms_send"=>{"mobile"=>"", "message"=>"i"}, "commit"=>"send"} + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:8 + SmsSend Create (1.0ms) INSERT INTO "sms_sends" ("message", "mobile", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["message", "i"], ["mobile", ""], ["created_at", "2018-09-21 11:19:48.672362"], ["updated_at", "2018-09-21 11:19:48.672362"]] + ↳ app/controllers/sms_sends_controller.rb:8 +  (68.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:8 + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" IS NULL LIMIT ? [["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:9 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:10 +  (0.2ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:10 +Completed 500 Internal Server Error in 1318ms (ActiveRecord: 72.4ms) + + + +AfricasTalkingGatewayException (requirement failed: Please provide the phone numbers to send to): + +app/controllers/sms_sends_controller.rb:11:in `create' +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 14:20:24 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"YbEYYOk7AnsetreVrdtWND/ZsQhZEEORCa9lPMp22TxzKdMfp5Ssh35Hg1CMytSWxlsjQI+LMW4Twmckfj0evw==", "sms_send"=>{"mobile"=>"", "message"=>"i"}, "commit"=>"send"} + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:8 + SmsSend Create (0.8ms) INSERT INTO "sms_sends" ("message", "mobile", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["message", "i"], ["mobile", ""], ["created_at", "2018-09-21 11:20:24.441028"], ["updated_at", "2018-09-21 11:20:24.441028"]] + ↳ app/controllers/sms_sends_controller.rb:8 +  (146.7ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:8 + Contact Load (0.5ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" IS NULL LIMIT ? [["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:9 +  (0.2ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:10 +  (0.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:10 +Completed 500 Internal Server Error in 195ms (ActiveRecord: 152.0ms) + + + +NoMethodError (undefined method `phonenumber' for nil:NilClass): + +app/controllers/sms_sends_controller.rb:11:in `create' +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 14:21:51 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"YbEYYOk7AnsetreVrdtWND/ZsQhZEEORCa9lPMp22TxzKdMfp5Ssh35Hg1CMytSWxlsjQI+LMW4Twmckfj0evw==", "sms_send"=>{"mobile"=>"", "message"=>"i"}, "commit"=>"send"} + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:8 + SmsSend Create (0.3ms) INSERT INTO "sms_sends" ("message", "mobile", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["message", "i"], ["mobile", ""], ["created_at", "2018-09-21 11:21:51.403703"], ["updated_at", "2018-09-21 11:21:51.403703"]] + ↳ app/controllers/sms_sends_controller.rb:8 +  (98.4ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:8 + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" IS NULL LIMIT ? [["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:9 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:10 +  (0.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:10 +Completed 500 Internal Server Error in 137ms (ActiveRecord: 101.8ms) + + + +NoMethodError (undefined method `first_name' for nil:NilClass): + +app/controllers/sms_sends_controller.rb:11:in `create' +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 14:23:04 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"YbEYYOk7AnsetreVrdtWND/ZsQhZEEORCa9lPMp22TxzKdMfp5Ssh35Hg1CMytSWxlsjQI+LMW4Twmckfj0evw==", "sms_send"=>{"mobile"=>"", "message"=>"i"}, "commit"=>"send"} + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:8 + SmsSend Create (0.8ms) INSERT INTO "sms_sends" ("message", "mobile", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["message", "i"], ["mobile", ""], ["created_at", "2018-09-21 11:23:04.980769"], ["updated_at", "2018-09-21 11:23:04.980769"]] + ↳ app/controllers/sms_sends_controller.rb:8 +  (78.3ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:8 + Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" IS NULL LIMIT ? [["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:9 +  (0.0ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:10 +  (0.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:10 +Completed 500 Internal Server Error in 1252ms (ActiveRecord: 82.2ms) + + + +AfricasTalkingGatewayException (requirement failed: Please provide the phone numbers to send to): + +app/controllers/sms_sends_controller.rb:11:in `create' + Contact Load (0.6ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 14:27:02 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"YbEYYOk7AnsetreVrdtWND/ZsQhZEEORCa9lPMp22TxzKdMfp5Ssh35Hg1CMytSWxlsjQI+LMW4Twmckfj0evw==", "sms_send"=>{"mobile"=>"", "message"=>"i"}, "commit"=>"send"} + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:8 + SmsSend Create (0.8ms) INSERT INTO "sms_sends" ("message", "mobile", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["message", "i"], ["mobile", ""], ["created_at", "2018-09-21 11:27:02.410900"], ["updated_at", "2018-09-21 11:27:02.410900"]] + ↳ app/controllers/sms_sends_controller.rb:8 +  (102.3ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:8 + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" IS NULL LIMIT ? [["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:9 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:10 +  (0.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:10 +Completed 500 Internal Server Error in 143ms (ActiveRecord: 105.7ms) + + + +NoMethodError (undefined method `phonenumber' for nil:NilClass): + +app/controllers/sms_sends_controller.rb:11:in `create' +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 14:27:47 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"YbEYYOk7AnsetreVrdtWND/ZsQhZEEORCa9lPMp22TxzKdMfp5Ssh35Hg1CMytSWxlsjQI+LMW4Twmckfj0evw==", "sms_send"=>{"mobile"=>"", "message"=>"i"}, "commit"=>"send"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:8 + SmsSend Create (0.5ms) INSERT INTO "sms_sends" ("message", "mobile", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["message", "i"], ["mobile", ""], ["created_at", "2018-09-21 11:27:47.850157"], ["updated_at", "2018-09-21 11:27:47.850157"]] + ↳ app/controllers/sms_sends_controller.rb:8 +  (86.6ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:8 + Contact Load (0.4ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" IS NULL LIMIT ? [["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:9 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:10 +  (0.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:10 +Completed 500 Internal Server Error in 103ms (ActiveRecord: 88.2ms) + + + +NoMethodError (undefined method `phonenumber' for nil:NilClass): + +app/controllers/sms_sends_controller.rb:11:in `create' + Contact Load (0.5ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Started GET "/" for 127.0.0.1 at 2018-09-21 14:31:35 +0300 +Processing by ContactsController#index as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.4ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (14.8ms) +Completed 200 OK in 43ms (Views: 36.2ms | ActiveRecord: 1.0ms) + + +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 14:31:42 +0300 +Processing by SmsSendsController#new as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (3.2ms) +Completed 200 OK in 43ms (Views: 37.2ms | ActiveRecord: 0.5ms) + + +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 14:31:54 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"euyBp1FuimuwvY0KU05mfrUb1iaXt8FQkfw9QmQb10lRlWL/9m6sCc5jgi8L8RmRIRHesav/mHJKHSxGWcfykA==", "sms_send"=>{"mobile"=>"", "message"=>"yffnh"}, "commit"=>"send"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.2ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:8 + SmsSend Create (2.3ms) INSERT INTO "sms_sends" ("message", "mobile", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["message", "yffnh"], ["mobile", ""], ["created_at", "2018-09-21 11:31:54.424708"], ["updated_at", "2018-09-21 11:31:54.424708"]] + ↳ app/controllers/sms_sends_controller.rb:8 +  (130.2ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:8 + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" IS NULL LIMIT ? [["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:9 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:10 +  (0.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:10 +Completed 500 Internal Server Error in 151ms (ActiveRecord: 133.6ms) + + + +NoMethodError (undefined method `phonenumber' for nil:NilClass): + +app/controllers/sms_sends_controller.rb:11:in `create' +Started GET "/" for 127.0.0.1 at 2018-09-21 14:32:32 +0300 +Processing by ContactsController#index as HTML + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (4.6ms) +Completed 200 OK in 41ms (Views: 34.9ms | ActiveRecord: 0.8ms) + + +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 14:32:51 +0300 +Processing by SmsSendsController#new as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (2.1ms) +Completed 200 OK in 39ms (Views: 35.0ms | ActiveRecord: 0.4ms) + + +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 14:33:12 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"jrbtQWvp5yARoZMvLidFY1gwp4XrhYKjBGAEilDDKN6lzw4ZzOnBQm9/nAp2mDqMzDqvEtfN24HfgRWObR8NBw==", "sms_send"=>{"mobile"=>"", "message"=>""}, "commit"=>"send"} + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.2ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:8 + SmsSend Create (0.4ms) INSERT INTO "sms_sends" ("message", "mobile", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["message", ""], ["mobile", ""], ["created_at", "2018-09-21 11:33:12.409426"], ["updated_at", "2018-09-21 11:33:12.409426"]] + ↳ app/controllers/sms_sends_controller.rb:8 +  (119.4ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:8 + Contact Load (0.6ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" IS NULL LIMIT ? [["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:9 +  (0.2ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:10 +  (0.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:10 +Completed 500 Internal Server Error in 138ms (ActiveRecord: 121.2ms) + + + +NoMethodError (undefined method `phonenumber' for nil:NilClass): + +app/controllers/sms_sends_controller.rb:11:in `create' +Started GET "/" for 127.0.0.1 at 2018-09-21 14:34:27 +0300 +Processing by ContactsController#index as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (14.0ms) +Completed 200 OK in 66ms (Views: 35.8ms | ActiveRecord: 1.8ms) + + +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 14:34:29 +0300 +Processing by SmsSendsController#new as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (3.0ms) +Completed 200 OK in 49ms (Views: 29.1ms | ActiveRecord: 1.3ms) + + +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 14:34:31 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"dkTVfA4Ud16KGMtB4FzB6g40POOTTaGYKRLtALcoyA9dPTYkqRRRPPTGxGS4474Fmj40dK8F+Lry8/wEivTt1g==", "sms_send"=>{"mobile"=>"", "message"=>""}, "commit"=>"send"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:8 + SmsSend Create (1.1ms) INSERT INTO "sms_sends" ("message", "mobile", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["message", ""], ["mobile", ""], ["created_at", "2018-09-21 11:34:32.002190"], ["updated_at", "2018-09-21 11:34:32.002190"]] + ↳ app/controllers/sms_sends_controller.rb:8 +  (105.8ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:8 + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" IS NULL LIMIT ? [["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:9 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:11 +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 14:38:31 +0300 +Started GET "/" for 127.0.0.1 at 2018-09-21 14:38:31 +0300 +  (0.1ms) commit transaction +Processing by SmsSendsController#new as HTML +Processing by ContactsController#index as HTML + ↳ app/controllers/sms_sends_controller.rb:11 + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 500 Internal Server Error in 239476ms (ActiveRecord: 108.0ms) + + + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + + Rendering contacts/index.html.erb within layouts/application +NoMethodError (undefined method `phonenumber' for nil:NilClass): + Rendering sms_sends/new.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + + Rendered sms_sends/new.html.erb within layouts/application (1.4ms) + ↳ app/views/contacts/index.html.erb:14 +app/controllers/sms_sends_controller.rb:12:in `create' + Rendered contacts/index.html.erb within layouts/application (8.3ms) +Completed 200 OK in 117ms (Views: 105.1ms | ActiveRecord: 0.3ms) + + +Completed 200 OK in 133ms (Views: 121.6ms | ActiveRecord: 0.6ms) + + +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 14:38:36 +0300 +Processing by SmsSendsController#new as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (4.0ms) +Completed 200 OK in 58ms (Views: 32.9ms | ActiveRecord: 1.7ms) + + +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 14:38:40 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"a3tdY8IdM9F882Z3uVDL2IybZEWIufwJyHZBjFo7JXJAAr47ZR0VswItaVLh77Q3GJFs0rTxpSsTl1CIZ+cAqw==", "sms_send"=>{"mobile"=>"", "message"=>"h;io/;i"}, "commit"=>"send"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.4ms) + + + +NoMethodError (undefined method `contact_id' for nil:NilClass): + +app/controllers/sms_sends_controller.rb:8:in `create' +Started GET "/" for 127.0.0.1 at 2018-09-21 14:39:16 +0300 +Processing by ContactsController#index as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (23.1ms) +Completed 200 OK in 66ms (Views: 57.6ms | ActiveRecord: 2.1ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-21 14:43:34 +0300 +Processing by ContactsController#index as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.6ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (16.6ms) +Completed 200 OK in 63ms (Views: 40.8ms | ActiveRecord: 2.8ms) + + +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 14:43:35 +0300 +Processing by SmsSendsController#new as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" IS NULL LIMIT ? [["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:6 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (21.7ms) +Completed 200 OK in 80ms (Views: 55.8ms | ActiveRecord: 1.8ms) + + +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 14:43:39 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"XwmbRuIjCI3V7U2wMnXOOCj5+IbUiw2EdDMqLDXvJOZ0cHgeRSMu76szQpVqyrHXvPPwEejDVKav0jsoCDMBPw==", "sms_send"=>{"mobile"=>"", "contact_id"=>"", "message"=>"gyfy,"}, "commit"=>"send"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.4ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" IS NULL LIMIT ? [["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:9 +Unpermitted parameter: :contact_id +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:10 + SmsSend Create (0.5ms) INSERT INTO "sms_sends" ("message", "mobile", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["message", "gyfy,"], ["mobile", ""], ["created_at", "2018-09-21 11:43:39.844881"], ["updated_at", "2018-09-21 11:43:39.844881"]] + ↳ app/controllers/sms_sends_controller.rb:10 +  (209.8ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:10 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:11 +  (0.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:11 +Completed 500 Internal Server Error in 232ms (ActiveRecord: 211.3ms) + + + +NoMethodError (undefined method `phonenumber' for nil:NilClass): + +app/controllers/sms_sends_controller.rb:12:in `create' +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 14:44:21 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"JuueOe8zhl7cPAZMmbI5bbtKux1CtFSAHUwveH2KSAE0c1VGoZwoorzNMom4o7vPQsgpVZQvJn8HIS1gycGPgg==", "sms_send"=>{"mobile"=>"", "contact_id"=>"", "message"=>"gyfy,"}, "commit"=>"send"} + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Unpermitted parameter: :contact_id +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:8 + SmsSend Create (1.2ms) INSERT INTO "sms_sends" ("message", "mobile", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["message", "gyfy,"], ["mobile", ""], ["created_at", "2018-09-21 11:44:22.043282"], ["updated_at", "2018-09-21 11:44:22.043282"]] + ↳ app/controllers/sms_sends_controller.rb:8 +  (92.4ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:8 + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" IS NULL LIMIT ? [["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:9 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:10 +  (0.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:10 +Completed 500 Internal Server Error in 136ms (ActiveRecord: 96.4ms) + + + +NoMethodError (undefined method `phonenumber' for nil:NilClass): + +app/controllers/sms_sends_controller.rb:11:in `create' +Started GET "/sms_sends" for 127.0.0.1 at 2018-09-21 15:00:16 +0300 + +AbstractController::ActionNotFound (The action 'index' could not be found for SmsSendsController): + +actionpack (5.2.1) lib/abstract_controller/base.rb:129:in `process' +actionview (5.2.1) lib/action_view/rendering.rb:32:in `process' +actionpack (5.2.1) lib/action_controller/metal.rb:191:in `dispatch' +actionpack (5.2.1) lib/action_controller/metal.rb:252:in `dispatch' +actionpack (5.2.1) lib/action_dispatch/routing/route_set.rb:52:in `dispatch' +actionpack (5.2.1) lib/action_dispatch/routing/route_set.rb:34:in `serve' +actionpack (5.2.1) lib/action_dispatch/journey/router.rb:52:in `block in serve' +actionpack (5.2.1) lib/action_dispatch/journey/router.rb:35:in `each' +actionpack (5.2.1) lib/action_dispatch/journey/router.rb:35:in `serve' +actionpack (5.2.1) lib/action_dispatch/routing/route_set.rb:840:in `call' +warden (1.2.7) lib/warden/manager.rb:36:in `block in call' +warden (1.2.7) lib/warden/manager.rb:35:in `catch' +warden (1.2.7) lib/warden/manager.rb:35:in `call' +rack (2.0.5) lib/rack/tempfile_reaper.rb:15:in `call' +rack (2.0.5) lib/rack/etag.rb:25:in `call' +rack (2.0.5) lib/rack/conditional_get.rb:25:in `call' +rack (2.0.5) lib/rack/head.rb:12:in `call' +actionpack (5.2.1) lib/action_dispatch/http/content_security_policy.rb:18:in `call' +rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context' +rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/cookies.rb:670:in `call' +activerecord (5.2.1) lib/active_record/migration.rb:559:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call' +activesupport (5.2.1) lib/active_support/callbacks.rb:98:in `run_callbacks' +actionpack (5.2.1) lib/action_dispatch/middleware/callbacks.rb:26:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.1) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.1) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.1) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.1) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.1) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.1) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.5) lib/rack/method_override.rb:22:in `call' +rack (2.0.5) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.1) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.5) lib/rack/sendfile.rb:111:in `call' +railties (5.2.1) lib/rails/engine.rb:524:in `call' +puma (3.12.0) lib/puma/configuration.rb:225:in `call' +puma (3.12.0) lib/puma/server.rb:658:in `handle_request' +puma (3.12.0) lib/puma/server.rb:472:in `process_client' +puma (3.12.0) lib/puma/server.rb:332:in `block in run' +puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread' +Started GET "/" for 127.0.0.1 at 2018-09-21 15:00:23 +0300 +Processing by ContactsController#index as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (23.3ms) +Completed 200 OK in 90ms (Views: 48.1ms | ActiveRecord: 4.0ms) + + +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 15:00:25 +0300 +Processing by SmsSendsController#new as HTML + User Load (0.9ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (4.4ms) +Completed 200 OK in 62ms (Views: 34.8ms | ActiveRecord: 2.5ms) + + +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 15:00:28 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"tdeRlgUNMiSz+ns3meDHBWTehL7wefknN0hIIPm7/x2ernLOog0URs0kdBLBX7jq8NSMKcwxoAXsqVkkxGfaxA==", "sms_send"=>{"mobile"=>"", "contact_id"=>"", "message"=>"mb"}, "commit"=>"send"} + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.2ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:8 + SmsSend Create (2.8ms) INSERT INTO "sms_sends" ("message", "mobile", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["message", "mb"], ["mobile", ""], ["created_at", "2018-09-21 12:00:28.155595"], ["updated_at", "2018-09-21 12:00:28.155595"]] + ↳ app/controllers/sms_sends_controller.rb:8 +  (263.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:8 + Contact Load (0.5ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" IS NULL LIMIT ? [["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:9 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:10 +  (0.2ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:10 +Completed 500 Internal Server Error in 288ms (ActiveRecord: 267.4ms) + + + +NoMethodError (undefined method `phonenumber' for nil:NilClass): + +app/controllers/sms_sends_controller.rb:11:in `create' +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 15:01:33 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"6QqgztwNww5+Q8XZCOajs+oDTilSUq9a3MZlNgFA+UH7kmuxkqJt8h6y8Rwp9yERE4HcYYTJ3aXGq2cutQs+wg==", "sms_send"=>{"mobile"=>"", "contact_id"=>"", "message"=>"mb"}, "commit"=>"send"} + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:8 + SmsSend Create (1.2ms) INSERT INTO "sms_sends" ("message", "mobile", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["message", "mb"], ["mobile", ""], ["created_at", "2018-09-21 12:01:33.800037"], ["updated_at", "2018-09-21 12:01:33.800037"]] + ↳ app/controllers/sms_sends_controller.rb:8 +  (84.7ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:8 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:9 +  (0.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:9 + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" IS NULL LIMIT ? [["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:10 +Completed 500 Internal Server Error in 124ms (ActiveRecord: 88.3ms) + + + +NoMethodError (undefined method `phonenumber' for nil:NilClass): + +app/controllers/sms_sends_controller.rb:11:in `create' +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 15:02:20 +0300 + +SyntaxError (/home/getty/code/RailsGirlsCodeChallenge/app/controllers/sms_sends_controller.rb:11: syntax error, unexpected tIVAR, expecting '(' +16659a9").sendMessage(@at.@con.phonenumber, @at.message) + ^ +/home/getty/code/RailsGirlsCodeChallenge/app/controllers/sms_sends_controller.rb:11: syntax error, unexpected ')', expecting '=' +@con.phonenumber, @at.message) + ^ +/home/getty/code/RailsGirlsCodeChallenge/app/controllers/sms_sends_controller.rb:19: syntax error, unexpected end-of-input, expecting keyword_end): + +app/controllers/sms_sends_controller.rb:11: syntax error, unexpected tIVAR, expecting '(' +app/controllers/sms_sends_controller.rb:11: syntax error, unexpected ')', expecting '=' +app/controllers/sms_sends_controller.rb:19: syntax error, unexpected end-of-input, expecting keyword_end +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 15:02:45 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"6QqgztwNww5+Q8XZCOajs+oDTilSUq9a3MZlNgFA+UH7kmuxkqJt8h6y8Rwp9yERE4HcYYTJ3aXGq2cutQs+wg==", "sms_send"=>{"mobile"=>"", "contact_id"=>"", "message"=>"mb"}, "commit"=>"send"} + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:8 + SmsSend Create (0.4ms) INSERT INTO "sms_sends" ("message", "mobile", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["message", "mb"], ["mobile", ""], ["created_at", "2018-09-21 12:02:45.633873"], ["updated_at", "2018-09-21 12:02:45.633873"]] + ↳ app/controllers/sms_sends_controller.rb:8 +  (124.3ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:8 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:9 +  (0.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:9 + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" IS NULL LIMIT ? [["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:10 +Completed 500 Internal Server Error in 165ms (ActiveRecord: 127.5ms) + + + +NoMethodError (undefined method `phonenumber' for nil:NilClass): + +app/controllers/sms_sends_controller.rb:11:in `create' +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 15:04:06 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"6QqgztwNww5+Q8XZCOajs+oDTilSUq9a3MZlNgFA+UH7kmuxkqJt8h6y8Rwp9yERE4HcYYTJ3aXGq2cutQs+wg==", "sms_send"=>{"mobile"=>"", "contact_id"=>"", "message"=>"mb"}, "commit"=>"send"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:8 + SmsSend Create (1.4ms) INSERT INTO "sms_sends" ("message", "mobile", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["message", "mb"], ["mobile", ""], ["created_at", "2018-09-21 12:04:07.073612"], ["updated_at", "2018-09-21 12:04:07.073612"]] + ↳ app/controllers/sms_sends_controller.rb:8 +  (344.2ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:8 +  (0.2ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:9 +  (0.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:9 + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" IS NULL LIMIT ? [["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:10 +Completed 500 Internal Server Error in 388ms (ActiveRecord: 348.7ms) + + + +NoMethodError (undefined method `phonenumber' for nil:NilClass): + +app/controllers/sms_sends_controller.rb:11:in `create' +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 15:05:31 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"6QqgztwNww5+Q8XZCOajs+oDTilSUq9a3MZlNgFA+UH7kmuxkqJt8h6y8Rwp9yERE4HcYYTJ3aXGq2cutQs+wg==", "sms_send"=>{"mobile"=>"", "contact_id"=>"", "message"=>"mb"}, "commit"=>"send"} + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:8 + SmsSend Create (0.3ms) INSERT INTO "sms_sends" ("message", "mobile", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["message", "mb"], ["mobile", ""], ["created_at", "2018-09-21 12:05:31.645961"], ["updated_at", "2018-09-21 12:05:31.645961"]] + ↳ app/controllers/sms_sends_controller.rb:8 +  (97.3ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:8 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:9 +  (0.0ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:9 + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" IS NULL LIMIT ? [["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:10 +Completed 500 Internal Server Error in 137ms (ActiveRecord: 100.2ms) + + + +NoMethodError (undefined method `con' for # +Did you mean? clone): + +app/controllers/sms_sends_controller.rb:11:in `create' +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 15:05:55 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"6QqgztwNww5+Q8XZCOajs+oDTilSUq9a3MZlNgFA+UH7kmuxkqJt8h6y8Rwp9yERE4HcYYTJ3aXGq2cutQs+wg==", "sms_send"=>{"mobile"=>"", "contact_id"=>"", "message"=>"mb"}, "commit"=>"send"} + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:8 + SmsSend Create (0.3ms) INSERT INTO "sms_sends" ("message", "mobile", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["message", "mb"], ["mobile", ""], ["created_at", "2018-09-21 12:05:55.410148"], ["updated_at", "2018-09-21 12:05:55.410148"]] + ↳ app/controllers/sms_sends_controller.rb:8 +  (81.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:8 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:9 +  (0.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:9 + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" IS NULL LIMIT ? [["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:10 +Completed 500 Internal Server Error in 135ms (ActiveRecord: 84.3ms) + + + +NoMethodError (undefined method `phonenumber' for nil:NilClass): + +app/controllers/sms_sends_controller.rb:11:in `create' +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 15:09:40 +0300 +Processing by SmsSendsController#new as HTML + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (5.2ms) +Completed 200 OK in 54ms (Views: 46.3ms | ActiveRecord: 0.6ms) + + +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 15:09:53 +0300 +Processing by SmsSendsController#new as HTML + User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (3.3ms) +Completed 200 OK in 44ms (Views: 38.6ms | ActiveRecord: 0.8ms) + + +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 15:10:01 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"OcVFg87kzlNX0A4nbVOJhqa+Z1sPQB9bkc9iuHM3fVQrXY78gEtgrzchOuJMQgskXzz1E9nbbaSLomCgx3y61w==", "sms_send"=>{"mobile"=>"", "contact_id"=>"1", "message"=>"iii"}, "commit"=>"send"} + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:8 + SmsSend Create (1.8ms) INSERT INTO "sms_sends" ("message", "mobile", "created_at", "updated_at", "contact_id") VALUES (?, ?, ?, ?, ?) [["message", "iii"], ["mobile", ""], ["created_at", "2018-09-21 12:10:01.834546"], ["updated_at", "2018-09-21 12:10:01.834546"], ["contact_id", 1]] + ↳ app/controllers/sms_sends_controller.rb:8 +  (187.5ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:8 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:9 +  (0.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:9 + Contact Load (0.8ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:10 +No template found for SmsSendsController#create, rendering head :no_content +Completed 204 No Content in 2001ms (ActiveRecord: 191.9ms) + + +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-21 15:11:19 +0300 +Processing by SmsSendsController#new as HTML + User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (3.1ms) +Completed 200 OK in 51ms (Views: 44.5ms | ActiveRecord: 0.7ms) + + +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 15:11:24 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"EEycet7FscgBP/APIDXCKLgk6Kg7Ap2j+eFUU5wbLbwC1FcFkGofNGHOxMoBJECKQaZ64O2Z71zjjFZLKFDqPw==", "sms_send"=>{"mobile"=>"", "contact_id"=>"", "message"=>"ggggg"}, "commit"=>"send"} + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.2ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:8 + SmsSend Create (0.7ms) INSERT INTO "sms_sends" ("message", "mobile", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["message", "ggggg"], ["mobile", ""], ["created_at", "2018-09-21 12:11:24.453445"], ["updated_at", "2018-09-21 12:11:24.453445"]] + ↳ app/controllers/sms_sends_controller.rb:8 +  (193.6ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:8 +  (0.2ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:9 +  (0.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:9 + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" IS NULL LIMIT ? [["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:10 +Completed 500 Internal Server Error in 213ms (ActiveRecord: 195.4ms) + + + +NoMethodError (undefined method `phonenumber' for nil:NilClass): + +app/controllers/sms_sends_controller.rb:11:in `create' +Started GET "/" for 127.0.0.1 at 2018-09-21 15:11:33 +0300 +Processing by ContactsController#index as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (5.1ms) +Completed 200 OK in 39ms (Views: 31.6ms | ActiveRecord: 0.6ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-21 15:15:04 +0300 +Processing by ContactsController#index as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (13.2ms) +Completed 200 OK in 58ms (Views: 37.4ms | ActiveRecord: 1.8ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-21 15:15:55 +0300 +Processing by ContactsController#index as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (22.8ms) +Completed 200 OK in 96ms (Views: 62.0ms | ActiveRecord: 2.5ms) + + +Started GET "/sms_sends/new?id=1" for 127.0.0.1 at 2018-09-21 15:15:56 +0300 +Processing by SmsSendsController#new as HTML + Parameters: {"id"=>"1"} + User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:6 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (3.5ms) +Completed 200 OK in 72ms (Views: 30.5ms | ActiveRecord: 2.0ms) + + +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 15:16:02 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"smA7p6ajTaztEOte0blFPy0VusM7+u1un5xaAJeeI4SZGdj/AaNrzpPO5HuJBjrQuR+yVAeytExEfUsEqkIGXQ==", "sms_send"=>{"mobile"=>"", "contact_id"=>"", "message"=>"gUDISAG"}, "commit"=>"send"} + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.2ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:9 + SmsSend Create (2.9ms) INSERT INTO "sms_sends" ("message", "mobile", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["message", "gUDISAG"], ["mobile", ""], ["created_at", "2018-09-21 12:16:02.278193"], ["updated_at", "2018-09-21 12:16:02.278193"]] + ↳ app/controllers/sms_sends_controller.rb:9 +  (236.5ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:9 +  (0.2ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:10 +  (0.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:10 + Contact Load (0.5ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" IS NULL LIMIT ? [["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:11 +Completed 500 Internal Server Error in 261ms (ActiveRecord: 241.0ms) + + + +NoMethodError (undefined method `phonenumber' for nil:NilClass): + +app/controllers/sms_sends_controller.rb:12:in `create' +Started GET "/" for 127.0.0.1 at 2018-09-21 15:16:49 +0300 +Processing by ContactsController#index as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (6.1ms) +Completed 200 OK in 37ms (Views: 33.1ms | ActiveRecord: 0.6ms) + + +Started GET "/sms_sends/new?id=1" for 127.0.0.1 at 2018-09-21 15:16:51 +0300 +Processing by SmsSendsController#new as HTML + Parameters: {"id"=>"1"} + User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:6 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (3.2ms) +Completed 200 OK in 44ms (Views: 36.0ms | ActiveRecord: 1.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-21 15:18:30 +0300 +Processing by ContactsController#index as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (14.2ms) +Completed 200 OK in 54ms (Views: 33.4ms | ActiveRecord: 2.3ms) + + +Started GET "/sms_sends/new?id=1" for 127.0.0.1 at 2018-09-21 15:18:31 +0300 +Processing by SmsSendsController#new as HTML + Parameters: {"id"=>"1"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:6 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (3.6ms) +Completed 200 OK in 59ms (Views: 32.4ms | ActiveRecord: 1.8ms) + + +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 15:18:37 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"yqwU/sbfK5JI3rVGhgWpPXOmD4QnwRLU84xfNMVFrPrh1femYd8N8DYAumPeutbS56wHExuJS/YobU4w+JmJIw==", "sms_send"=>{"mobile"=>"", "contact_id"=>"", "message"=>"tttttth rxs"}, "commit"=>"send"} + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:9 + SmsSend Create (0.5ms) INSERT INTO "sms_sends" ("message", "mobile", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["message", "tttttth rxs"], ["mobile", ""], ["created_at", "2018-09-21 12:18:37.381445"], ["updated_at", "2018-09-21 12:18:37.381445"]] + ↳ app/controllers/sms_sends_controller.rb:9 +  (211.3ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:9 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:10 +  (0.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:10 + Contact Load (0.4ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" IS NULL LIMIT ? [["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:11 +Completed 500 Internal Server Error in 230ms (ActiveRecord: 212.8ms) + + + +NoMethodError (undefined method `phonenumber' for nil:NilClass): + +app/controllers/sms_sends_controller.rb:12:in `create' +Started GET "/" for 127.0.0.1 at 2018-09-21 15:19:47 +0300 +Processing by ContactsController#index as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.5ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (5.7ms) +Completed 200 OK in 37ms (Views: 31.4ms | ActiveRecord: 1.0ms) + + +Started GET "/sms_sends/new?id=2" for 127.0.0.1 at 2018-09-21 15:19:50 +0300 +Processing by SmsSendsController#new as HTML + Parameters: {"id"=>"2"} + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:6 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (2.6ms) +Completed 200 OK in 50ms (Views: 42.7ms | ActiveRecord: 0.9ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-21 15:21:55 +0300 +Processing by ContactsController#index as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (13.3ms) +Completed 200 OK in 59ms (Views: 36.3ms | ActiveRecord: 2.0ms) + + +Started GET "/sms_sends/new?id=1" for 127.0.0.1 at 2018-09-21 15:22:02 +0300 +Processing by SmsSendsController#new as HTML + Parameters: {"id"=>"1"} + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:6 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (3.5ms) +Completed 500 Internal Server Error in 30ms (ActiveRecord: 2.1ms) + + + +ActionView::Template::Error (undefined method `id' for nil:NilClass): + 1: <%= form_for @at, url: {action: "create"} do |f|%> + 2: mobile Number: <%= f.text_field :mobile%> + 3: <%= f.hidden_field @con.id%> + 4: message: <%= f.text_field :message%> + 5: <%= f.submit "send" %> + 6: <% end %> + +app/views/sms_sends/new.html.erb:3:in `block in _app_views_sms_sends_new_html_erb___2712996669419294904_38081160' +app/views/sms_sends/new.html.erb:1:in `_app_views_sms_sends_new_html_erb___2712996669419294904_38081160' +Started GET "/" for 127.0.0.1 at 2018-09-21 15:24:53 +0300 +Processing by ContactsController#index as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (11.2ms) +Completed 200 OK in 75ms (Views: 68.9ms | ActiveRecord: 0.6ms) + + +Started GET "/sms_sends/new?id=1" for 127.0.0.1 at 2018-09-21 15:24:59 +0300 +Processing by SmsSendsController#new as HTML + Parameters: {"id"=>"1"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:6 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (6.7ms) +Completed 200 OK in 59ms (Views: 50.2ms | ActiveRecord: 0.8ms) + + +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 15:25:06 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"AyZUrEuVX3LZWjy3VuQBFaH5PE/Uj6jJ03Unqb444AYoX7f07JV5EKeEM5IOW376NfM02OjH8esIlDatg+TF3w==", "sms_send"=>{"mobile"=>"", "contact_id"=>"", "message"=>"iii"}, "commit"=>"send"} + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.2ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:9 + SmsSend Create (0.6ms) INSERT INTO "sms_sends" ("message", "mobile", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["message", "iii"], ["mobile", ""], ["created_at", "2018-09-21 12:25:06.957873"], ["updated_at", "2018-09-21 12:25:06.957873"]] + ↳ app/controllers/sms_sends_controller.rb:9 +  (352.0ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:9 + Contact Load (0.6ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" IS NULL LIMIT ? [["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:10 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:11 +  (0.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:11 +Completed 500 Internal Server Error in 376ms (ActiveRecord: 353.9ms) + + + +NoMethodError (undefined method `phonenumber' for nil:NilClass): + +app/controllers/sms_sends_controller.rb:12:in `create' +Started GET "/sms_sends/new?id=1" for 127.0.0.1 at 2018-09-21 15:26:03 +0300 +Processing by SmsSendsController#new as HTML + Parameters: {"id"=>"1"} + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:6 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (2.4ms) +Completed 200 OK in 60ms (Views: 21.9ms | ActiveRecord: 2.7ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-21 15:26:06 +0300 +Processing by ContactsController#index as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (5.1ms) +Completed 200 OK in 35ms (Views: 29.7ms | ActiveRecord: 0.6ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-21 15:26:08 +0300 +Processing by ContactsController#index as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (5.1ms) +Completed 200 OK in 50ms (Views: 42.2ms | ActiveRecord: 0.7ms) + + +Started GET "/sms_sends/new?id=1" for 127.0.0.1 at 2018-09-21 15:26:12 +0300 +Processing by SmsSendsController#new as HTML + Parameters: {"id"=>"1"} + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:6 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (1.6ms) +Completed 200 OK in 30ms (Views: 26.6ms | ActiveRecord: 0.3ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-21 15:30:46 +0300 +Processing by ContactsController#index as HTML + User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (4.9ms) +Completed 200 OK in 53ms (Views: 43.2ms | ActiveRecord: 0.9ms) + + +Started GET "/sms_sends/new?id=1" for 127.0.0.1 at 2018-09-21 15:32:42 +0300 +Processing by SmsSendsController#new as HTML + Parameters: {"id"=>"1"} + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:6 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (3.6ms) +Completed 500 Internal Server Error in 15ms (ActiveRecord: 0.7ms) + + + +ActionView::Template::Error (First argument in form cannot contain nil or be empty): + 1: <%= form_for @at.contact_id, url: {action: "create"} do |f|%> + 2: mobile Number: <%= f.text_field :mobile%> + 3: kondakti: <%= f.text_field :contact_id%> + 4: message: <%= f.text_field :message%> + +app/views/sms_sends/new.html.erb:1:in `_app_views_sms_sends_new_html_erb___2712996669419294904_69981298281380' +Started GET "/" for 127.0.0.1 at 2018-09-21 15:32:58 +0300 +Processing by ContactsController#index as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (5.9ms) +Completed 200 OK in 48ms (Views: 44.5ms | ActiveRecord: 0.5ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-21 15:33:01 +0300 +Processing by ContactsController#index as HTML + User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (5.2ms) +Completed 200 OK in 46ms (Views: 38.7ms | ActiveRecord: 1.0ms) + + +Started GET "/sms_sends/new?id=1" for 127.0.0.1 at 2018-09-21 15:33:04 +0300 +Processing by SmsSendsController#new as HTML + Parameters: {"id"=>"1"} + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:6 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (2.4ms) +Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.5ms) + + + +ActionView::Template::Error (First argument in form cannot contain nil or be empty): + 1: <%= form_for @at.contact_id, url: {action: "create"} do |f|%> + 2: mobile Number: <%= f.text_field :mobile%> + 3: kondakti: <%= f.text_field :contact_id%> + 4: message: <%= f.text_field :message%> + +app/views/sms_sends/new.html.erb:1:in `_app_views_sms_sends_new_html_erb___2712996669419294904_69981253211900' +Started GET "/" for 127.0.0.1 at 2018-09-21 15:33:16 +0300 +Processing by ContactsController#index as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.7ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (6.1ms) +Completed 200 OK in 38ms (Views: 32.6ms | ActiveRecord: 1.0ms) + + +Started GET "/sms_sends/new?id=1" for 127.0.0.1 at 2018-09-21 15:33:18 +0300 +Processing by SmsSendsController#new as HTML + Parameters: {"id"=>"1"} + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:6 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (2.0ms) +Completed 200 OK in 32ms (Views: 27.5ms | ActiveRecord: 0.5ms) + + +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 15:33:24 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"JwWYg/yoVgPpjsCVDYBDioh1C0epioPIgPo7TEnyYj4MfHvbW6hwYZdQz7BVPzxlHH8D0JXC2upbGypIdC5H5w==", "sms_send"=>{"mobile"=>"", "contact_id"=>"", "message"=>"iii"}, "commit"=>"send"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.2ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:9 + SmsSend Create (0.7ms) INSERT INTO "sms_sends" ("message", "mobile", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["message", "iii"], ["mobile", ""], ["created_at", "2018-09-21 12:33:24.712200"], ["updated_at", "2018-09-21 12:33:24.712200"]] + ↳ app/controllers/sms_sends_controller.rb:9 +  (181.2ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:9 +  (0.2ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:10 +  (0.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:10 + Contact Load (0.9ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" IS NULL LIMIT ? [["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:11 +Completed 500 Internal Server Error in 208ms (ActiveRecord: 183.7ms) + + + +NoMethodError (undefined method `phonenumber' for nil:NilClass): + +app/controllers/sms_sends_controller.rb:12:in `create' +Started GET "/" for 127.0.0.1 at 2018-09-21 15:38:26 +0300 +Processing by ContactsController#index as HTML + User Load (1.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 30ms (Views: 25.3ms | ActiveRecord: 1.3ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-21 15:38:28 +0300 +Processing by ContactsController#index as HTML + User Load (1.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (4.9ms) +Completed 200 OK in 53ms (Views: 43.8ms | ActiveRecord: 1.6ms) + + +Started GET "/sms_sends/new?id=1" for 127.0.0.1 at 2018-09-21 15:38:29 +0300 +Processing by SmsSendsController#new as HTML + Parameters: {"id"=>"1"} + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:6 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (3.0ms) +Completed 200 OK in 54ms (Views: 47.4ms | ActiveRecord: 0.8ms) + + +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 15:39:08 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"RWvT/Zk9wHDyilkaPPuIZdFIgP9PIZOnChu30MhZNe9uEjClPj3mEoxUVj9kRPeKRUKIaHNpyoXR+qbU9YUQNg==", "sms_send"=>{"mobile"=>"", "contact_id"=>"", "message"=>"77vjf"}, "commit"=>"send"} + User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:9 + SmsSend Create (0.5ms) INSERT INTO "sms_sends" ("message", "mobile", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["message", "77vjf"], ["mobile", ""], ["created_at", "2018-09-21 12:39:08.554046"], ["updated_at", "2018-09-21 12:39:08.554046"]] + ↳ app/controllers/sms_sends_controller.rb:9 +  (192.0ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:9 +  (0.3ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:10 +  (0.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:10 + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" IS NULL LIMIT ? [["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:11 +Completed 500 Internal Server Error in 209ms (ActiveRecord: 194.0ms) + + + +NoMethodError (undefined method `phonenumber' for nil:NilClass): + +app/controllers/sms_sends_controller.rb:12:in `create' +Started GET "/" for 127.0.0.1 at 2018-09-21 15:39:17 +0300 +Processing by ContactsController#index as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (4.0ms) +Completed 200 OK in 29ms (Views: 25.0ms | ActiveRecord: 0.5ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-21 15:39:43 +0300 +Processing by ContactsController#index as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (5.0ms) +Completed 200 OK in 43ms (Views: 34.8ms | ActiveRecord: 0.6ms) + + +Started GET "/sms_sends/new?id=1" for 127.0.0.1 at 2018-09-21 15:39:44 +0300 +Processing by SmsSendsController#new as HTML + Parameters: {"id"=>"1"} + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:6 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (291.7ms) +Completed 500 Internal Server Error in 305ms (ActiveRecord: 0.8ms) + + + +ActionView::Template::Error (undefined local variable or method `contact' for #<#:0x007f4b94af0758> +Did you mean? @contact + concat): + 1: <%= form_for @at, url: {action: "create"} do |f|%> + 2: mobile Number: <%= f.text_field :mobile%> + 3: kondakti: <%= f.text_field :contact_id, :value => contact.id%> + 4: message: <%= f.text_field :message%> + 5: <%= f.submit "send" %> + 6: <% end %> + +app/views/sms_sends/new.html.erb:3:in `block in _app_views_sms_sends_new_html_erb___2712996669419294904_69981296888000' +app/views/sms_sends/new.html.erb:1:in `_app_views_sms_sends_new_html_erb___2712996669419294904_69981296888000' +Started GET "/" for 127.0.0.1 at 2018-09-21 15:40:43 +0300 +Processing by ContactsController#index as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (6.9ms) +Completed 200 OK in 51ms (Views: 44.0ms | ActiveRecord: 0.8ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-21 15:40:45 +0300 +Processing by ContactsController#index as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (4.5ms) +Completed 200 OK in 46ms (Views: 39.6ms | ActiveRecord: 0.7ms) + + +Started GET "/sms_sends/new?id=1" for 127.0.0.1 at 2018-09-21 15:40:45 +0300 +Processing by SmsSendsController#new as HTML + Parameters: {"id"=>"1"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:6 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (7.0ms) +Completed 500 Internal Server Error in 18ms (ActiveRecord: 0.6ms) + + + +ActionView::Template::Error (undefined method `contact_id' for nil:NilClass): + 1: <%= form_for @at, url: {action: "create"} do |f|%> + 2: mobile Number: <%= f.text_field :mobile%> + 3: kondakti: <%= f.text_field :contact_id, :value => @con.contact_id%> + 4: message: <%= f.text_field :message%> + 5: <%= f.submit "send" %> + 6: <% end %> + +app/views/sms_sends/new.html.erb:3:in `block in _app_views_sms_sends_new_html_erb___2712996669419294904_69980925458660' +app/views/sms_sends/new.html.erb:1:in `_app_views_sms_sends_new_html_erb___2712996669419294904_69980925458660' +Started GET "/" for 127.0.0.1 at 2018-09-21 15:41:01 +0300 +Processing by ContactsController#index as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (3.6ms) +Completed 200 OK in 37ms (Views: 32.7ms | ActiveRecord: 0.5ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-21 15:41:02 +0300 +Processing by ContactsController#index as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (4.2ms) +Completed 200 OK in 46ms (Views: 39.1ms | ActiveRecord: 0.7ms) + + +Started GET "/sms_sends/new?id=1" for 127.0.0.1 at 2018-09-21 15:41:03 +0300 +Processing by SmsSendsController#new as HTML + Parameters: {"id"=>"1"} + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:6 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (3.2ms) +Completed 200 OK in 51ms (Views: 44.4ms | ActiveRecord: 0.8ms) + + +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 15:41:10 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"syJFRMXCo2NhzyPhsHk4jkcEGHLVdVGFlMSA/c75GSeYW6YcYsKFAR8RLMToxkdh0w4Q5ek9CKdPJZH58yU8/g==", "sms_send"=>{"mobile"=>"", "contact_id"=>"", "message"=>"iii"}, "commit"=>"send"} + User Load (2.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:9 + SmsSend Create (0.7ms) INSERT INTO "sms_sends" ("message", "mobile", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["message", "iii"], ["mobile", ""], ["created_at", "2018-09-21 12:41:10.986729"], ["updated_at", "2018-09-21 12:41:10.986729"]] + ↳ app/controllers/sms_sends_controller.rb:9 +  (162.6ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:9 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:10 +  (0.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:10 + Contact Load (0.7ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" IS NULL LIMIT ? [["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:11 +Completed 500 Internal Server Error in 188ms (ActiveRecord: 166.5ms) + + + +NoMethodError (undefined method `phonenumber' for nil:NilClass): + +app/controllers/sms_sends_controller.rb:12:in `create' +Started GET "/" for 127.0.0.1 at 2018-09-21 15:41:17 +0300 +Processing by ContactsController#index as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (3.6ms) +Completed 200 OK in 36ms (Views: 31.5ms | ActiveRecord: 0.6ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-21 15:42:22 +0300 +Processing by ContactsController#index as HTML + User Load (0.9ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (4.7ms) +Completed 200 OK in 60ms (Views: 50.4ms | ActiveRecord: 1.1ms) + + +Started GET "/sms_sends/new?id=1" for 127.0.0.1 at 2018-09-21 15:42:24 +0300 +Processing by SmsSendsController#new as HTML + Parameters: {"id"=>"1"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:6 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (11.4ms) +Completed 500 Internal Server Error in 21ms (ActiveRecord: 0.5ms) + + + +ActionView::Template::Error (undefined method `' for #): + 1: <%= form_for @at, url: {action: "create"} do |f|%> + 2: mobile Number: <%= f.text_field :mobile%> + 3: kondakti: <%= f.text_field @at.contact_id%> + 4: message: <%= f.text_field :message%> + 5: <%= f.submit "send" %> + 6: <% end %> + +app/views/sms_sends/new.html.erb:3:in `block in _app_views_sms_sends_new_html_erb___2712996669419294904_69981296589820' +app/views/sms_sends/new.html.erb:1:in `_app_views_sms_sends_new_html_erb___2712996669419294904_69981296589820' +Started GET "/" for 127.0.0.1 at 2018-09-21 15:43:05 +0300 +Processing by ContactsController#index as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.7ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (6.1ms) +Completed 200 OK in 42ms (Views: 36.1ms | ActiveRecord: 1.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-21 15:43:07 +0300 +Processing by ContactsController#index as HTML + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (4.9ms) +Completed 200 OK in 83ms (Views: 76.8ms | ActiveRecord: 0.8ms) + + +Started GET "/sms_sends/new?id=1" for 127.0.0.1 at 2018-09-21 15:43:09 +0300 +Processing by SmsSendsController#new as HTML + Parameters: {"id"=>"1"} + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:6 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (3.3ms) +Completed 200 OK in 38ms (Views: 32.9ms | ActiveRecord: 0.6ms) + + +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 15:43:13 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"0AmGiKjlhn4YVudhfwyHsODgiu1z4pL7zSQe9IoiTUb7cGXQD+WgHGaI6EQns/hfdOqCek+qy9kWxQ/wt/5onw==", "sms_send"=>{"mobile"=>"", "contact_id"=>"", "message"=>"iii"}, "commit"=>"send"} + User Load (0.9ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:9 + SmsSend Create (1.4ms) INSERT INTO "sms_sends" ("message", "mobile", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["message", "iii"], ["mobile", ""], ["created_at", "2018-09-21 12:43:13.857092"], ["updated_at", "2018-09-21 12:43:13.857092"]] + ↳ app/controllers/sms_sends_controller.rb:9 +  (144.9ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:9 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:10 +  (0.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:10 + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" IS NULL LIMIT ? [["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:11 +Completed 500 Internal Server Error in 169ms (ActiveRecord: 147.9ms) + + + +NoMethodError (undefined method `phonenumber' for nil:NilClass): + +app/controllers/sms_sends_controller.rb:12:in `create' +Started GET "/" for 127.0.0.1 at 2018-09-21 15:48:22 +0300 +Processing by ContactsController#index as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (6.4ms) +Completed 200 OK in 44ms (Views: 38.3ms | ActiveRecord: 0.7ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-21 15:48:24 +0300 +Processing by ContactsController#index as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (6.2ms) +Completed 200 OK in 52ms (Views: 45.4ms | ActiveRecord: 0.7ms) + + +Started GET "/sms_sends/new?id=1" for 127.0.0.1 at 2018-09-21 15:48:25 +0300 +Processing by SmsSendsController#new as HTML + Parameters: {"id"=>"1"} + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:6 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (262.6ms) +Completed 500 Internal Server Error in 269ms (ActiveRecord: 0.4ms) + + + +ActionView::Template::Error (undefined local variable or method `contact' for #<#:0x007f4b6820e008> +Did you mean? @contact + concat): + 1: <%= form_for @at, url: {action: "create"} do |f|%> + 2: mobile Number: <%= f.text_field :mobile%> + 3: kondakti: <%= f.text_field :contact_id, :value => contact.id%> + 4: message: <%= f.text_field :message%> + 5: <%= f.submit "send" %> + 6: <% end %> + +app/views/sms_sends/new.html.erb:3:in `block in _app_views_sms_sends_new_html_erb___2712996669419294904_69980923131160' +app/views/sms_sends/new.html.erb:1:in `_app_views_sms_sends_new_html_erb___2712996669419294904_69980923131160' +Started GET "/" for 127.0.0.1 at 2018-09-21 15:48:39 +0300 +Processing by ContactsController#index as HTML + User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (4.4ms) +Completed 200 OK in 44ms (Views: 36.9ms | ActiveRecord: 1.3ms) + + +Started GET "/sms_sends/new?id=1" for 127.0.0.1 at 2018-09-21 15:48:41 +0300 +Processing by SmsSendsController#new as HTML + Parameters: {"id"=>"1"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:6 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (4.1ms) +Completed 200 OK in 43ms (Views: 37.3ms | ActiveRecord: 0.6ms) + + +Started GET "/sms_sends/new?id=2" for 127.0.0.1 at 2018-09-21 15:48:46 +0300 +Processing by SmsSendsController#new as HTML + Parameters: {"id"=>"2"} + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:6 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (3.3ms) +Completed 200 OK in 42ms (Views: 35.0ms | ActiveRecord: 0.8ms) + + +Started GET "/sms_sends/new?id=2" for 127.0.0.1 at 2018-09-21 15:49:13 +0300 +Processing by SmsSendsController#new as HTML + Parameters: {"id"=>"2"} + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:6 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (4.7ms) +Completed 200 OK in 52ms (Views: 45.3ms | ActiveRecord: 0.8ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-21 15:49:16 +0300 +Processing by ContactsController#index as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (6.0ms) +Completed 200 OK in 52ms (Views: 47.4ms | ActiveRecord: 0.7ms) + + +Started GET "/sms_sends/new?id=1" for 127.0.0.1 at 2018-09-21 15:49:18 +0300 +Processing by SmsSendsController#new as HTML + Parameters: {"id"=>"1"} + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:6 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (1.8ms) +Completed 200 OK in 29ms (Views: 25.1ms | ActiveRecord: 0.4ms) + + +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 15:49:22 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"CXf+/yAUQOgIbJSFfzo0XrgtpEJh1Tljyk+hSEexZZoiDh2nhxRminaym6AnhUuxLCes1V2dYEERrrBMem1AQw==", "sms_send"=>{"contact_id"=>"1", "message"=>"jsuis sdugsdu"}, "commit"=>"send"} + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:9 + SmsSend Create (0.5ms) INSERT INTO "sms_sends" ("message", "created_at", "updated_at", "contact_id") VALUES (?, ?, ?, ?) [["message", "jsuis sdugsdu"], ["created_at", "2018-09-21 12:49:22.135969"], ["updated_at", "2018-09-21 12:49:22.135969"], ["contact_id", 1]] + ↳ app/controllers/sms_sends_controller.rb:9 +  (164.5ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:9 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:10 +  (0.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:10 + Contact Load (0.5ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:11 +No template found for SmsSendsController#create, rendering head :no_content +Completed 204 No Content in 1907ms (ActiveRecord: 166.2ms) + + +Started GET "/sms_sends/new?id=1" for 127.0.0.1 at 2018-09-21 15:49:47 +0300 +Processing by SmsSendsController#new as HTML + Parameters: {"id"=>"1"} + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:6 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (2.2ms) +Completed 200 OK in 37ms (Views: 31.8ms | ActiveRecord: 0.5ms) + + +Started GET "/sms_sends/new?id=2" for 127.0.0.1 at 2018-09-21 15:49:54 +0300 +Processing by SmsSendsController#new as HTML + Parameters: {"id"=>"2"} + User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.4ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:6 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (4.2ms) +Completed 200 OK in 64ms (Views: 53.9ms | ActiveRecord: 1.1ms) + + +Started GET "/sms_sends/new?id=1" for 127.0.0.1 at 2018-09-21 15:50:44 +0300 +Processing by SmsSendsController#new as HTML + Parameters: {"id"=>"1"} + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:6 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (3.2ms) +Completed 200 OK in 38ms (Views: 30.2ms | ActiveRecord: 0.7ms) + + +Started GET "/sms_sends/new?id=1" for 127.0.0.1 at 2018-09-21 15:53:08 +0300 +Processing by SmsSendsController#new as HTML + Parameters: {"id"=>"1"} + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:6 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (3.7ms) +Completed 200 OK in 42ms (Views: 34.3ms | ActiveRecord: 0.8ms) + + +Started GET "/sms_sends/new?id=1" for 127.0.0.1 at 2018-09-21 15:53:28 +0300 +Processing by SmsSendsController#new as HTML + Parameters: {"id"=>"1"} + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.5ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:6 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (3.6ms) +Completed 200 OK in 48ms (Views: 38.2ms | ActiveRecord: 1.2ms) + + +Started GET "/sms_sends/new?id=1" for 127.0.0.1 at 2018-09-21 15:53:38 +0300 +Processing by SmsSendsController#new as HTML + Parameters: {"id"=>"1"} + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:6 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (3.4ms) +Completed 200 OK in 50ms (Views: 41.2ms | ActiveRecord: 0.7ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-21 15:58:49 +0300 +Processing by ContactsController#index as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (11.3ms) +Completed 200 OK in 51ms (Views: 30.7ms | ActiveRecord: 1.9ms) + + +Started GET "/sms_sends/new?id=1" for 127.0.0.1 at 2018-09-21 15:58:58 +0300 +Processing by SmsSendsController#new as HTML + Parameters: {"id"=>"1"} + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (1.0ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:6 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (2.4ms) +Completed 200 OK in 52ms (Views: 27.0ms | ActiveRecord: 3.4ms) + + +Started GET "/sms_sends/new?id=1" for 127.0.0.1 at 2018-09-21 15:59:13 +0300 +Processing by SmsSendsController#new as HTML + Parameters: {"id"=>"1"} + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:6 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (3.9ms) +Completed 200 OK in 50ms (Views: 41.2ms | ActiveRecord: 0.8ms) + + +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 15:59:22 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"0LgBrjy4somdVwSAGchTB9xiKMwynLINCiAs2Tx2syH7weL2m7iU6+OJC6VBdyzoSGggWw7U6y/RwT3dAaqW+A==", "sms_send"=>{"contact_id"=>"1", "message"=>"yjfymj"}, "commit"=>"send"} + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:9 + SmsSend Create (1.0ms) INSERT INTO "sms_sends" ("message", "created_at", "updated_at", "contact_id") VALUES (?, ?, ?, ?) [["message", "yjfymj"], ["created_at", "2018-09-21 12:59:22.964871"], ["updated_at", "2018-09-21 12:59:22.964871"], ["contact_id", 1]] + ↳ app/controllers/sms_sends_controller.rb:9 +  (277.8ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:9 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:10 +  (0.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:10 + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/controllers/sms_sends_controller.rb:13 +No template found for SmsSendsController#create, rendering head :no_content +Completed 204 No Content in 2528ms (ActiveRecord: 279.8ms) + + +Started GET "/sms_sends/new?id=1" for 127.0.0.1 at 2018-09-21 16:05:15 +0300 +Processing by SmsSendsController#new as HTML + Parameters: {"id"=>"1"} + User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.4ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:6 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (2.8ms) +Completed 500 Internal Server Error in 15ms (ActiveRecord: 1.2ms) + + + +ActionView::Template::Error (wrong number of arguments (given 1, expected 0)): + 1: <%= form_for @at, url: {action: "create"} do |f|%> + 2:

Message <%= @contact.first_name @contact.last_name%>

+ 3: <%= f.hidden_field :contact_id, :value => @contact.id%> + 4: message: <%= f.text_field :message%> + 5: <%= f.submit "send" %> + +app/views/sms_sends/new.html.erb:2:in `block in _app_views_sms_sends_new_html_erb___2712996669419294904_69980927417800' +app/views/sms_sends/new.html.erb:1:in `_app_views_sms_sends_new_html_erb___2712996669419294904_69980927417800' +Started GET "/sms_sends/new?id=1" for 127.0.0.1 at 2018-09-21 16:05:50 +0300 +Processing by SmsSendsController#new as HTML + Parameters: {"id"=>"1"} + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:6 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (3.6ms) +Completed 200 OK in 72ms (Views: 60.0ms | ActiveRecord: 0.9ms) + + +Started GET "/sms_sends/new?id=1" for 127.0.0.1 at 2018-09-21 16:06:22 +0300 +Processing by SmsSendsController#new as HTML + Parameters: {"id"=>"1"} + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.5ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:6 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (2.7ms) +Completed 200 OK in 52ms (Views: 42.0ms | ActiveRecord: 1.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-21 16:06:33 +0300 +Processing by ContactsController#index as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.4ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 38ms (Views: 33.2ms | ActiveRecord: 0.8ms) + + +Started GET "/sms_sends/new?id=2" for 127.0.0.1 at 2018-09-21 16:06:35 +0300 +Processing by SmsSendsController#new as HTML + Parameters: {"id"=>"2"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:6 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (2.4ms) +Completed 200 OK in 40ms (Views: 33.1ms | ActiveRecord: 0.6ms) + + +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 16:07:54 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"icafdEhfP4AQE4VLDL0MrJGABN+IEC1p4i/arUOVGJWiv3ws718Z4m7Nim5UAnNDBYoMSLRYdEs5zsupfkk9TA==", "sms_send"=>{"contact_id"=>"2", "message"=>"fuck up"}, "commit"=>"send"} + User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:9 + SmsSend Create (2.5ms) INSERT INTO "sms_sends" ("message", "created_at", "updated_at", "contact_id") VALUES (?, ?, ?, ?) [["message", "fuck up"], ["created_at", "2018-09-21 13:07:54.610829"], ["updated_at", "2018-09-21 13:07:54.610829"], ["contact_id", 2]] + ↳ app/controllers/sms_sends_controller.rb:9 +  (221.6ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:9 +  (0.2ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:10 +  (0.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:10 + Contact Load (0.4ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/controllers/sms_sends_controller.rb:13 +Completed 500 Internal Server Error in 243ms (ActiveRecord: 226.1ms) + + + +SocketError (Failed to open TCP connection to api.africastalking.com:443 (getaddrinfo: Temporary failure in name resolution)): + +app/controllers/sms_sends_controller.rb:14:in `block in create' +app/controllers/sms_sends_controller.rb:13:in `create' +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-21 16:09:02 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"Ha0d48aw181gXAwYFLLqCJQaE1zOdkBvrQxdxQyyPF8PNdaciB95MQCtON01o2iqbZiBFBjtMpC3YV/duPn73A==", "sms_send"=>{"contact_id"=>"2", "message"=>"fuck up"}, "commit"=>"send"} + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.2ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:9 + SmsSend Create (0.5ms) INSERT INTO "sms_sends" ("message", "created_at", "updated_at", "contact_id") VALUES (?, ?, ?, ?) [["message", "fuck up"], ["created_at", "2018-09-21 13:09:02.099011"], ["updated_at", "2018-09-21 13:09:02.099011"], ["contact_id", 2]] + ↳ app/controllers/sms_sends_controller.rb:9 +  (214.2ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:9 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:10 +  (0.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:10 + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/controllers/sms_sends_controller.rb:13 +No template found for SmsSendsController#create, rendering head :no_content +Completed 204 No Content in 2530ms (ActiveRecord: 216.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-21 16:09:23 +0300 +Processing by ContactsController#index as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (4.3ms) +Completed 200 OK in 28ms (Views: 24.4ms | ActiveRecord: 0.6ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-22 12:30:07 +0300 +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Processing by ContactsController#index as HTML +Completed 401 Unauthorized in 80ms (ActiveRecord: 0.0ms) + + +Started GET "/users/sign_in" for 127.0.0.1 at 2018-09-22 12:30:08 +0300 +Processing by Devise::SessionsController#new as HTML + Rendering devise/sessions/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (1.5ms) + Rendered devise/sessions/new.html.erb within layouts/application (35.7ms) +Completed 200 OK in 750ms (Views: 695.0ms | ActiveRecord: 1.1ms) + + +Started GET "/users/sign_up" for 127.0.0.1 at 2018-09-22 12:30:12 +0300 +Processing by Devise::RegistrationsController#new as HTML + Rendering devise/registrations/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (1.2ms) + Rendered devise/registrations/new.html.erb within layouts/application (5.1ms) +Completed 200 OK in 43ms (Views: 41.5ms | ActiveRecord: 0.0ms) + + +Started POST "/users" for 127.0.0.1 at 2018-09-22 12:30:17 +0300 +Processing by Devise::RegistrationsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"yK+6ur4V8cXxQy8CRalsRlVsAo4qFh6+PT8LYNpgqdpT9vYxmvSSELIZ2iSCTXrX5d1TyW3oM86WeVtqDpGUyg==", "user"=>{"email"=>"pyrexexym@fahufozedaj.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"} +  (0.1ms) begin transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "pyrexexym@fahufozedaj.com"], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Create (1.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "pyrexexym@fahufozedaj.com"], ["encrypted_password", "$2a$11$msLyWXwydfzggMiQeiUGT.icxQbPXsuz/IuJsZdhYTlXE4V5Wjo6."], ["created_at", "2018-09-22 09:30:17.767130"], ["updated_at", "2018-09-22 09:30:17.767130"]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (479.3ms) commit transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/ +Completed 302 Found in 1090ms (ActiveRecord: 481.1ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-22 12:30:18 +0300 +Processing by ContactsController#index as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.5ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 3]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (23.8ms) +Completed 200 OK in 473ms (Views: 65.4ms | ActiveRecord: 2.5ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-22 12:30:27 +0300 +Processing by ContactsController#new as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (7.9ms) +Completed 200 OK in 273ms (Views: 46.3ms | ActiveRecord: 0.9ms) + + + User Load (1.7ms) SELECT "users".* FROM "users" LIMIT ? [["LIMIT", 11]] +  (0.5ms) SELECT COUNT(*) FROM "users" +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT sqlite_version(*) + ↳ bin/rails:9 +  (124.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) + ↳ bin/rails:9 +  (84.6ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ bin/rails:9 +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to DeviseCreateUsers (20180920130430) +  (0.2ms) begin transaction + ↳ bin/rails:9 +  (1.1ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180920130430_devise_create_users.rb:5 +  (19.2ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email") + ↳ db/migrate/20180920130430_devise_create_users.rb:39 +  (0.4ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token") + ↳ db/migrate/20180920130430_devise_create_users.rb:40 + ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920130430"]] + ↳ bin/rails:9 +  (115.4ms) commit transaction + ↳ bin/rails:9 +Migrating to CreateContacts (20180920132032) +  (0.2ms) begin transaction + ↳ bin/rails:9 +  (0.8ms) CREATE TABLE "contacts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "phonenumber" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180920132032_create_contacts.rb:3 + ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920132032"]] + ↳ bin/rails:9 +  (117.1ms) commit transaction + ↳ bin/rails:9 +Migrating to AddUserToContact (20180920132335) +  (0.2ms) begin transaction + ↳ bin/rails:9 +  (1.0ms) ALTER TABLE "contacts" ADD "user_id" integer + ↳ db/migrate/20180920132335_add_user_to_contact.rb:3 +  (0.5ms) CREATE INDEX "index_contacts_on_user_id" ON "contacts" ("user_id") + ↳ db/migrate/20180920132335_add_user_to_contact.rb:3 + ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920132335"]] + ↳ bin/rails:9 +  (110.2ms) commit transaction + ↳ bin/rails:9 +Migrating to CreateSmsSends (20180921061918) +  (0.2ms) begin transaction + ↳ bin/rails:9 +  (0.8ms) CREATE TABLE "sms_sends" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "message" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180921061918_create_sms_sends.rb:3 + ActiveRecord::SchemaMigration Create (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180921061918"]] + ↳ bin/rails:9 +  (127.1ms) commit transaction + ↳ bin/rails:9 +Migrating to AddContactToSmsSend (20180921074512) +  (0.1ms) begin transaction + ↳ bin/rails:9 +  (0.8ms) ALTER TABLE "sms_sends" ADD "contact_id" integer + ↳ db/migrate/20180921074512_add_contact_to_sms_send.rb:3 +  (0.4ms) CREATE INDEX "index_sms_sends_on_contact_id" ON "sms_sends" ("contact_id") + ↳ db/migrate/20180921074512_add_contact_to_sms_send.rb:3 + ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180921074512"]] + ↳ bin/rails:9 +  (109.2ms) commit transaction + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.1ms) begin transaction + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Create (1.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2018-09-22 09:31:45.235266"], ["updated_at", "2018-09-22 09:31:45.235266"]] + ↳ bin/rails:9 +  (77.5ms) commit transaction + ↳ bin/rails:9 +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.3ms) SELECT COUNT(*) FROM "users" +Started POST "/contacts" for 127.0.0.1 at 2018-09-22 12:32:05 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"+cnTz2CBqtThpjpJ3S1VeJx6fUfwR0Y9f9a+13n4yi/+UshJ2Lag1AdvBsOJFUnAlWxXRJ5uXTEh+wtig32lQg==", "contact"=>{"first_name"=>"Martin", "last_name"=>"Dillard", "phonenumber"=>"254711903303"}, "commit"=>"create"} + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Completed 401 Unauthorized in 16ms (ActiveRecord: 1.3ms) + + +Started GET "/users/sign_in" for 127.0.0.1 at 2018-09-22 12:32:05 +0300 +Processing by Devise::SessionsController#new as HTML + Rendering devise/sessions/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (1.1ms) + Rendered devise/sessions/new.html.erb within layouts/application (4.3ms) +Completed 200 OK in 44ms (Views: 31.2ms | ActiveRecord: 0.0ms) + + +Started GET "/users/sign_up" for 127.0.0.1 at 2018-09-22 12:32:08 +0300 +Processing by Devise::RegistrationsController#new as HTML + Rendering devise/registrations/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (1.4ms) + Rendered devise/registrations/new.html.erb within layouts/application (20.6ms) +Completed 200 OK in 60ms (Views: 58.2ms | ActiveRecord: 0.0ms) + + +Started POST "/users" for 127.0.0.1 at 2018-09-22 12:32:15 +0300 +Processing by Devise::RegistrationsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"PWGLwyXjeEFw7ZQfAgTvLrbAcfKxHITEDAt+FeQEPJ6mOMdIAQIblDO3YTnF4Pm/BnEgtfbiqbSnTS4fMPUBjg==", "user"=>{"email"=>"qufu@fugymalajyrubep.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"} +  (0.1ms) begin transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "qufu@fugymalajyrubep.com"], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Create (0.6ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "qufu@fugymalajyrubep.com"], ["encrypted_password", "$2a$11$FyCOYkLio1uVfiSaepanpOS0QgyyMB9wSnJitTBuX6oxhsxn/Xc7O"], ["created_at", "2018-09-22 09:32:15.453130"], ["updated_at", "2018-09-22 09:32:15.453130"]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (126.2ms) commit transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/ +Completed 302 Found in 293ms (ActiveRecord: 127.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-22 12:32:15 +0300 +Processing by ContactsController#index as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (4.8ms) +Completed 200 OK in 44ms (Views: 32.8ms | ActiveRecord: 1.1ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-22 12:32:19 +0300 +Processing by ContactsController#new as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (3.9ms) +Completed 200 OK in 60ms (Views: 36.1ms | ActiveRecord: 1.2ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-22 12:32:28 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"qTXO4UaDc5gtpQITuXOjFXQ8UdtIOdWgSxQQVbRteNSurtVn/rR5mMtsPpntS7+tfSp72CYQzqwVOaXgTugXuQ==", "contact"=>{"first_name"=>"Kylynn", "last_name"=>"Little", "phonenumber"=>"254711903303"}, "commit"=>"create"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.2ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 + Contact Create (0.8ms) INSERT INTO "contacts" ("first_name", "last_name", "phonenumber", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["first_name", "Kylynn"], ["last_name", "Little"], ["phonenumber", 254711903303], ["created_at", "2018-09-22 09:32:28.929353"], ["updated_at", "2018-09-22 09:32:28.929353"], ["user_id", 1]] + ↳ app/controllers/contacts_controller.rb:10 +  (203.0ms) commit transaction + ↳ app/controllers/contacts_controller.rb:10 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 321ms (ActiveRecord: 204.4ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-22 12:32:29 +0300 +Processing by ContactsController#index as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 39ms (Views: 32.5ms | ActiveRecord: 0.7ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-22 12:32:31 +0300 +Processing by ContactsController#new as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (3.6ms) +Completed 200 OK in 50ms (Views: 45.3ms | ActiveRecord: 0.4ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-22 12:32:37 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"Nrqmdd0lkguQIO5h2+c7mdGtwVZG99FuRGB3TH3f6i0xIb3zZRKYC3bp0uuP3ych2LvrVSjeymIaTcL5h1qFQA==", "contact"=>{"first_name"=>"Maisie", "last_name"=>"Duffy", "phonenumber"=>"254739262425"}, "commit"=>"create"} + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 + Contact Create (2.2ms) INSERT INTO "contacts" ("first_name", "last_name", "phonenumber", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["first_name", "Maisie"], ["last_name", "Duffy"], ["phonenumber", 254739262425], ["created_at", "2018-09-22 09:32:37.347880"], ["updated_at", "2018-09-22 09:32:37.347880"], ["user_id", 1]] + ↳ app/controllers/contacts_controller.rb:10 +  (265.6ms) commit transaction + ↳ app/controllers/contacts_controller.rb:10 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 277ms (ActiveRecord: 268.3ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-22 12:32:37 +0300 +Processing by ContactsController#index as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (4.2ms) +Completed 200 OK in 41ms (Views: 36.8ms | ActiveRecord: 0.7ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-22 12:55:14 +0300 +Processing by ContactsController#index as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (25.9ms) +Completed 200 OK in 68ms (Views: 49.0ms | ActiveRecord: 1.9ms) + + +Started GET "/sms_sends/new" for 127.0.0.1 at 2018-09-22 12:55:19 +0300 +Processing by SmsSendsController#new as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" IS NULL LIMIT ? [["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:6 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (6.0ms) +Completed 500 Internal Server Error in 72ms (ActiveRecord: 2.4ms) + + + +ActionView::Template::Error (undefined method `first_name' for nil:NilClass): + 1: <%= form_for @at, url: {action: "create"} do |f|%> + 2:

Write a message to: <%= @contact.first_name%> <%=@contact.last_name%>

+ 3: <%= f.hidden_field :contact_id, :value => @contact.id%> + 4: message: <%= f.text_field :message%> + 5: <%= f.submit "send" %> + +app/views/sms_sends/new.html.erb:2:in `block in _app_views_sms_sends_new_html_erb__690128669200198847_69847644367040' +app/views/sms_sends/new.html.erb:1:in `_app_views_sms_sends_new_html_erb__690128669200198847_69847644367040' +Started GET "/sms_sends/new_all" for 127.0.0.1 at 2018-09-22 12:55:25 +0300 +Processing by SmsSendsController#new_all as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.4ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" IS NULL LIMIT ? [["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:18 + Rendering sms_sends/new_all.html.erb within layouts/application + Rendered sms_sends/new_all.html.erb within layouts/application (5.9ms) +Completed 500 Internal Server Error in 21ms (ActiveRecord: 0.9ms) + + + +ActionView::Template::Error (undefined method `first_name' for nil:NilClass): + 1: <%= form_for @at, url: {action: "create"} do |f|%> + 2:

Write a message to: <%= @contact.first_name%> <%=@contact.last_name%>

+ 3: <%= f.hidden_field :contact_id, :value => @contact.id%> + 4: message: <%= f.text_field :message%> + 5: <%= f.submit "send" %> + +app/views/sms_sends/new_all.html.erb:2:in `block in _app_views_sms_sends_new_all_html_erb___4201744792385065296_69847584254400' +app/views/sms_sends/new_all.html.erb:1:in `_app_views_sms_sends_new_all_html_erb___4201744792385065296_69847584254400' +Started GET "/sms_sends/new_all" for 127.0.0.1 at 2018-09-22 12:56:21 +0300 +Processing by SmsSendsController#new_all as HTML + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.5ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" IS NULL LIMIT ? [["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:18 + Rendering sms_sends/new_all.html.erb within layouts/application + Rendered sms_sends/new_all.html.erb within layouts/application (5.3ms) +Completed 500 Internal Server Error in 18ms (ActiveRecord: 1.0ms) + + + +ActionView::Template::Error (undefined method `id' for nil:NilClass): + 1: <%= form_for @at, url: {action: "create"} do |f|%> + 2: <%= f.hidden_field :contact_id, :value => @contact.id%> + 3: message: <%= f.text_field :message%> + 4: <%= f.submit "send" %> + 5: <% end %> + +app/views/sms_sends/new_all.html.erb:2:in `block in _app_views_sms_sends_new_all_html_erb___4201744792385065296_69847510282160' +app/views/sms_sends/new_all.html.erb:1:in `_app_views_sms_sends_new_all_html_erb___4201744792385065296_69847510282160' +Started GET "/sms_sends/new_all" for 127.0.0.1 at 2018-09-22 12:57:43 +0300 +Processing by SmsSendsController#new_all as HTML + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" IS NULL LIMIT ? [["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:18 + Rendering sms_sends/new_all.html.erb within layouts/application + Rendered sms_sends/new_all.html.erb within layouts/application (5.0ms) +Completed 500 Internal Server Error in 18ms (ActiveRecord: 1.0ms) + + + +ActionView::Template::Error (undefined method `id' for nil:NilClass): + 1: <%= form_for @at, url: {action: "create"} do |f|%> + 2: <%= f.hidden_field :contact_id, :value => @contacts.id%> + 3: message: <%= f.text_field :message%> + 4: <%= f.submit "send" %> + 5: <% end %> + +app/views/sms_sends/new_all.html.erb:2:in `block in _app_views_sms_sends_new_all_html_erb___4201744792385065296_69847677670520' +app/views/sms_sends/new_all.html.erb:1:in `_app_views_sms_sends_new_all_html_erb___4201744792385065296_69847677670520' +Started GET "/sms_sends/new_all" for 127.0.0.1 at 2018-09-22 12:58:07 +0300 +Processing by SmsSendsController#new_all as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.5ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" IS NULL LIMIT ? [["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:18 + Rendering sms_sends/new_all.html.erb within layouts/application + Rendered sms_sends/new_all.html.erb within layouts/application (45.0ms) +Completed 200 OK in 95ms (Views: 86.4ms | ActiveRecord: 1.0ms) + + +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-22 12:58:13 +0300 +Processing by SmsSendsController#create_all as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"Zuh/LtmQU+B/ngsPMve90BxNefLrgtaEOdzgotUIHg36IM3C8jpRtm+azfS9aevZJFzwMaT7QrGe+VnZ9UjEtQ==", "sms_send"=>{"contact_id"=>"", "message"=>""}, "commit"=>"send"} + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:21 + SmsSend Create (0.6ms) INSERT INTO "sms_sends" ("message", "created_at", "updated_at") VALUES (?, ?, ?) [["message", ""], ["created_at", "2018-09-22 09:58:13.752925"], ["updated_at", "2018-09-22 09:58:13.752925"]] + ↳ app/controllers/sms_sends_controller.rb:21 +  (66.7ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:21 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:22 +  (0.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:22 + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/controllers/sms_sends_controller.rb:23 +Completed 500 Internal Server Error in 1048ms (ActiveRecord: 68.0ms) + + + +AfricasTalkingGatewayException (requirement failed: The message to send should not be empty): + +app/controllers/sms_sends_controller.rb:24:in `block in create_all' +app/controllers/sms_sends_controller.rb:23:in `create_all' +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-22 12:58:23 +0300 +Processing by SmsSendsController#create_all as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"Zuh/LtmQU+B/ngsPMve90BxNefLrgtaEOdzgotUIHg36IM3C8jpRtm+azfS9aevZJFzwMaT7QrGe+VnZ9UjEtQ==", "sms_send"=>{"contact_id"=>"", "message"=>"please go"}, "commit"=>"send"} + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.2ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:21 + SmsSend Create (0.5ms) INSERT INTO "sms_sends" ("message", "created_at", "updated_at") VALUES (?, ?, ?) [["message", "please go"], ["created_at", "2018-09-22 09:58:23.818926"], ["updated_at", "2018-09-22 09:58:23.818926"]] + ↳ app/controllers/sms_sends_controller.rb:21 +  (183.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:21 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:22 +  (0.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:22 + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/controllers/sms_sends_controller.rb:23 +No template found for SmsSendsController#create_all, rendering head :no_content +Completed 204 No Content in 2674ms (ActiveRecord: 184.6ms) + + +Started GET "/sms_sends/new_all" for 127.0.0.1 at 2018-09-22 12:59:28 +0300 +Processing by SmsSendsController#new_all as HTML + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.4ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" IS NULL LIMIT ? [["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:18 + Rendering sms_sends/new_all.html.erb within layouts/application + Rendered sms_sends/new_all.html.erb within layouts/application (2.3ms) +Completed 200 OK in 45ms (Views: 36.8ms | ActiveRecord: 1.0ms) + + +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-22 12:59:48 +0300 +Processing by SmsSendsController#create_all as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"CJUSF5hhhi6wYeFXzATJ/8HxvMXg/pHqUZeCUag0OcOUXaD7s8uEeKBlJ6xDmp/2+eA1Bq+HBd/2sjsqiHTjew==", "sms_send"=>{"contact_id"=>"", "message"=>"what the hell?"}, "commit"=>"send"} + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:21 + SmsSend Create (1.1ms) INSERT INTO "sms_sends" ("message", "created_at", "updated_at") VALUES (?, ?, ?) [["message", "what the hell?"], ["created_at", "2018-09-22 09:59:48.676503"], ["updated_at", "2018-09-22 09:59:48.676503"]] + ↳ app/controllers/sms_sends_controller.rb:21 +  (131.5ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:21 +  (0.2ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:22 +  (0.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:22 + Contact Load (0.4ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/controllers/sms_sends_controller.rb:23 +No template found for SmsSendsController#create_all, rendering head :no_content +Completed 204 No Content in 2019ms (ActiveRecord: 133.7ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-22 13:00:11 +0300 +Processing by ContactsController#index as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (6.8ms) +Completed 200 OK in 53ms (Views: 46.7ms | ActiveRecord: 0.8ms) + + +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT sqlite_version(*) + ↳ bin/rails:9 +  (107.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) + ↳ bin/rails:9 +  (118.7ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ bin/rails:9 +  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to DeviseCreateUsers (20180920130430) +  (0.3ms) begin transaction + ↳ bin/rails:9 +  (2.2ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "name" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180920130430_devise_create_users.rb:5 +  (0.5ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email") + ↳ db/migrate/20180920130430_devise_create_users.rb:40 +  (0.4ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token") + ↳ db/migrate/20180920130430_devise_create_users.rb:41 + ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920130430"]] + ↳ bin/rails:9 +  (132.7ms) commit transaction + ↳ bin/rails:9 +Migrating to CreateContacts (20180920132032) +  (0.1ms) begin transaction + ↳ bin/rails:9 +  (1.6ms) CREATE TABLE "contacts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "phonenumber" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180920132032_create_contacts.rb:3 + ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920132032"]] + ↳ bin/rails:9 +  (99.0ms) commit transaction + ↳ bin/rails:9 +Migrating to AddUserToContact (20180920132335) +  (0.2ms) begin transaction + ↳ bin/rails:9 +  (0.9ms) ALTER TABLE "contacts" ADD "user_id" integer + ↳ db/migrate/20180920132335_add_user_to_contact.rb:3 +  (0.4ms) CREATE INDEX "index_contacts_on_user_id" ON "contacts" ("user_id") + ↳ db/migrate/20180920132335_add_user_to_contact.rb:3 + ActiveRecord::SchemaMigration Create (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920132335"]] + ↳ bin/rails:9 +  (127.0ms) commit transaction + ↳ bin/rails:9 +Migrating to CreateSmsSends (20180921061918) +  (0.2ms) begin transaction + ↳ bin/rails:9 +  (1.0ms) CREATE TABLE "sms_sends" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "message" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180921061918_create_sms_sends.rb:3 + ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180921061918"]] + ↳ bin/rails:9 +  (99.7ms) commit transaction + ↳ bin/rails:9 +Migrating to AddContactToSmsSend (20180921074512) +  (0.2ms) begin transaction + ↳ bin/rails:9 +  (1.0ms) ALTER TABLE "sms_sends" ADD "contact_id" integer + ↳ db/migrate/20180921074512_add_contact_to_sms_send.rb:3 +  (0.5ms) CREATE INDEX "index_sms_sends_on_contact_id" ON "sms_sends" ("contact_id") + ↳ db/migrate/20180921074512_add_contact_to_sms_send.rb:3 + ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180921074512"]] + ↳ bin/rails:9 +  (121.2ms) commit transaction + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.1ms) begin transaction + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Create (0.6ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2018-09-22 11:11:35.026723"], ["updated_at", "2018-09-22 11:11:35.026723"]] + ↳ bin/rails:9 +  (92.0ms) commit transaction + ↳ bin/rails:9 +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to AddContactToSmsSend (20180921074512) +  (0.0ms) begin transaction + ↳ bin/rails:9 +  (0.1ms) SELECT sqlite_version(*) + ↳ bin/rails:9 +  (0.4ms) CREATE TEMPORARY TABLE "asms_sends" ("id" integer NOT NULL PRIMARY KEY, "message" varchar DEFAULT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "contact_id" integer DEFAULT NULL) + ↳ bin/rails:9 +  (0.1ms) CREATE INDEX "tindex_asms_sends_on_contact_id" ON "asms_sends" ("contact_id") + ↳ bin/rails:9 +  (0.1ms) INSERT INTO "asms_sends" ("id","message","created_at","updated_at","contact_id") + SELECT "id","message","created_at","updated_at","contact_id" FROM "sms_sends" + ↳ bin/rails:9 +  (0.8ms) DROP TABLE "sms_sends" + ↳ bin/rails:9 +  (0.8ms) CREATE TABLE "sms_sends" ("id" integer NOT NULL PRIMARY KEY, "message" varchar DEFAULT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ bin/rails:9 +  (0.1ms) INSERT INTO "sms_sends" ("id","message","created_at","updated_at") + SELECT "id","message","created_at","updated_at" FROM "asms_sends" + ↳ bin/rails:9 +  (0.7ms) DROP TABLE "asms_sends" + ↳ bin/rails:9 + ActiveRecord::SchemaMigration Destroy (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = ? [["version", "20180921074512"]] + ↳ bin/rails:9 +  (88.6ms) commit transaction + ↳ bin/rails:9 +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT sqlite_version(*) + ↳ bin/rails:9 +  (105.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) + ↳ bin/rails:9 +  (121.7ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ bin/rails:9 +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to DeviseCreateUsers (20180920130430) +  (0.1ms) begin transaction + ↳ bin/rails:9 +  (2.0ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180920130430_devise_create_users.rb:5 +  (0.5ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email") + ↳ db/migrate/20180920130430_devise_create_users.rb:39 +  (0.5ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token") + ↳ db/migrate/20180920130430_devise_create_users.rb:40 + ActiveRecord::SchemaMigration Create (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920130430"]] + ↳ bin/rails:9 +  (98.6ms) commit transaction + ↳ bin/rails:9 +Migrating to CreateContacts (20180920132032) +  (0.1ms) begin transaction + ↳ bin/rails:9 +  (1.2ms) CREATE TABLE "contacts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "phonenumber" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180920132032_create_contacts.rb:3 + ActiveRecord::SchemaMigration Create (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920132032"]] + ↳ bin/rails:9 +  (104.5ms) commit transaction + ↳ bin/rails:9 +Migrating to AddUserToContact (20180920132335) +  (0.1ms) begin transaction + ↳ bin/rails:9 +  (1.0ms) ALTER TABLE "contacts" ADD "user_id" integer + ↳ db/migrate/20180920132335_add_user_to_contact.rb:3 +  (0.5ms) CREATE INDEX "index_contacts_on_user_id" ON "contacts" ("user_id") + ↳ db/migrate/20180920132335_add_user_to_contact.rb:3 + ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920132335"]] + ↳ bin/rails:9 +  (121.7ms) commit transaction + ↳ bin/rails:9 +Migrating to CreateSmsSends (20180921061918) +  (0.2ms) begin transaction + ↳ bin/rails:9 +  (1.9ms) CREATE TABLE "sms_sends" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "message" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180921061918_create_sms_sends.rb:3 + ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180921061918"]] + ↳ bin/rails:9 +  (105.5ms) commit transaction + ↳ bin/rails:9 +Migrating to AddContactToSmsSend (20180921074512) +  (0.1ms) begin transaction + ↳ bin/rails:9 +  (1.7ms) ALTER TABLE "sms_sends" ADD "contact_id" integer + ↳ db/migrate/20180921074512_add_contact_to_sms_send.rb:3 +  (0.3ms) CREATE INDEX "index_sms_sends_on_contact_id" ON "sms_sends" ("contact_id") + ↳ db/migrate/20180921074512_add_contact_to_sms_send.rb:3 + ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180921074512"]] + ↳ bin/rails:9 +  (101.6ms) commit transaction + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.1ms) begin transaction + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Create (0.6ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2018-09-22 11:19:35.677970"], ["updated_at", "2018-09-22 11:19:35.677970"]] + ↳ bin/rails:9 +  (71.2ms) commit transaction + ↳ bin/rails:9 +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT sqlite_version(*) + ↳ bin/rails:9 +  (102.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) + ↳ bin/rails:9 +  (153.0ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ bin/rails:9 +  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to DeviseCreateUsers (20180920130430) +  (0.1ms) begin transaction + ↳ bin/rails:9 +  (2.1ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180920130430_devise_create_users.rb:5 +  (0.5ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email") + ↳ db/migrate/20180920130430_devise_create_users.rb:39 +  (0.4ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token") + ↳ db/migrate/20180920130430_devise_create_users.rb:40 + ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920130430"]] + ↳ bin/rails:9 +  (107.2ms) commit transaction + ↳ bin/rails:9 +Migrating to CreateContacts (20180920132032) +  (0.1ms) begin transaction + ↳ bin/rails:9 +  (0.7ms) CREATE TABLE "contacts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "phonenumber" integer, "is_checked" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180920132032_create_contacts.rb:3 + ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920132032"]] + ↳ bin/rails:9 +  (139.1ms) commit transaction + ↳ bin/rails:9 +Migrating to AddUserToContact (20180920132335) +  (0.1ms) begin transaction + ↳ bin/rails:9 +  (0.8ms) ALTER TABLE "contacts" ADD "user_id" integer + ↳ db/migrate/20180920132335_add_user_to_contact.rb:3 +  (0.3ms) CREATE INDEX "index_contacts_on_user_id" ON "contacts" ("user_id") + ↳ db/migrate/20180920132335_add_user_to_contact.rb:3 + ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920132335"]] + ↳ bin/rails:9 +  (103.7ms) commit transaction + ↳ bin/rails:9 +Migrating to CreateSmsSends (20180921061918) +  (0.2ms) begin transaction + ↳ bin/rails:9 +  (1.1ms) CREATE TABLE "sms_sends" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "message" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180921061918_create_sms_sends.rb:3 + ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180921061918"]] + ↳ bin/rails:9 +  (102.4ms) commit transaction + ↳ bin/rails:9 +Migrating to AddContactToSmsSend (20180921074512) +  (0.1ms) begin transaction + ↳ bin/rails:9 +  (0.7ms) ALTER TABLE "sms_sends" ADD "contact_id" integer + ↳ db/migrate/20180921074512_add_contact_to_sms_send.rb:3 +  (0.5ms) CREATE INDEX "index_sms_sends_on_contact_id" ON "sms_sends" ("contact_id") + ↳ db/migrate/20180921074512_add_contact_to_sms_send.rb:3 + ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180921074512"]] + ↳ bin/rails:9 +  (125.3ms) commit transaction + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.1ms) begin transaction + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Create (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2018-09-23 02:24:30.127833"], ["updated_at", "2018-09-23 02:24:30.127833"]] + ↳ bin/rails:9 +  (58.8ms) commit transaction + ↳ bin/rails:9 +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Started GET "/" for 127.0.0.1 at 2018-09-26 10:49:24 +0300 +  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Processing by ContactsController#index as HTML +Completed 401 Unauthorized in 37ms (ActiveRecord: 0.0ms) + + +Started GET "/users/sign_in" for 127.0.0.1 at 2018-09-26 10:49:24 +0300 +Processing by Devise::SessionsController#new as HTML + Rendering devise/sessions/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (1.7ms) + Rendered devise/sessions/new.html.erb within layouts/application (36.0ms) +Completed 200 OK in 615ms (Views: 584.7ms | ActiveRecord: 1.0ms) + + +Started GET "/users/sign_up" for 127.0.0.1 at 2018-09-26 10:50:16 +0300 +Processing by Devise::RegistrationsController#new as HTML + Rendering devise/registrations/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (1.8ms) + Rendered devise/registrations/new.html.erb within layouts/application (7.5ms) +Completed 200 OK in 53ms (Views: 51.5ms | ActiveRecord: 0.0ms) + + +Started POST "/users" for 127.0.0.1 at 2018-09-26 10:50:22 +0300 +Processing by Devise::RegistrationsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"vp2FiQIURFzTh75TO0rckNcnPdMTnyYtziw7ToJujuufzTYCzeA8Zb0na9/TpXvSR5hy0Df6wwE3VTLR9Myq6A==", "user"=>{"email"=>"pokopoj@ditok.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"} +  (0.1ms) begin transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "pokopoj@ditok.com"], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Create (0.8ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "pokopoj@ditok.com"], ["encrypted_password", "$2a$11$dUfXsLSMnWiYAuRubMRNCu/yBRewaYjEGncxDhCQcVugYBYb8qwAi"], ["created_at", "2018-09-26 07:50:22.777168"], ["updated_at", "2018-09-26 07:50:22.777168"]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (63.6ms) commit transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/ +Completed 302 Found in 410ms (ActiveRecord: 64.6ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-26 10:50:22 +0300 +Processing by ContactsController#index as HTML + User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 2]] + ↳ app/views/contacts/index.html.erb:15 + Rendered contacts/index.html.erb within layouts/application (6.8ms) +Completed 200 OK in 88ms (Views: 35.7ms | ActiveRecord: 1.6ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-26 10:50:57 +0300 +Processing by ContactsController#new as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (3.7ms) +Completed 200 OK in 66ms (Views: 35.7ms | ActiveRecord: 1.1ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-26 10:51:04 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"+uj9FOjO3LkKXiEYy4hd0A7Sta6BTW+rQ/f58TxlrOhDxJ59b99tW7lKQKTmo+iVP5L1Swk0HilTO+LH/+dgHw==", "contact"=>{"first_name"=>"Daphne", "last_name"=>"Whitley", "phonenumber"=>"254711903303"}, "commit"=>"create"} + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.2ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 + Contact Create (2.9ms) INSERT INTO "contacts" ("first_name", "last_name", "phonenumber", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["first_name", "Daphne"], ["last_name", "Whitley"], ["phonenumber", 254711903303], ["created_at", "2018-09-26 07:51:04.689112"], ["updated_at", "2018-09-26 07:51:04.689112"], ["user_id", 2]] + ↳ app/controllers/contacts_controller.rb:10 +  (85.7ms) commit transaction + ↳ app/controllers/contacts_controller.rb:10 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 215ms (ActiveRecord: 89.3ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-26 10:51:04 +0300 +Processing by ContactsController#index as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 2]] + ↳ app/views/contacts/index.html.erb:15 + Rendered contacts/index.html.erb within layouts/application (5.0ms) +Completed 200 OK in 43ms (Views: 37.0ms | ActiveRecord: 0.8ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-26 10:51:08 +0300 +Processing by ContactsController#new as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (4.3ms) +Completed 200 OK in 43ms (Views: 38.2ms | ActiveRecord: 0.4ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-26 10:51:16 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"C0UlTAkE/LkR8nh3qRO1JUDZ0dpf8ISVUHcBzi3UxjuyaUYljhVNW6LmGcuEOABgcZmRP9eJ9RdAuxr47lYKzA==", "contact"=>{"first_name"=>"Hakeem", "last_name"=>"Dean", "phonenumber"=>"254739262425"}, "commit"=>"create"} + User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 + Contact Create (0.3ms) INSERT INTO "contacts" ("first_name", "last_name", "phonenumber", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["first_name", "Hakeem"], ["last_name", "Dean"], ["phonenumber", 254739262425], ["created_at", "2018-09-26 07:51:16.319644"], ["updated_at", "2018-09-26 07:51:16.319644"], ["user_id", 2]] + ↳ app/controllers/contacts_controller.rb:10 +  (217.1ms) commit transaction + ↳ app/controllers/contacts_controller.rb:10 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 227ms (ActiveRecord: 218.1ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-26 10:51:16 +0300 +Processing by ContactsController#index as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 2]] + ↳ app/views/contacts/index.html.erb:15 + Rendered contacts/index.html.erb within layouts/application (5.0ms) +Completed 200 OK in 37ms (Views: 33.1ms | ActiveRecord: 0.6ms) + + +  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] + ↳ bin/rails:9 +  (0.2ms) SELECT sqlite_version(*) + ↳ bin/rails:9 +  (94.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) + ↳ bin/rails:9 +  (86.8ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ bin/rails:9 +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to DeviseCreateUsers (20180920130430) +  (0.2ms) begin transaction + ↳ bin/rails:9 +  (1.1ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180920130430_devise_create_users.rb:5 +  (10.7ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email") + ↳ db/migrate/20180920130430_devise_create_users.rb:39 +  (0.4ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token") + ↳ db/migrate/20180920130430_devise_create_users.rb:40 + ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920130430"]] + ↳ bin/rails:9 +  (93.3ms) commit transaction + ↳ bin/rails:9 +Migrating to CreateContacts (20180920132032) +  (0.3ms) begin transaction + ↳ bin/rails:9 +  (1.0ms) CREATE TABLE "contacts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "last_name" varchar, "phonenumber" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180920132032_create_contacts.rb:3 + ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920132032"]] + ↳ bin/rails:9 +  (252.2ms) commit transaction + ↳ bin/rails:9 +Migrating to AddUserToContact (20180920132335) +  (0.2ms) begin transaction + ↳ bin/rails:9 +  (2.5ms) ALTER TABLE "contacts" ADD "user_id" integer + ↳ db/migrate/20180920132335_add_user_to_contact.rb:3 +  (0.5ms) CREATE INDEX "index_contacts_on_user_id" ON "contacts" ("user_id") + ↳ db/migrate/20180920132335_add_user_to_contact.rb:3 + ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180920132335"]] + ↳ bin/rails:9 +  (101.5ms) commit transaction + ↳ bin/rails:9 +Migrating to CreateSmsSends (20180921061918) +  (0.3ms) begin transaction + ↳ bin/rails:9 +  (0.9ms) CREATE TABLE "sms_sends" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "message" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ↳ db/migrate/20180921061918_create_sms_sends.rb:3 + ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180921061918"]] + ↳ bin/rails:9 +  (105.3ms) commit transaction + ↳ bin/rails:9 +Migrating to AddContactToSmsSend (20180921074512) +  (0.2ms) begin transaction + ↳ bin/rails:9 +  (1.1ms) ALTER TABLE "sms_sends" ADD "contact_id" integer + ↳ db/migrate/20180921074512_add_contact_to_sms_send.rb:3 +  (0.5ms) CREATE INDEX "index_sms_sends_on_contact_id" ON "sms_sends" ("contact_id") + ↳ db/migrate/20180921074512_add_contact_to_sms_send.rb:3 + ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180921074512"]] + ↳ bin/rails:9 +  (106.1ms) commit transaction + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.1ms) begin transaction + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Create (0.6ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2018-09-26 07:55:26.138870"], ["updated_at", "2018-09-26 07:55:26.138870"]] + ↳ bin/rails:9 +  (73.1ms) commit transaction + ↳ bin/rails:9 +  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Started GET "/contacts" for 127.0.0.1 at 2018-09-26 10:55:29 +0300 +Processing by ContactsController#index as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Completed 401 Unauthorized in 9ms (ActiveRecord: 1.8ms) + + +Started GET "/users/sign_in" for 127.0.0.1 at 2018-09-26 10:55:29 +0300 +Processing by Devise::SessionsController#new as HTML + Rendering devise/sessions/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (1.1ms) + Rendered devise/sessions/new.html.erb within layouts/application (5.5ms) +Completed 200 OK in 47ms (Views: 36.0ms | ActiveRecord: 0.0ms) + + +Started GET "/users/sign_up" for 127.0.0.1 at 2018-09-26 10:55:34 +0300 +Processing by Devise::RegistrationsController#new as HTML + Rendering devise/registrations/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (1.7ms) + Rendered devise/registrations/new.html.erb within layouts/application (8.3ms) +Completed 200 OK in 43ms (Views: 40.9ms | ActiveRecord: 0.0ms) + + +Started POST "/users" for 127.0.0.1 at 2018-09-26 10:55:38 +0300 +Processing by Devise::RegistrationsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"Mrlqtg22qhIUb/5Qgqe40qCJaBLb2LZ0tTIYrrnk29MT6dk9wkLSK3rPK9xqSB+QMDYnEf+9U1hMSxExz0b/0A==", "user"=>{"email"=>"zebiruwam@jaxamukusofozyr.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"} +  (0.1ms) begin transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "zebiruwam@jaxamukusofozyr.com"], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Create (0.8ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "zebiruwam@jaxamukusofozyr.com"], ["encrypted_password", "$2a$11$UWPA2Hs5LNKqcLzyYAQtr.D2CGGxiKBQlP/RdUBg.14xFmlyuofwC"], ["created_at", "2018-09-26 07:55:38.760199"], ["updated_at", "2018-09-26 07:55:38.760199"]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (95.2ms) commit transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 273ms (ActiveRecord: 96.2ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-26 10:55:38 +0300 +Processing by ContactsController#index as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (3.7ms) +Completed 200 OK in 51ms (Views: 45.8ms | ActiveRecord: 0.8ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-26 10:55:46 +0300 +Processing by ContactsController#new as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (6.1ms) +Completed 200 OK in 64ms (Views: 36.6ms | ActiveRecord: 1.0ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-26 10:55:53 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"f9HEzG4BbASNVgkH4jubc/e0OmJpjWGJH7jBU7kCHMXG/ael6RDd5j5CaLvPEC42xvR6h+H0EAsPdNpleoDQMg==", "contact"=>{"first_name"=>"Noelani", "last_name"=>"Valencia", "phonenumber"=>"254711903303"}, "commit"=>"create"} + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 + Contact Create (1.4ms) INSERT INTO "contacts" ("first_name", "last_name", "phonenumber", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["first_name", "Noelani"], ["last_name", "Valencia"], ["phonenumber", 254711903303], ["created_at", "2018-09-26 07:55:53.638316"], ["updated_at", "2018-09-26 07:55:53.638316"], ["user_id", 1]] + ↳ app/controllers/contacts_controller.rb:10 +  (160.4ms) commit transaction + ↳ app/controllers/contacts_controller.rb:10 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 193ms (ActiveRecord: 162.6ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-26 10:55:53 +0300 +Processing by ContactsController#index as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.5ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (4.9ms) +Completed 200 OK in 58ms (Views: 31.9ms | ActiveRecord: 0.9ms) + + +Started DELETE "/users/sign_out" for 127.0.0.1 at 2018-09-26 11:02:24 +0300 +Processing by Devise::SessionsController#destroy as HTML + Parameters: {"authenticity_token"=>"kM16pquDN0oa2998P9/ydWOtbobFxKIqu4OkUIyX8wSR03etLukQDKD1bntlSbEknfEgJ0HuxpKTpKJ5FJBZuQ=="} + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) commit transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/ +Completed 302 Found in 66ms (ActiveRecord: 0.7ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-26 11:02:25 +0300 +Processing by ContactsController#index as HTML +Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) + + +Started GET "/users/sign_in" for 127.0.0.1 at 2018-09-26 11:02:25 +0300 +Processing by Devise::SessionsController#new as HTML + Rendering devise/sessions/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (2.2ms) + Rendered devise/sessions/new.html.erb within layouts/application (7.1ms) +Completed 200 OK in 29ms (Views: 27.4ms | ActiveRecord: 0.0ms) + + +Started GET "/users/sign_in" for 127.0.0.1 at 2018-09-26 11:02:26 +0300 +Processing by Devise::SessionsController#new as HTML + Rendering devise/sessions/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (1.8ms) + Rendered devise/sessions/new.html.erb within layouts/application (6.7ms) +Completed 200 OK in 47ms (Views: 43.9ms | ActiveRecord: 0.0ms) + + +Started GET "/users/sign_in" for 127.0.0.1 at 2018-09-26 11:02:26 +0300 +Processing by Devise::SessionsController#new as HTML + Rendering devise/sessions/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (2.0ms) + Rendered devise/sessions/new.html.erb within layouts/application (5.8ms) +Completed 200 OK in 37ms (Views: 35.4ms | ActiveRecord: 0.0ms) + + +Started GET "/users/sign_in" for 127.0.0.1 at 2018-09-26 11:02:26 +0300 +Processing by Devise::SessionsController#new as HTML + Rendering devise/sessions/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (1.4ms) + Rendered devise/sessions/new.html.erb within layouts/application (5.2ms) +Completed 200 OK in 41ms (Views: 39.4ms | ActiveRecord: 0.0ms) + + +Started GET "/users/sign_in" for 127.0.0.1 at 2018-09-26 11:02:26 +0300 +Processing by Devise::SessionsController#new as HTML + Rendering devise/sessions/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (1.1ms) + Rendered devise/sessions/new.html.erb within layouts/application (6.3ms) +Completed 200 OK in 26ms (Views: 25.1ms | ActiveRecord: 0.0ms) + + +Started GET "/users/sign_up" for 127.0.0.1 at 2018-09-26 11:02:49 +0300 +Processing by Devise::RegistrationsController#new as HTML + Rendering devise/registrations/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (1.9ms) + Rendered devise/registrations/new.html.erb within layouts/application (7.5ms) +Completed 200 OK in 42ms (Views: 39.9ms | ActiveRecord: 0.0ms) + + +Started POST "/users" for 127.0.0.1 at 2018-09-26 11:02:51 +0300 +Processing by Devise::RegistrationsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"2eudgxu15T1Hpllnn86OCUWO3/I6AqzkYJWx3HsqmdYLUtvuXTw+L3WxODCbsoDzCnh7Y+eROrGcyXkT/mhxHg==", "user"=>{"email"=>"zagele@lenowosaziw.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"} +  (0.1ms) begin transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "zagele@lenowosaziw.com"], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Create (0.4ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "zagele@lenowosaziw.com"], ["encrypted_password", "$2a$11$iOOiYe913sj1b4Ps0Xdq8uc9SOeVeNalFS6FQYKaEextlD2CRcBvq"], ["created_at", "2018-09-26 08:02:52.114160"], ["updated_at", "2018-09-26 08:02:52.114160"]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (79.9ms) commit transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/ +Completed 302 Found in 247ms (ActiveRecord: 80.6ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-26 11:02:52 +0300 +Processing by ContactsController#index as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 2]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 29ms (Views: 25.2ms | ActiveRecord: 0.6ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-26 11:02:53 +0300 +Processing by ContactsController#new as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (3.2ms) +Completed 200 OK in 55ms (Views: 49.9ms | ActiveRecord: 0.4ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-26 11:02:59 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"bDfzX8DvRDBOBHNrIfgx7ZO/PIrBqTzH4LOz8qQdElQs5Vu2ALjaTwOMFeMWS5MokPa/jz/AQ51sfP3bBByZhg==", "contact"=>{"first_name"=>"Kai", "last_name"=>"Hopkins", "phonenumber"=>"254711903303"}, "commit"=>"create"} + User Load (1.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 + Contact Create (0.8ms) INSERT INTO "contacts" ("first_name", "last_name", "phonenumber", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["first_name", "Kai"], ["last_name", "Hopkins"], ["phonenumber", 254711903303], ["created_at", "2018-09-26 08:02:59.412869"], ["updated_at", "2018-09-26 08:02:59.412869"], ["user_id", 2]] + ↳ app/controllers/contacts_controller.rb:10 +  (337.0ms) commit transaction + ↳ app/controllers/contacts_controller.rb:10 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 348ms (ActiveRecord: 338.9ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-26 11:02:59 +0300 +Processing by ContactsController#index as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 2]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 23ms (Views: 20.9ms | ActiveRecord: 0.3ms) + + +Started GET "/sms_sends/new?id=2" for 127.0.0.1 at 2018-09-26 11:03:01 +0300 +Processing by SmsSendsController#new as HTML + Parameters: {"id"=>"2"} + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:6 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (10.5ms) +Completed 200 OK in 77ms (Views: 34.3ms | ActiveRecord: 1.3ms) + + +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-26 11:03:06 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"MdCoR4Gh+GU9ZuUQurhoaJ826G32scxu2esGdPIC+TXViFlbTGl5KoynwFkekfRY4fut4V+52bnYUNmRvZXDvg==", "sms_send"=>{"contact_id"=>"2", "message"=>"gettty"}, "commit"=>"send"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:9 + SmsSend Create (0.4ms) INSERT INTO "sms_sends" ("message", "created_at", "updated_at", "contact_id") VALUES (?, ?, ?, ?) [["message", "gettty"], ["created_at", "2018-09-26 08:03:06.751934"], ["updated_at", "2018-09-26 08:03:06.751934"], ["contact_id", 2]] + ↳ app/controllers/sms_sends_controller.rb:9 +  (218.2ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:9 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:10 +  (0.0ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:10 + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? AND "contacts"."id" = ? LIMIT ? [["user_id", 2], ["id", 2], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:11 +No template found for SmsSendsController#create, rendering head :no_content +Completed 204 No Content in 1660ms (ActiveRecord: 219.3ms) + + +Started GET "/sms_sends/sms_sends/new_all" for 127.0.0.1 at 2018-09-26 11:03:15 +0300 +Processing by SmsSendsController#new_all as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" IS NULL LIMIT ? [["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:17 + Rendering sms_sends/new_all.html.erb within layouts/application + Rendered sms_sends/new_all.html.erb within layouts/application (1.2ms) +Completed 200 OK in 32ms (Views: 16.0ms | ActiveRecord: 0.4ms) + + +Started POST "/sms_sends/sms_sends" for 127.0.0.1 at 2018-09-26 11:03:21 +0300 +Processing by SmsSendsController#create_all as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"Fk//on7ciMbiHrPUqc95dWBJBQllLlYVSqTI2UUFKWxYIkLBai58lE0jAV/4RelW12FmuAQB0+iMYB4w67Nk+w==", "sms_send"=>{"contact_id"=>"", "message"=>"send to all"}, "commit"=>"send"} + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:20 + SmsSend Create (0.4ms) INSERT INTO "sms_sends" ("message", "created_at", "updated_at") VALUES (?, ?, ?) [["message", "send to all"], ["created_at", "2018-09-26 08:03:21.047470"], ["updated_at", "2018-09-26 08:03:21.047470"]] + ↳ app/controllers/sms_sends_controller.rb:20 +  (235.4ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:20 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:21 +  (0.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:21 + Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 2]] + ↳ app/controllers/sms_sends_controller.rb:22 +No template found for SmsSendsController#create_all, rendering head :no_content +Completed 204 No Content in 1489ms (ActiveRecord: 236.4ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-26 15:12:57 +0300 +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Processing by ContactsController#index as HTML +Completed 401 Unauthorized in 37ms (ActiveRecord: 0.0ms) + + +Started GET "/users/sign_in" for 127.0.0.1 at 2018-09-26 15:12:57 +0300 +Processing by Devise::SessionsController#new as HTML + Rendering devise/sessions/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (1.5ms) + Rendered devise/sessions/new.html.erb within layouts/application (14.7ms) +Completed 200 OK in 744ms (Views: 726.6ms | ActiveRecord: 1.2ms) + + +Started GET "/users/sign_up" for 127.0.0.1 at 2018-09-26 15:13:00 +0300 +Processing by Devise::RegistrationsController#new as HTML + Rendering devise/registrations/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (2.1ms) + Rendered devise/registrations/new.html.erb within layouts/application (6.2ms) +Completed 200 OK in 31ms (Views: 29.7ms | ActiveRecord: 0.0ms) + + +Started POST "/users" for 127.0.0.1 at 2018-09-26 15:13:03 +0300 +Processing by Devise::RegistrationsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"Cbse1vyfqFZeeS1df7tMEYLdUcCn+WeQAnYuN8anpuFzb0zJf/mlNfdjDbq4oBWYq5jsxigJ5drVEGPzla+Jjg==", "user"=>{"email"=>"fatusov@zabejuw.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"} +  (0.1ms) begin transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "fatusov@zabejuw.com"], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Create (3.0ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "fatusov@zabejuw.com"], ["encrypted_password", "$2a$11$hKU7KS7pr3isP/RBs4zjTe2S.DafoCXNGb0K06ue7..C7z2sscmLW"], ["created_at", "2018-09-26 12:13:03.366369"], ["updated_at", "2018-09-26 12:13:03.366369"]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (77.2ms) commit transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/ +Completed 302 Found in 464ms (ActiveRecord: 80.6ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-26 15:13:03 +0300 +Processing by ContactsController#index as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 3]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (15.9ms) +Completed 200 OK in 103ms (Views: 47.5ms | ActiveRecord: 1.6ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-26 15:13:08 +0300 +Processing by ContactsController#new as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (6.6ms) +Completed 200 OK in 122ms (Views: 47.1ms | ActiveRecord: 0.9ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-26 15:13:16 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"EGOC+W44E7diHfTuvNippYpSGyv//wtszs+jibW50AZ4MUQKneTxUrnvjWsEYEJKbfXEQVxaVok14AA2akTxmg==", "contact"=>{"first_name"=>"Guy", "last_name"=>"Mcmillan", "phonenumber"=>"254739262425"}, "commit"=>"create"} + User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 + Contact Create (1.4ms) INSERT INTO "contacts" ("first_name", "last_name", "phonenumber", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["first_name", "Guy"], ["last_name", "Mcmillan"], ["phonenumber", 254739262425], ["created_at", "2018-09-26 12:13:16.602669"], ["updated_at", "2018-09-26 12:13:16.602669"], ["user_id", 3]] + ↳ app/controllers/contacts_controller.rb:10 +  (134.4ms) commit transaction + ↳ app/controllers/contacts_controller.rb:10 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 257ms (ActiveRecord: 137.0ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-26 15:13:16 +0300 +Processing by ContactsController#index as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 3]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (4.2ms) +Completed 200 OK in 47ms (Views: 40.3ms | ActiveRecord: 0.7ms) + + +Started GET "/sms_sends/new?id=3" for 127.0.0.1 at 2018-09-26 15:13:18 +0300 +Processing by SmsSendsController#new as HTML + Parameters: {"id"=>"3"} + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:6 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (18.6ms) +Completed 200 OK in 113ms (Views: 53.3ms | ActiveRecord: 1.8ms) + + +Started GET "/sms_sends/new?id=3" for 127.0.0.1 at 2018-09-26 15:14:56 +0300 +Processing by SmsSendsController#new as HTML + Parameters: {"id"=>"3"} + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:5 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (2.5ms) +Completed 200 OK in 65ms (Views: 23.7ms | ActiveRecord: 3.0ms) + + +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-26 15:15:03 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"z/Z8o9KpBbQxa3ZrNtXzjSbmrRFGWeEvWDlxhiC72n6WTGpORJNQbDLvQoJCcczvKgE4jf29MHOBQJDgc8JdvA==", "sms_send"=>{"contact_id"=>"3", "message"=>"sema beb"}, "commit"=>"send"} + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:8 + SmsSend Create (0.8ms) INSERT INTO "sms_sends" ("message", "created_at", "updated_at", "contact_id") VALUES (?, ?, ?, ?) [["message", "sema beb"], ["created_at", "2018-09-26 12:15:03.171674"], ["updated_at", "2018-09-26 12:15:03.171674"], ["contact_id", 3]] + ↳ app/controllers/sms_sends_controller.rb:8 +  (220.4ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:8 +  (0.2ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:9 +  (0.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:9 + Contact Load (0.7ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? AND "contacts"."id" = ? LIMIT ? [["user_id", 3], ["id", 3], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:10 +Redirected to http://localhost:3000/contacts +Completed 500 Internal Server Error in 1367ms (ActiveRecord: 223.0ms) + + + +NameError (undefined local variable or method `success' for #): + +app/controllers/sms_sends_controller.rb:13:in `create' +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-26 15:15:31 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"z/Z8o9KpBbQxa3ZrNtXzjSbmrRFGWeEvWDlxhiC72n6WTGpORJNQbDLvQoJCcczvKgE4jf29MHOBQJDgc8JdvA==", "sms_send"=>{"contact_id"=>"3", "message"=>"sema beb"}, "commit"=>"send"} + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:8 + SmsSend Create (0.7ms) INSERT INTO "sms_sends" ("message", "created_at", "updated_at", "contact_id") VALUES (?, ?, ?, ?) [["message", "sema beb"], ["created_at", "2018-09-26 12:15:31.644744"], ["updated_at", "2018-09-26 12:15:31.644744"], ["contact_id", 3]] + ↳ app/controllers/sms_sends_controller.rb:8 +  (153.7ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:8 +  (0.2ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:9 +  (0.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:9 + Contact Load (0.5ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? AND "contacts"."id" = ? LIMIT ? [["user_id", 3], ["id", 3], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:10 +Redirected to http://localhost:3000/contacts +Completed 500 Internal Server Error in 1441ms (ActiveRecord: 158.6ms) + + + +NameError (undefined local variable or method `success' for #): + +app/controllers/sms_sends_controller.rb:13:in `create' +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-26 15:15:42 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"z/Z8o9KpBbQxa3ZrNtXzjSbmrRFGWeEvWDlxhiC72n6WTGpORJNQbDLvQoJCcczvKgE4jf29MHOBQJDgc8JdvA==", "sms_send"=>{"contact_id"=>"3", "message"=>"sema beb"}, "commit"=>"send"} + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:8 + SmsSend Create (0.7ms) INSERT INTO "sms_sends" ("message", "created_at", "updated_at", "contact_id") VALUES (?, ?, ?, ?) [["message", "sema beb"], ["created_at", "2018-09-26 12:15:42.650092"], ["updated_at", "2018-09-26 12:15:42.650092"], ["contact_id", 3]] + ↳ app/controllers/sms_sends_controller.rb:8 +  (232.2ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:8 +  (0.2ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:9 +  (0.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:9 + Contact Load (0.6ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? AND "contacts"."id" = ? LIMIT ? [["user_id", 3], ["id", 3], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:10 +Redirected to http://localhost:3000/contacts +Completed 500 Internal Server Error in 1628ms (ActiveRecord: 234.4ms) + + + +NameError (undefined local variable or method `success' for #): + +app/controllers/sms_sends_controller.rb:13:in `create' +Started GET "/sms_sends/new?id=3" for 127.0.0.1 at 2018-09-26 15:16:01 +0300 +Processing by SmsSendsController#new as HTML + Parameters: {"id"=>"3"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.4ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:5 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (3.1ms) +Completed 200 OK in 79ms (Views: 29.3ms | ActiveRecord: 4.1ms) + + +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-26 15:16:05 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"VFQSBeOpOv8Kroxojt2jyP9TOYPBQIl2R0DFvoHR0d4N7gTodZNvJwkquIH6eZyq87SsH3qkWCqeOSTY0qhWHA==", "sms_send"=>{"contact_id"=>"3", "message"=>"sema"}, "commit"=>"send"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.2ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:8 + SmsSend Create (1.3ms) INSERT INTO "sms_sends" ("message", "created_at", "updated_at", "contact_id") VALUES (?, ?, ?, ?) [["message", "sema"], ["created_at", "2018-09-26 12:16:05.786222"], ["updated_at", "2018-09-26 12:16:05.786222"], ["contact_id", 3]] + ↳ app/controllers/sms_sends_controller.rb:8 +  (202.7ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:8 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:9 +  (0.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:9 + Contact Load (0.4ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? AND "contacts"."id" = ? LIMIT ? [["user_id", 3], ["id", 3], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:10 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 1250ms (ActiveRecord: 205.2ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-26 15:16:07 +0300 +Processing by ContactsController#index as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.4ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 3]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (4.9ms) +Completed 200 OK in 48ms (Views: 43.2ms | ActiveRecord: 0.8ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-26 15:32:06 +0300 +Processing by ContactsController#new as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (2.7ms) +Completed 200 OK in 54ms (Views: 25.5ms | ActiveRecord: 1.8ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-26 15:32:14 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"nvMvM9RLxGxK8eG5xC88ro1CBLuMSaV5by2c/aB/KC32oenAJ5cmiZEDmDx8l9dBauXb0S/s+JyUAj9Cf4IJsQ==", "contact"=>{"first_name"=>"Neville", "last_name"=>"Byers", "phonenumber"=>"254711903303"}, "commit"=>"create"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 + Contact Create (0.4ms) INSERT INTO "contacts" ("first_name", "last_name", "phonenumber", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["first_name", "Neville"], ["last_name", "Byers"], ["phonenumber", 254711903303], ["created_at", "2018-09-26 12:32:14.105829"], ["updated_at", "2018-09-26 12:32:14.105829"], ["user_id", 3]] + ↳ app/controllers/contacts_controller.rb:10 +  (146.2ms) commit transaction + ↳ app/controllers/contacts_controller.rb:10 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 165ms (ActiveRecord: 147.1ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-26 15:32:14 +0300 +Processing by ContactsController#index as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.4ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 3]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (5.6ms) +Completed 200 OK in 79ms (Views: 72.6ms | ActiveRecord: 0.9ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-26 15:33:06 +0300 +Processing by ContactsController#index as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 3]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (14.5ms) +Completed 200 OK in 60ms (Views: 36.3ms | ActiveRecord: 2.3ms) + + +Started GET "/sms_sends/sms_sends/new_all" for 127.0.0.1 at 2018-09-26 15:33:09 +0300 +Processing by SmsSendsController#new_all as HTML + User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.6ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" IS NULL LIMIT ? [["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:17 + Rendering sms_sends/new_all.html.erb within layouts/application + Rendered sms_sends/new_all.html.erb within layouts/application (6.0ms) +Completed 200 OK in 156ms (Views: 48.9ms | ActiveRecord: 2.3ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-26 15:33:13 +0300 +Processing by ContactsController#new as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (2.7ms) +Completed 200 OK in 41ms (Views: 36.4ms | ActiveRecord: 0.3ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-26 15:33:20 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"IBspBMXMKIdPXNUNqqTuQVryzYIbj2ys5RT5PKI/3LJISe/3NhDKYpSurIgSHAWuvVUS6LgqMUkeO1qDfcL9Lg==", "contact"=>{"first_name"=>"Anika", "last_name"=>"Holman", "phonenumber"=>"254725369194"}, "commit"=>"create"} + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.3ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 + Contact Create (1.3ms) INSERT INTO "contacts" ("first_name", "last_name", "phonenumber", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["first_name", "Anika"], ["last_name", "Holman"], ["phonenumber", 254725369194], ["created_at", "2018-09-26 12:33:20.949180"], ["updated_at", "2018-09-26 12:33:20.949180"], ["user_id", 3]] + ↳ app/controllers/contacts_controller.rb:10 +  (248.1ms) commit transaction + ↳ app/controllers/contacts_controller.rb:10 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 269ms (ActiveRecord: 250.2ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-26 15:33:21 +0300 +Processing by ContactsController#index as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 3]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (5.2ms) +Completed 200 OK in 43ms (Views: 37.7ms | ActiveRecord: 0.7ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-26 15:50:54 +0300 +Processing by ContactsController#index as HTML + User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.5ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 3]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (8.1ms) +Completed 200 OK in 57ms (Views: 47.4ms | ActiveRecord: 1.2ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-26 15:50:58 +0300 +Processing by ContactsController#new as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (2.9ms) +Completed 200 OK in 45ms (Views: 40.8ms | ActiveRecord: 0.3ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-26 15:51:04 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"akeLZwzFTy0+sVAyvqq6Sewl9PXdzJ/y4TIDsNaPovUCFU2U/xmtyOVDKbcGElGmC4Irn35pwhcaHaAPCXKDaQ==", "contact"=>{"first_name"=>"Conan", "last_name"=>"Wong", "phonenumber"=>"2455555552225"}, "commit"=>"create"} + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 +  (0.1ms) rollback transaction + ↳ app/controllers/contacts_controller.rb:10 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (2.7ms) +Completed 200 OK in 27ms (Views: 20.8ms | ActiveRecord: 0.5ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-26 15:51:10 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"azdnGBA3e42weksPbGhlYFBRBKxf2xzibONkcWUWr/MyjXH1hg0uVbP+f+YYzFoCXLaRMOQ/zb61moUXNm8oMQ==", "contact"=>{"first_name"=>"Conan", "last_name"=>"Wong", "phonenumber"=>"24555555522"}, "commit"=>"create"} + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 +  (0.2ms) rollback transaction + ↳ app/controllers/contacts_controller.rb:10 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (2.5ms) +Completed 200 OK in 40ms (Views: 29.9ms | ActiveRecord: 0.8ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-26 15:51:14 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"UOF54T6CtbgU59Q3AKNRxtv2H8pF+9SZcUmo7GTvbZsJW28MqLjgYBdj4N50B26k1xGKVv4fBcWoMEmKN5bqWQ==", "contact"=>{"first_name"=>"Conan", "last_name"=>"Wong", "phonenumber"=>"245555555225"}, "commit"=>"create"} + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.2ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 + Contact Create (0.9ms) INSERT INTO "contacts" ("first_name", "last_name", "phonenumber", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["first_name", "Conan"], ["last_name", "Wong"], ["phonenumber", 245555555225], ["created_at", "2018-09-26 12:51:14.381049"], ["updated_at", "2018-09-26 12:51:14.381049"], ["user_id", 3]] + ↳ app/controllers/contacts_controller.rb:10 +  (188.2ms) commit transaction + ↳ app/controllers/contacts_controller.rb:10 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 202ms (ActiveRecord: 189.8ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-26 15:51:14 +0300 +Processing by ContactsController#index as HTML + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 3]] + ↳ app/views/contacts/index.html.erb:14 + Rendered contacts/index.html.erb within layouts/application (4.3ms) +Completed 200 OK in 38ms (Views: 32.1ms | ActiveRecord: 0.8ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-26 15:52:06 +0300 +Processing by ContactsController#index as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 3]] + ↳ app/views/contacts/index.html.erb:15 + Rendered contacts/index.html.erb within layouts/application (14.4ms) +Completed 200 OK in 62ms (Views: 35.6ms | ActiveRecord: 2.4ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-26 15:52:10 +0300 +Processing by ContactsController#new as HTML + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (6.1ms) +Completed 200 OK in 49ms (Views: 42.7ms | ActiveRecord: 0.6ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-26 15:52:18 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"fomzhsppGVl+7IibN/VzzbYklG1W68NDn0ZGhrwY71gW23V1ObX7vKUe8R6PTZgiUYNLB/VOnqZkaeU5Y+XOxA==", "contact"=>{"first_name"=>"Sylvester", "last_name"=>"Rivers", "phonenumber"=>"254711888999"}, "commit"=>"create"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.2ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 + Contact Create (11.6ms) INSERT INTO "contacts" ("first_name", "last_name", "phonenumber", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["first_name", "Sylvester"], ["last_name", "Rivers"], ["phonenumber", 254711888999], ["created_at", "2018-09-26 12:52:18.815877"], ["updated_at", "2018-09-26 12:52:18.815877"], ["user_id", 3]] + ↳ app/controllers/contacts_controller.rb:10 +  (265.9ms) commit transaction + ↳ app/controllers/contacts_controller.rb:10 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 290ms (ActiveRecord: 278.0ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-26 15:52:19 +0300 +Processing by ContactsController#index as HTML + User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 3]] + ↳ app/views/contacts/index.html.erb:15 + Rendered contacts/index.html.erb within layouts/application (7.5ms) +Completed 200 OK in 51ms (Views: 44.4ms | ActiveRecord: 0.9ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-26 15:53:01 +0300 +Processing by ContactsController#index as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 3]] + ↳ app/views/contacts/index.html.erb:15 + Rendered contacts/index.html.erb within layouts/application (13.8ms) +Completed 200 OK in 56ms (Views: 34.2ms | ActiveRecord: 2.2ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-26 15:53:04 +0300 +Processing by ContactsController#new as HTML + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (4.3ms) +Completed 200 OK in 50ms (Views: 45.1ms | ActiveRecord: 0.5ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-26 15:53:10 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"jHrvPsE+cOGldEwHS7S/JVUIRyXf/CC/S6Ts0YZ883zkKCnNMuKSBH6GNYLzDFTKsq+YT3xZfVqwi09uWYHS4A==", "contact"=>{"first_name"=>"Kristen", "last_name"=>"Gutierrez", "phonenumber"=>"254711903303"}, "commit"=>"create"} + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 + Contact Create (0.5ms) INSERT INTO "contacts" ("first_name", "last_name", "phonenumber", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["first_name", "Kristen"], ["last_name", "Gutierrez"], ["phonenumber", 254711903303], ["created_at", "2018-09-26 12:53:10.389694"], ["updated_at", "2018-09-26 12:53:10.389694"], ["user_id", 3]] + ↳ app/controllers/contacts_controller.rb:10 +  (153.5ms) commit transaction + ↳ app/controllers/contacts_controller.rb:10 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 166ms (ActiveRecord: 154.6ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-26 15:53:10 +0300 +Processing by ContactsController#index as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 3]] + ↳ app/views/contacts/index.html.erb:15 + Rendered contacts/index.html.erb within layouts/application (7.0ms) +Completed 200 OK in 46ms (Views: 41.2ms | ActiveRecord: 0.8ms) + + +Started DELETE "/users/sign_out" for 127.0.0.1 at 2018-09-26 15:53:28 +0300 +Processing by Devise::SessionsController#destroy as HTML + Parameters: {"authenticity_token"=>"rFuaUjNu6G8uTn8ZfwsL2Qa5ixhqKbxjRtkETp85fBX14Yy/pVS9ty3KS/ALrzS7Cl4ehNHNbT+foOUozED71w=="} + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) commit transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/ +Completed 302 Found in 30ms (ActiveRecord: 0.7ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-26 15:53:28 +0300 +Processing by ContactsController#index as HTML +Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) + + +Started GET "/users/sign_in" for 127.0.0.1 at 2018-09-26 15:53:28 +0300 +Processing by Devise::SessionsController#new as HTML + Rendering devise/sessions/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (1.6ms) + Rendered devise/sessions/new.html.erb within layouts/application (7.6ms) +Completed 200 OK in 41ms (Views: 39.4ms | ActiveRecord: 0.0ms) + + +Started POST "/users/sign_in" for 127.0.0.1 at 2018-09-26 15:53:31 +0300 +Processing by Devise::SessionsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"gHd/+3kb77qLkiH+uF8KC/lrnTPSexDxELSszfvsowwwZVHKhd2V7EwEOOX4Mt1eTcnY6XXgk9r4edt/XGSmcw==", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "admin@admin.com"], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Completed 401 Unauthorized in 71ms (ActiveRecord: 0.3ms) + + +Processing by Devise::SessionsController#new as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"gHd/+3kb77qLkiH+uF8KC/lrnTPSexDxELSszfvsowwwZVHKhd2V7EwEOOX4Mt1eTcnY6XXgk9r4edt/XGSmcw==", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} + Rendering devise/sessions/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (0.9ms) + Rendered devise/sessions/new.html.erb within layouts/application (3.5ms) +Completed 200 OK in 230ms (Views: 23.1ms | ActiveRecord: 0.0ms) + + +Started GET "/users/sign_up" for 127.0.0.1 at 2018-09-26 15:53:47 +0300 +Processing by Devise::RegistrationsController#new as HTML + Rendering devise/registrations/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (1.5ms) + Rendered devise/registrations/new.html.erb within layouts/application (6.2ms) +Completed 200 OK in 35ms (Views: 33.0ms | ActiveRecord: 0.0ms) + + +Started POST "/users" for 127.0.0.1 at 2018-09-26 15:53:58 +0300 +Processing by Devise::RegistrationsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"ZwnGnYEnmumUz5QlHySaWegkm3UyJfIMf85+6v9QgAP0C/f5djxFoE+UzWUfKY+7RnbeOJ6sw4eicruTfYYoIw==", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"} +  (0.1ms) begin transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "admin@admin.com"], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Create (0.7ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "admin@admin.com"], ["encrypted_password", "$2a$11$QucwU/CV0biAKNJR.NgcYuXVHgF5R7WBVDO6VGH3IzXwi0vHv5aoe"], ["created_at", "2018-09-26 12:53:59.174159"], ["updated_at", "2018-09-26 12:53:59.174159"]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (130.3ms) commit transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/ +Completed 302 Found in 312ms (ActiveRecord: 131.2ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-26 15:53:59 +0300 +Processing by ContactsController#index as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 4], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 4]] + ↳ app/views/contacts/index.html.erb:15 + Rendered contacts/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 33ms (Views: 29.7ms | ActiveRecord: 0.5ms) + + +Started DELETE "/users/sign_out" for 127.0.0.1 at 2018-09-26 15:54:03 +0300 +Processing by Devise::SessionsController#destroy as HTML + Parameters: {"authenticity_token"=>"E80PE56W0VEvhOXdZ84cZve6uGhghf9+CKAhIUk5Rr6j3yEiYlCrB+gS/MYno8szQxj9sscefFXgbVaT7rFDwQ=="} + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 4], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.2ms) commit transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/ +Completed 302 Found in 10ms (ActiveRecord: 0.7ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-26 15:54:03 +0300 +Processing by ContactsController#index as HTML +Completed 401 Unauthorized in 2ms (ActiveRecord: 0.0ms) + + +Started GET "/users/sign_in" for 127.0.0.1 at 2018-09-26 15:54:04 +0300 +Processing by Devise::SessionsController#new as HTML + Rendering devise/sessions/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (1.0ms) + Rendered devise/sessions/new.html.erb within layouts/application (3.7ms) +Completed 200 OK in 24ms (Views: 22.6ms | ActiveRecord: 0.0ms) + + +Started POST "/users/sign_in" for 127.0.0.1 at 2018-09-26 15:54:09 +0300 +Processing by Devise::SessionsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"ckCk6yOiAByg6q5JtZpaX6QlXFqcwXmJNm7kUOy03HNBUCxkRIBJ9zGyl12FLTjVoTL956lW0oUqLHXhWnZ0hw==", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"} + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "admin@admin.com"], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/ +Completed 302 Found in 233ms (ActiveRecord: 0.5ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-26 15:54:09 +0300 +Processing by ContactsController#index as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 4], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 4]] + ↳ app/views/contacts/index.html.erb:15 + Rendered contacts/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 18ms (Views: 16.2ms | ActiveRecord: 0.3ms) + + +Started GET "/users/sign_in" for 127.0.0.1 at 2018-09-26 15:54:11 +0300 +Processing by Devise::SessionsController#new as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 4], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/ +Filter chain halted as :require_no_authentication rendered or redirected +Completed 302 Found in 5ms (ActiveRecord: 0.3ms) + + +Started DELETE "/users/sign_out" for 127.0.0.1 at 2018-09-26 15:54:16 +0300 +Processing by Devise::SessionsController#destroy as HTML + Parameters: {"authenticity_token"=>"2W+ieA7x9Y9hzboMyTPyutijcooAtypVs7/EEVuDrARek1/UEsw+oEZzn7No0nWKjRRk8+TyniODY0fGo4aYhA=="} + User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 4], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.5ms) begin transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) commit transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/ +Completed 302 Found in 11ms (ActiveRecord: 1.6ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-26 15:54:16 +0300 +Processing by ContactsController#index as HTML +Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) + + +Started GET "/users/sign_in" for 127.0.0.1 at 2018-09-26 15:54:16 +0300 +Processing by Devise::SessionsController#new as HTML + Rendering devise/sessions/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (1.3ms) + Rendered devise/sessions/new.html.erb within layouts/application (5.0ms) +Completed 200 OK in 34ms (Views: 32.9ms | ActiveRecord: 0.0ms) + + +Started GET "/users/sign_up" for 127.0.0.1 at 2018-09-26 15:54:34 +0300 +Processing by Devise::RegistrationsController#new as HTML + Rendering devise/registrations/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (1.6ms) + Rendered devise/registrations/new.html.erb within layouts/application (9.8ms) +Completed 200 OK in 42ms (Views: 40.0ms | ActiveRecord: 0.0ms) + + +Started POST "/users" for 127.0.0.1 at 2018-09-26 15:54:37 +0300 +Processing by Devise::RegistrationsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"JBVNUlV8aHWJuILy9zG8a+izar4Z6PlvFwaFpfu7uUVuy/4snwRtLFavImyRx5tQHhodvXPFnAH2bbIl3XpV2g==", "user"=>{"email"=>"hyxijaq@ticobo.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"} +  (0.1ms) begin transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "hyxijaq@ticobo.com"], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Create (1.3ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "hyxijaq@ticobo.com"], ["encrypted_password", "$2a$11$fo2sucx/HTBbJTaZCpLG.eohosahx9BHAdOGuk3bT.XRGyENQdkfe"], ["created_at", "2018-09-26 12:54:37.639100"], ["updated_at", "2018-09-26 12:54:37.639100"]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (111.2ms) commit transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/ +Completed 302 Found in 298ms (ActiveRecord: 112.9ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-26 15:54:37 +0300 +Processing by ContactsController#index as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 5], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 5]] + ↳ app/views/contacts/index.html.erb:15 + Rendered contacts/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 31ms (Views: 26.2ms | ActiveRecord: 0.4ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-26 15:54:39 +0300 +Processing by ContactsController#new as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 5], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (7.5ms) +Completed 200 OK in 39ms (Views: 35.4ms | ActiveRecord: 0.3ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-26 15:54:45 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"jUVUC6wxhSZ7BvA2fsDlxTQcbEdYrWR/mnmxyqYUzr97Df3zn5zLdmZTxpLCe93oGykAp3cr6uxDn8bxpz7pfw==", "contact"=>{"first_name"=>"Myra", "last_name"=>"Ball", "phonenumber"=>"254711903303"}, "commit"=>"create"} + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 5], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 + Contact Create (1.6ms) INSERT INTO "contacts" ("first_name", "last_name", "phonenumber", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["first_name", "Myra"], ["last_name", "Ball"], ["phonenumber", 254711903303], ["created_at", "2018-09-26 12:54:45.956639"], ["updated_at", "2018-09-26 12:54:45.956639"], ["user_id", 5]] + ↳ app/controllers/contacts_controller.rb:10 +  (290.3ms) commit transaction + ↳ app/controllers/contacts_controller.rb:10 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 303ms (ActiveRecord: 292.2ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-26 15:54:46 +0300 +Processing by ContactsController#index as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 5], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 5]] + ↳ app/views/contacts/index.html.erb:15 + Rendered contacts/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 24ms (Views: 21.9ms | ActiveRecord: 0.3ms) + + +Started GET "/sms_sends/new?id=9" for 127.0.0.1 at 2018-09-26 15:54:48 +0300 +Processing by SmsSendsController#new as HTML + Parameters: {"id"=>"9"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 5], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:5 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (1.8ms) +Completed 200 OK in 34ms (Views: 18.4ms | ActiveRecord: 1.5ms) + + +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-26 15:54:54 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"v/E/iG/82+1IewzgyzBb3uBoBG6bbr4x94v8Z04XQu4hdStBuVIQmIRfbJf2K/wmR6wbQMvRRi4v8wzQM6dJrQ==", "sms_send"=>{"contact_id"=>"9", "message"=>"Hey Geetty"}, "commit"=>"send"} + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 5], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:8 + SmsSend Create (1.6ms) INSERT INTO "sms_sends" ("message", "created_at", "updated_at", "contact_id") VALUES (?, ?, ?, ?) [["message", "Hey Geetty"], ["created_at", "2018-09-26 12:54:54.547680"], ["updated_at", "2018-09-26 12:54:54.547680"], ["contact_id", 9]] + ↳ app/controllers/sms_sends_controller.rb:8 +  (269.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:8 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:9 +  (0.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:9 + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? AND "contacts"."id" = ? LIMIT ? [["user_id", 5], ["id", 9], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:10 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 2080ms (ActiveRecord: 271.4ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-26 15:54:56 +0300 +Processing by ContactsController#index as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 5], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 5]] + ↳ app/views/contacts/index.html.erb:15 + Rendered contacts/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 29ms (Views: 26.0ms | ActiveRecord: 0.4ms) + + +Started GET "/sms_sends/new?id=9" for 127.0.0.1 at 2018-09-26 15:59:07 +0300 +Processing by SmsSendsController#new as HTML + Parameters: {"id"=>"9"} + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 5], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:5 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (2.3ms) +Completed 200 OK in 60ms (Views: 20.9ms | ActiveRecord: 2.7ms) + + +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-26 15:59:10 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"06nAX8e8Nb0kttDnqXZcDBr1lZCQM58/1Cufujf5jBJNLdSWERL+yOiSsJCUbfv0vTGKvsCMZyAMU28NSkmHUQ==", "sms_send"=>{"contact_id"=>"9", "message"=>"yo"}, "commit"=>"send"} + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 5], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.3ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:8 + SmsSend Create (0.4ms) INSERT INTO "sms_sends" ("message", "created_at", "updated_at", "contact_id") VALUES (?, ?, ?, ?) [["message", "yo"], ["created_at", "2018-09-26 12:59:10.466221"], ["updated_at", "2018-09-26 12:59:10.466221"], ["contact_id", 9]] + ↳ app/controllers/sms_sends_controller.rb:8 +  (212.6ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:8 +  (0.2ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:9 +  (0.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:9 + Contact Load (0.4ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? AND "contacts"."id" = ? LIMIT ? [["user_id", 5], ["id", 9], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:10 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 1528ms (ActiveRecord: 214.2ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-26 15:59:11 +0300 +Processing by ContactsController#index as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 5], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 5]] + ↳ app/views/contacts/index.html.erb:15 + Rendered contacts/index.html.erb within layouts/application (3.8ms) +Completed 200 OK in 32ms (Views: 27.9ms | ActiveRecord: 0.6ms) + + +Started GET "/sms_sends/new?id=9" for 127.0.0.1 at 2018-09-26 15:59:28 +0300 +Processing by SmsSendsController#new as HTML + Parameters: {"id"=>"9"} + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 5], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:5 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (2.2ms) +Completed 200 OK in 66ms (Views: 19.6ms | ActiveRecord: 3.4ms) + + +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-26 15:59:33 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"urI71M4G1ztu2tca8f576AGWzfn5x1/BBehAWyTz3I0kNi8dGKgcTqL+t23M5dwQplLS16l4p97dkLDsWUPXzg==", "sms_send"=>{"contact_id"=>"9", "message"=>"gettty"}, "commit"=>"send"} + User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 5], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:8 + SmsSend Create (1.7ms) INSERT INTO "sms_sends" ("message", "created_at", "updated_at", "contact_id") VALUES (?, ?, ?, ?) [["message", "gettty"], ["created_at", "2018-09-26 12:59:33.238799"], ["updated_at", "2018-09-26 12:59:33.238799"], ["contact_id", 9]] + ↳ app/controllers/sms_sends_controller.rb:8 +  (176.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:8 +  (0.2ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:9 +  (0.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:9 + Contact Load (0.6ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? AND "contacts"."id" = ? LIMIT ? [["user_id", 5], ["id", 9], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:10 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 1706ms (ActiveRecord: 179.3ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-26 15:59:34 +0300 +Processing by ContactsController#index as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 5], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.6ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 5]] + ↳ app/views/contacts/index.html.erb:15 + Rendered contacts/index.html.erb within layouts/application (5.9ms) +Completed 200 OK in 43ms (Views: 37.6ms | ActiveRecord: 1.0ms) + + +Started DELETE "/users/sign_out" for 127.0.0.1 at 2018-09-26 16:01:59 +0300 +Processing by Devise::SessionsController#destroy as HTML + Parameters: {"authenticity_token"=>"jxklVDp29rJlHQmugc5KsqVX8VR8hL/+3h9GpfyIqY+4GpkGaaUXjaqMxMEI+u0RAwTRWOYoY2veUHu55wU9FQ=="} + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 5], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.0ms) commit transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/ +Completed 302 Found in 21ms (ActiveRecord: 1.5ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-26 16:01:59 +0300 +Processing by ContactsController#index as HTML +Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) + + +Started GET "/users/sign_in" for 127.0.0.1 at 2018-09-26 16:01:59 +0300 +Processing by Devise::SessionsController#new as HTML + Rendering devise/sessions/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (3.8ms) + Rendered devise/sessions/new.html.erb within layouts/application (8.2ms) +Completed 200 OK in 30ms (Views: 28.0ms | ActiveRecord: 0.0ms) + + +Started GET "/users/sign_up" for 127.0.0.1 at 2018-09-26 16:02:18 +0300 +Processing by Devise::RegistrationsController#new as HTML + Rendering devise/registrations/new.html.erb within layouts/application + Rendered devise/shared/_links.html.erb (1.9ms) + Rendered devise/registrations/new.html.erb within layouts/application (8.4ms) +Completed 200 OK in 49ms (Views: 47.3ms | ActiveRecord: 0.0ms) + + +Started POST "/users" for 127.0.0.1 at 2018-09-26 16:02:21 +0300 +Processing by Devise::RegistrationsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"yNC9lJDVl6NNCezH+19NfeiCzXJ3anpUqcuFYgwRTZWhvHZMoTRLRf9u9F73aQ0Bw5IeuPMJRZyk4kimGMqxfQ==", "user"=>{"email"=>"qaneh@wil.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"} +  (0.1ms) begin transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "qaneh@wil.com"], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + User Create (0.8ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "qaneh@wil.com"], ["encrypted_password", "$2a$11$jcqFlG9utxkFgtVuL7g7eeGuQ.06HO3rqerja3le/mQH1dTbEQ1k2"], ["created_at", "2018-09-26 13:02:22.167610"], ["updated_at", "2018-09-26 13:02:22.167610"]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (57.2ms) commit transaction + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +Redirected to http://localhost:3000/ +Completed 302 Found in 239ms (ActiveRecord: 58.3ms) + + +Started GET "/" for 127.0.0.1 at 2018-09-26 16:02:22 +0300 +Processing by ContactsController#index as HTML + User Load (1.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 6], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 6]] + ↳ app/views/contacts/index.html.erb:15 + Rendered contacts/index.html.erb within layouts/application (3.5ms) +Completed 200 OK in 36ms (Views: 26.6ms | ActiveRecord: 1.8ms) + + +Started GET "/contacts/new" for 127.0.0.1 at 2018-09-26 16:02:23 +0300 +Processing by ContactsController#new as HTML + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 6], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/new.html.erb within layouts/application + Rendered contacts/new.html.erb within layouts/application (2.5ms) +Completed 200 OK in 46ms (Views: 26.5ms | ActiveRecord: 0.9ms) + + +Started POST "/contacts" for 127.0.0.1 at 2018-09-26 16:02:30 +0300 +Processing by ContactsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"7Z0rJi8gVi88DhzRQgWKq2DUcaDoXy3TF1StJ2ucSpjULC8lxQPsyWMHL8sfXh7QMKIA+/EK3GisfLRk4Zxk4A==", "contact"=>{"first_name"=>"Regan", "last_name"=>"Cunningham", "phonenumber"=>"254711903303"}, "commit"=>"create"} + User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 6], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/contacts_controller.rb:10 + Contact Create (0.7ms) INSERT INTO "contacts" ("first_name", "last_name", "phonenumber", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["first_name", "Regan"], ["last_name", "Cunningham"], ["phonenumber", 254711903303], ["created_at", "2018-09-26 13:02:30.181186"], ["updated_at", "2018-09-26 13:02:30.181186"], ["user_id", 6]] + ↳ app/controllers/contacts_controller.rb:10 +  (212.3ms) commit transaction + ↳ app/controllers/contacts_controller.rb:10 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 226ms (ActiveRecord: 213.5ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-26 16:02:30 +0300 +Processing by ContactsController#index as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 6], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 6]] + ↳ app/views/contacts/index.html.erb:15 + Rendered contacts/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 26ms (Views: 23.4ms | ActiveRecord: 0.3ms) + + +Started GET "/sms_sends/new?id=10" for 127.0.0.1 at 2018-09-26 16:02:32 +0300 +Processing by SmsSendsController#new as HTML + Parameters: {"id"=>"10"} + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 6], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.9ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:5 + Rendering sms_sends/new.html.erb within layouts/application + Rendered sms_sends/new.html.erb within layouts/application (2.3ms) +Completed 200 OK in 54ms (Views: 33.0ms | ActiveRecord: 2.2ms) + + +Started POST "/sms_sends" for 127.0.0.1 at 2018-09-26 16:02:39 +0300 +Processing by SmsSendsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"P5+XGDboE29vH2xjR/30zDRbS5aRyRIK1Bdm8HqfpVSWERpB8ndqgaS1MDPkdPz0jW9HvKG1ttj9KeNtnPKLog==", "sms_send"=>{"contact_id"=>"10", "message"=>"Hey Regan!"}, "commit"=>"send"} + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 6], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:8 + SmsSend Create (0.3ms) INSERT INTO "sms_sends" ("message", "created_at", "updated_at", "contact_id") VALUES (?, ?, ?, ?) [["message", "Hey Regan!"], ["created_at", "2018-09-26 13:02:39.293861"], ["updated_at", "2018-09-26 13:02:39.293861"], ["contact_id", 10]] + ↳ app/controllers/sms_sends_controller.rb:8 +  (230.3ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:8 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:9 +  (0.0ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:9 + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? AND "contacts"."id" = ? LIMIT ? [["user_id", 6], ["id", 10], ["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:10 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 1620ms (ActiveRecord: 231.2ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-26 16:02:40 +0300 +Processing by ContactsController#index as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 6], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 6]] + ↳ app/views/contacts/index.html.erb:15 + Rendered contacts/index.html.erb within layouts/application (5.4ms) +Completed 200 OK in 25ms (Views: 21.9ms | ActiveRecord: 0.4ms) + + +Started GET "/sms_sends/sms_sends/new_all" for 127.0.0.1 at 2018-09-26 16:02:43 +0300 +Processing by SmsSendsController#new_all as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 6], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" IS NULL LIMIT ? [["LIMIT", 1]] + ↳ app/controllers/sms_sends_controller.rb:18 + Rendering sms_sends/new_all.html.erb within layouts/application + Rendered sms_sends/new_all.html.erb within layouts/application (1.8ms) +Completed 200 OK in 40ms (Views: 35.5ms | ActiveRecord: 0.6ms) + + +Started POST "/sms_sends/sms_sends" for 127.0.0.1 at 2018-09-26 16:02:49 +0300 +Processing by SmsSendsController#create_all as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"gVYsYTWSpNTuzSyhGNQQmtY+k2NrhKG0IQ47z5njgeSiJEo568L7mP/mUdWtIpFvp/ErdAGTQGla1DdYClQcmw==", "sms_send"=>{"contact_id"=>"", "message"=>"Hey everyone"}, "commit"=>"send"} + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 6], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:21 + SmsSend Create (1.1ms) INSERT INTO "sms_sends" ("message", "created_at", "updated_at") VALUES (?, ?, ?) [["message", "Hey everyone"], ["created_at", "2018-09-26 13:02:49.743773"], ["updated_at", "2018-09-26 13:02:49.743773"]] + ↳ app/controllers/sms_sends_controller.rb:21 +  (195.5ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:21 +  (0.1ms) begin transaction + ↳ app/controllers/sms_sends_controller.rb:22 +  (0.1ms) commit transaction + ↳ app/controllers/sms_sends_controller.rb:22 + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 6]] + ↳ app/controllers/sms_sends_controller.rb:23 +Redirected to http://localhost:3000/contacts +Completed 302 Found in 1414ms (ActiveRecord: 197.4ms) + + +Started GET "/contacts" for 127.0.0.1 at 2018-09-26 16:02:51 +0300 +Processing by ContactsController#index as HTML + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 6], ["LIMIT", 1]] + ↳ /home/getty/.rvm/gems/ruby-2.4.1/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98 + Rendering contacts/index.html.erb within layouts/application + Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 6]] + ↳ app/views/contacts/index.html.erb:15 + Rendered contacts/index.html.erb within layouts/application (2.8ms) +Completed 200 OK in 27ms (Views: 23.5ms | ActiveRecord: 0.4ms) + + diff --git a/package.json b/package.json new file mode 100644 index 0000000..a6e93b8 --- /dev/null +++ b/package.json @@ -0,0 +1,5 @@ +{ + "name": "RailsGirlsCodeChallenge", + "private": true, + "dependencies": {} +} diff --git a/public/404.html b/public/404.html new file mode 100644 index 0000000..2be3af2 --- /dev/null +++ b/public/404.html @@ -0,0 +1,67 @@ + + + + The page you were looking for doesn't exist (404) + + + + + + +

+
+

The page you were looking for doesn't exist.

+

You may have mistyped the address or the page may have moved.

+
+

If you are the application owner check the logs for more information.

+
+ + diff --git a/public/422.html b/public/422.html new file mode 100644 index 0000000..c08eac0 --- /dev/null +++ b/public/422.html @@ -0,0 +1,67 @@ + + + + The change you wanted was rejected (422) + + + + + + +
+
+

The change you wanted was rejected.

+

Maybe you tried to change something you didn't have access to.

+
+

If you are the application owner check the logs for more information.

+
+ + diff --git a/public/500.html b/public/500.html new file mode 100644 index 0000000..78a030a --- /dev/null +++ b/public/500.html @@ -0,0 +1,66 @@ + + + + We're sorry, but something went wrong (500) + + + + + + +
+
+

We're sorry, but something went wrong.

+
+

If you are the application owner check the logs for more information.

+
+ + diff --git a/public/apple-touch-icon-precomposed.png b/public/apple-touch-icon-precomposed.png new file mode 100644 index 0000000..e69de29 diff --git a/public/apple-touch-icon.png b/public/apple-touch-icon.png new file mode 100644 index 0000000..e69de29 diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000..e69de29 diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 0000000..37b576a --- /dev/null +++ b/public/robots.txt @@ -0,0 +1 @@ +# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file diff --git a/storage/.keep b/storage/.keep new file mode 100644 index 0000000..e69de29 diff --git a/test/application_system_test_case.rb b/test/application_system_test_case.rb new file mode 100644 index 0000000..d19212a --- /dev/null +++ b/test/application_system_test_case.rb @@ -0,0 +1,5 @@ +require "test_helper" + +class ApplicationSystemTestCase < ActionDispatch::SystemTestCase + driven_by :selenium, using: :chrome, screen_size: [1400, 1400] +end diff --git a/test/controllers/.keep b/test/controllers/.keep new file mode 100644 index 0000000..e69de29 diff --git a/test/controllers/contacts_controller_test.rb b/test/controllers/contacts_controller_test.rb new file mode 100644 index 0000000..4116591 --- /dev/null +++ b/test/controllers/contacts_controller_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class ContactsControllerTest < ActionDispatch::IntegrationTest + # test "the truth" do + # assert true + # end +end diff --git a/test/controllers/sms_sends_controller_test.rb b/test/controllers/sms_sends_controller_test.rb new file mode 100644 index 0000000..2493a64 --- /dev/null +++ b/test/controllers/sms_sends_controller_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class SmsSendsControllerTest < ActionDispatch::IntegrationTest + # test "the truth" do + # assert true + # end +end diff --git a/test/fixtures/.keep b/test/fixtures/.keep new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/contacts.yml b/test/fixtures/contacts.yml new file mode 100644 index 0000000..f0fcfd8 --- /dev/null +++ b/test/fixtures/contacts.yml @@ -0,0 +1,11 @@ +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +one: + first_name: MyString + last_name: MyString + phonenumber: MyString + +two: + first_name: MyString + last_name: MyString + phonenumber: MyString diff --git a/test/fixtures/files/.keep b/test/fixtures/files/.keep new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/sms_sends.yml b/test/fixtures/sms_sends.yml new file mode 100644 index 0000000..4ead03d --- /dev/null +++ b/test/fixtures/sms_sends.yml @@ -0,0 +1,7 @@ +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +one: + message: MyString + +two: + message: MyString diff --git a/test/fixtures/users.yml b/test/fixtures/users.yml new file mode 100644 index 0000000..80aed36 --- /dev/null +++ b/test/fixtures/users.yml @@ -0,0 +1,11 @@ +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +# This model initially had no columns defined. If you add columns to the +# model remove the '{}' from the fixture names and add the columns immediately +# below each fixture, per the syntax in the comments below +# +one: {} +# column: value +# +two: {} +# column: value diff --git a/test/helpers/.keep b/test/helpers/.keep new file mode 100644 index 0000000..e69de29 diff --git a/test/integration/.keep b/test/integration/.keep new file mode 100644 index 0000000..e69de29 diff --git a/test/mailers/.keep b/test/mailers/.keep new file mode 100644 index 0000000..e69de29 diff --git a/test/models/.keep b/test/models/.keep new file mode 100644 index 0000000..e69de29 diff --git a/test/models/contact_test.rb b/test/models/contact_test.rb new file mode 100644 index 0000000..ccef1f9 --- /dev/null +++ b/test/models/contact_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class ContactTest < ActiveSupport::TestCase + # test "the truth" do + # assert true + # end +end diff --git a/test/models/sms_send_test.rb b/test/models/sms_send_test.rb new file mode 100644 index 0000000..cb14ab3 --- /dev/null +++ b/test/models/sms_send_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class SmsSendTest < ActiveSupport::TestCase + # test "the truth" do + # assert true + # end +end diff --git a/test/models/user_test.rb b/test/models/user_test.rb new file mode 100644 index 0000000..82f61e0 --- /dev/null +++ b/test/models/user_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class UserTest < ActiveSupport::TestCase + # test "the truth" do + # assert true + # end +end diff --git a/test/system/.keep b/test/system/.keep new file mode 100644 index 0000000..e69de29 diff --git a/test/test_helper.rb b/test/test_helper.rb new file mode 100644 index 0000000..3ab84e3 --- /dev/null +++ b/test/test_helper.rb @@ -0,0 +1,10 @@ +ENV['RAILS_ENV'] ||= 'test' +require_relative '../config/environment' +require 'rails/test_help' + +class ActiveSupport::TestCase + # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. + fixtures :all + + # Add more helper methods to be used by all tests here... +end diff --git a/vendor/.keep b/vendor/.keep new file mode 100644 index 0000000..e69de29