>> request.url
=> "http://localhost:3000/ask-help.amp?ptn=pnh"
>> request.path
=> "/ask-help.amp"
| class InitialMigration < ActiveRecord::Migration[5.0] | |
| def change | |
| enable_extension "pgcrypto" unless extension_enabled?("pgcrypto") | |
| end | |
| end |
| # `ERROR: Error installing nokogiri: | |
| # ERROR: Failed to build gem native extension. | |
| # | |
| # current directory: /usr/local/var/rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/nokogiri-1.7.0/ext/nokogiri | |
| # /usr/local/var/rbenv/versions/2.3.1/bin/ruby -r ./siteconf20170103-68488-r71c9j.rb extconf.rb --with-xml=/usr/local/Cellar/libxml2/ --use-system-libraries | |
| # checking if the C compiler accepts ... yes | |
| # checking if the C compiler accepts -Wno-error=unused-command-line-argument-hard-error-in-future... no | |
| # Building nokogiri using system libraries. | |
| # ERROR: cannot discover where libxml2 is located on your system. please make sure `pkg-config` is installed. | |
| # *** extconf.rb failed *** |
| =begin | |
| USAGE: ruby-rewrite -l controller_actions_keyword_args.rb -m <FILE> | |
| This rewriter moves your Rails controller tests from `get action, params, session, flash` to | |
| `get action, params: params, session: session, flash: flash`. | |
| Which is needed if you see the following message in your Rails 5.0 tests : | |
| DEPRECATION WARNING: Using positional arguments in functional tests has been deprecated, | |
| in favor of keyword arguments, and will be removed in Rails 5.1. |