berk / will_filter

rails engine plugin for filtering active_record model objects
MIT License
157 stars 76 forks source link

rails 5.1 fail #67

Open azeemh opened 7 years ago

azeemh commented 7 years ago

tried using this today and after adding to my gemfile and running bundle i got this error.

Terminal Dump:

rails g will_filter /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_dispatch/routing/mapper.rb:79:in check_via': You should not use thematchmethod in your router without specifying an HTTP method. If you want to expose your action to both GET and POST, addvia: [:get, :post]option. If you want to expose your action to GET, usegetin the router: Instead of: match "controller#action" Do: get "controller#action" (ArgumentError) from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_dispatch/routing/mapper.rb:1829:inmap_match' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_dispatch/routing/mapper.rb:1585:in match' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/will_filter-3.1.11/config/routes.rb:25:inblock in <top (required)>' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_dispatch/routing/mapper.rb:629:in instance_exec' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_dispatch/routing/mapper.rb:629:inblock in with_default_scope' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_dispatch/routing/mapper.rb:854:in scope' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_dispatch/routing/mapper.rb:628:inwith_default_scope' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_dispatch/routing/route_set.rb:422:in eval_block' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_dispatch/routing/route_set.rb:406:indraw' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/will_filter-3.1.11/config/routes.rb:24:in <top (required)>' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/dependencies.rb:286:inload' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/dependencies.rb:286:in block in load' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/dependencies.rb:258:inload_dependency' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/dependencies.rb:286:in load' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/application/routes_reloader.rb:55:inblock in load_paths' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/application/routes_reloader.rb:55:in each' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/application/routes_reloader.rb:55:inload_paths' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/application/routes_reloader.rb:18:in reload!' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/application/routes_reloader.rb:41:inblock in updater' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/file_update_checker.rb:81:in execute' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/application/routes_reloader.rb:42:inupdater' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/application/routes_reloader.rb:31:in execute_if_updated' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/application/finisher.rb:128:inblock in ' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/initializable.rb:30:in instance_exec' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/initializable.rb:30:inrun' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/initializable.rb:59:in block in run_initializers' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:228:inblock in tsort_each' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:350:in block (2 levels) in each_strongly_connected_component' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:431:ineach_strongly_connected_component_from' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:349:in block in each_strongly_connected_component' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:347:ineach' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:347:in call' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:347:ineach_strongly_connected_component' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:226:in tsort_each' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:205:intsort_each' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/initializable.rb:58:in run_initializers' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/application.rb:353:ininitialize!' from /Users/azeemhussein/RetentionAnalytics/config/environment.rb:5:in <top (required)>' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/application.rb:92:inrequire' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/application.rb:92:in preload' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/application.rb:143:inserve' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/application.rb:131:in block in run' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/application.rb:125:inloop' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/application.rb:125:in run' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/application/boot.rb:19:in<top (required)>' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in require' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:inrequire' from -e:1:in `

'

berk commented 7 years ago

azeemh, please use the version from master. I haven't published the gem update yet. The master branch does have a fully functional version though.

On 5/15/17 8:22 AM, azeemh wrote:

tried using this today and after adding to my gemfile and running bundle i got this error.

Terminal Dump:

rails g will_filter /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_dispatch/routing/mapper.rb:79:in |check_via': You should not use the|match|method in your router without specifying an HTTP method. If you want to expose your action to both GET and POST, add|via: [:get, :post]|option. If you want to expose your action to GET, use|get|in the router: Instead of: match "controller#action" Do: get "controller#action" (ArgumentError) from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_dispatch/routing/mapper.rb:1829:in|map_match' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_dispatch/routing/mapper.rb:1585:in |match' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/will_filter-3.1.11/config/routes.rb:25:in|block in <top (required)>' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_dispatch/routing/mapper.rb:629:in |instance_exec' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_dispatch/routing/mapper.rb:629:in|block in with_default_scope' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_dispatch/routing/mapper.rb:854:in |scope' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_dispatch/routing/mapper.rb:628:in|with_default_scope' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_dispatch/routing/route_set.rb:422:in |eval_block' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_dispatch/routing/route_set.rb:406:in|draw' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/will_filter-3.1.11/config/routes.rb:24:in |<top (required)>' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/dependencies.rb:286:in|load' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/dependencies.rb:286:in |block in load' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/dependencies.rb:258:in|load_dependency' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/dependencies.rb:286:in |load' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/application/routes_reloader.rb:55:in|block in load_paths' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/application/routes_reloader.rb:55:in |each' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/application/routes_reloader.rb:55:in|load_paths' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/application/routes_reloader.rb:18:in |reload!' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/application/routes_reloader.rb:41:in|block in updater' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/file_update_checker.rb:81:in |execute' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/application/routes_reloader.rb:42:in|updater' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/application/routes_reloader.rb:31:in |execute_if_updated' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/application/finisher.rb:128:in|block in module:Finisher' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/initializable.rb:30:in |instance_exec' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/initializable.rb:30:in|run' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/initializable.rb:59:in |block in run_initializers' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:228:in|block in tsort_each' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:350:in |block (2 levels) in each_strongly_connected_component' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:431:in|each_strongly_connected_component_from' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:349:in |block in each_strongly_connected_component' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:347:in|each' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:347:in |call' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:347:in|each_strongly_connected_component' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:226:in |tsort_each' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:205:in|tsort_each' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/initializable.rb:58:in |run_initializers' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/application.rb:353:in|initialize!' from /Users/azeemhussein/RetentionAnalytics/config/environment.rb:5:in |<top (required)>' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/application.rb:92:in|require' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/application.rb:92:in |preload' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/application.rb:143:in|serve' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/application.rb:131:in |block in run' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/application.rb:125:in|loop' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/application.rb:125:in |run' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/application/boot.rb:19:in|<top (required)>' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in |require' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in|require' from -e:1:in `

'

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/berk/will_filter/issues/67, or mute the thread https://github.com/notifications/unsubscribe-auth/AADPdPQqh5k7fOAFk00zV-YILWKR6tnlks5r6G2_gaJpZM4NbSkX.

azeemh commented 7 years ago

hey, so I installed the gem from master branch and there are still a few bugs

first the migration was missing the version, which i explain the fix for in the migration and i hope gets added/updated.

my gemfile:

source 'https://rubygems.org'

git_source(:github) do |repo_name|
  repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
  "https://github.com/#{repo_name}.git"
end

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.1.0'
# Use postgresql as the database for Active Record
gem 'pg', '~> 0.18'
# Use Puma as the app server
gem 'puma', '~> 3.7'
# 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 'therubyracer', 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', '~> 3.0'
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'

gem 'will_filter', :git => "git://github.com/berk/will_filter.git", :branch => "master"
gem 'kaminari'

# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development

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]
  # Adds support for Capybara system testing and selenium driver
  gem 'capybara', '~> 2.13.0'
  gem 'selenium-webdriver'
end

group :development do
  # Access an IRB console on exception pages or by using <%= 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

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

my terminal session

Azeems-MacBook-Pro:RetentionAnalytics azeemhussein$ bundle
The git source `git://github.com/berk/will_filter.git` uses the `git` protocol, which transmits data without encryption. Disable this warning with `bundle config git.allow_insecure true`, or switch to the `https` protocol to keep your data secure.
Fetching git://github.com/berk/will_filter.git
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
Fetching gem metadata from https://rubygems.org/.........
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Resolving dependencies...
Using rake 12.0.0
Using concurrent-ruby 1.0.5
Using i18n 0.8.1
Using minitest 5.10.2
Using thread_safe 0.3.6
Using builder 3.2.3
Using erubi 1.6.0
Using mini_portile2 2.1.0
Using rack 2.0.2
Using nio4r 2.0.0
Using websocket-extensions 0.1.2
Using mime-types-data 3.2016.0521
Using arel 8.0.0
Using public_suffix 2.0.5
Using bindex 0.5.0
Using bundler 1.14.6
Using byebug 9.0.6
Using ffi 1.9.18
Using coffee-script-source 1.12.2
Using execjs 2.7.0
Using method_source 0.8.2
Using thor 0.19.4
Using multi_json 1.12.1
Using kaminari-core 1.0.1
Using rb-fsevent 0.9.8
Using ruby_dep 1.5.0
Using pg 0.20.0
Using puma 3.8.2
Using rubyzip 1.2.1
Using sass 3.4.23
Using tilt 2.0.7
Using websocket 1.2.4
Using turbolinks-source 5.0.3
Using tzinfo 1.2.3
Using nokogiri 1.7.2
Using rack-test 0.6.3
Using sprockets 3.7.1
Using websocket-driver 0.6.5
Using mime-types 3.1
Using addressable 2.5.1
Using childprocess 0.7.0
Using rb-inotify 0.9.8
Using coffee-script 2.4.1
Using uglifier 3.2.0
Using turbolinks 5.0.1
Using activesupport 5.1.0
Using loofah 2.0.3
Using xpath 2.0.0
Using mail 2.6.5
Using selenium-webdriver 3.4.0
Using listen 3.1.5
Using rails-dom-testing 2.0.3
Using globalid 0.4.0
Using activemodel 5.1.0
Using jbuilder 2.6.4
Using spring 2.0.1
Using rails-html-sanitizer 1.0.3
Using capybara 2.13.0
Using activejob 5.1.0
Using activerecord 5.1.0
Using spring-watcher-listen 2.0.1
Using actionview 5.1.0
Using kaminari-activerecord 1.0.1
Using actionpack 5.1.0
Using kaminari-actionview 1.0.1
Using actioncable 5.1.0
Using actionmailer 5.1.0
Using railties 5.1.0
Using sprockets-rails 3.2.0
Using kaminari 1.0.1
Using coffee-rails 4.2.1
Using web-console 3.5.1
Using rails 5.1.0
Using sass-rails 5.0.6
Using will_filter 4.0.1 from git://github.com/berk/will_filter.git (at master@1a4b673)
Bundle complete! 18 Gemfile dependencies, 75 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
Azeems-MacBook-Pro:RetentionAnalytics azeemhussein$ rails generate will_filter
Running via Spring preloader in process 31420
      create  db/migrate/20170516142122_create_will_filter_filters.rb
      create  config/will_filter/config.yml
Azeems-MacBook-Pro:RetentionAnalytics azeemhussein$ rake db:migrate
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:

Directly inheriting from ActiveRecord::Migration is not supported. Please specify the Rails release the migration was written for:

  class CreateWillFilterFilters < ActiveRecord::Migration[4.2]
/Users/azeemhussein/RetentionAnalytics/db/migrate/20170516142122_create_will_filter_filters.rb:33:in `<top (required)>'
StandardError: Directly inheriting from ActiveRecord::Migration is not supported. Please specify the Rails release the migration was written for:

  class CreateWillFilterFilters < ActiveRecord::Migration[4.2]
/Users/azeemhussein/RetentionAnalytics/db/migrate/20170516142122_create_will_filter_filters.rb:33:in `<top (required)>'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
Azeems-MacBook-Pro:RetentionAnalytics azeemhussein$ rake db:migrate --trace
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Invoke db:load_config (first_time)
** Execute db:load_config
** Execute db:migrate
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:

Directly inheriting from ActiveRecord::Migration is not supported. Please specify the Rails release the migration was written for:

  class CreateWillFilterFilters < ActiveRecord::Migration[4.2]
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activerecord-5.1.0/lib/active_record/migration.rb:525:in `inherited'
/Users/azeemhussein/RetentionAnalytics/db/migrate/20170516142122_create_will_filter_filters.rb:33:in `<top (required)>'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/dependencies.rb:292:in `require'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/dependencies.rb:292:in `block in require'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/dependencies.rb:258:in `load_dependency'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/dependencies.rb:292:in `require'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activerecord-5.1.0/lib/active_record/migration.rb:962:in `load_migration'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activerecord-5.1.0/lib/active_record/migration.rb:958:in `migration'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activerecord-5.1.0/lib/active_record/migration.rb:953:in `disable_ddl_transaction'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activerecord-5.1.0/lib/active_record/migration.rb:1305:in `use_transaction?'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activerecord-5.1.0/lib/active_record/migration.rb:1297:in `ddl_transaction'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activerecord-5.1.0/lib/active_record/migration.rb:1229:in `execute_migration_in_transaction'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activerecord-5.1.0/lib/active_record/migration.rb:1201:in `block in migrate_without_lock'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activerecord-5.1.0/lib/active_record/migration.rb:1200:in `each'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activerecord-5.1.0/lib/active_record/migration.rb:1200:in `migrate_without_lock'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activerecord-5.1.0/lib/active_record/migration.rb:1148:in `block in migrate'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activerecord-5.1.0/lib/active_record/migration.rb:1317:in `with_advisory_lock'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activerecord-5.1.0/lib/active_record/migration.rb:1148:in `migrate'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activerecord-5.1.0/lib/active_record/migration.rb:1007:in `up'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activerecord-5.1.0/lib/active_record/migration.rb:985:in `migrate'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activerecord-5.1.0/lib/active_record/tasks/database_tasks.rb:171:in `migrate'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activerecord-5.1.0/lib/active_record/railties/databases.rake:58:in `block (2 levels) in <top (required)>'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:250:in `block in execute'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:250:in `each'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:250:in `execute'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:194:in `block in invoke_with_call_chain'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/2.4.0/monitor.rb:214:in `mon_synchronize'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:187:in `invoke_with_call_chain'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:180:in `invoke'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/application.rb:152:in `invoke_task'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/application.rb:108:in `block (2 levels) in top_level'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/application.rb:108:in `each'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/application.rb:108:in `block in top_level'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/application.rb:117:in `run_with_threads'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/application.rb:102:in `top_level'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/application.rb:80:in `block in run'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/application.rb:178:in `standard_exception_handling'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/application.rb:77:in `run'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/exe/rake:27:in `<top (required)>'
/Users/azeemhussein/.rbenv/versions/2.4.0/bin/rake:22:in `load'
/Users/azeemhussein/.rbenv/versions/2.4.0/bin/rake:22:in `<main>'
StandardError: Directly inheriting from ActiveRecord::Migration is not supported. Please specify the Rails release the migration was written for:

  class CreateWillFilterFilters < ActiveRecord::Migration[4.2]
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activerecord-5.1.0/lib/active_record/migration.rb:525:in `inherited'
/Users/azeemhussein/RetentionAnalytics/db/migrate/20170516142122_create_will_filter_filters.rb:33:in `<top (required)>'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/dependencies.rb:292:in `require'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/dependencies.rb:292:in `block in require'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/dependencies.rb:258:in `load_dependency'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/dependencies.rb:292:in `require'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activerecord-5.1.0/lib/active_record/migration.rb:962:in `load_migration'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activerecord-5.1.0/lib/active_record/migration.rb:958:in `migration'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activerecord-5.1.0/lib/active_record/migration.rb:953:in `disable_ddl_transaction'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activerecord-5.1.0/lib/active_record/migration.rb:1305:in `use_transaction?'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activerecord-5.1.0/lib/active_record/migration.rb:1297:in `ddl_transaction'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activerecord-5.1.0/lib/active_record/migration.rb:1229:in `execute_migration_in_transaction'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activerecord-5.1.0/lib/active_record/migration.rb:1201:in `block in migrate_without_lock'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activerecord-5.1.0/lib/active_record/migration.rb:1200:in `each'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activerecord-5.1.0/lib/active_record/migration.rb:1200:in `migrate_without_lock'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activerecord-5.1.0/lib/active_record/migration.rb:1148:in `block in migrate'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activerecord-5.1.0/lib/active_record/migration.rb:1317:in `with_advisory_lock'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activerecord-5.1.0/lib/active_record/migration.rb:1148:in `migrate'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activerecord-5.1.0/lib/active_record/migration.rb:1007:in `up'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activerecord-5.1.0/lib/active_record/migration.rb:985:in `migrate'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activerecord-5.1.0/lib/active_record/tasks/database_tasks.rb:171:in `migrate'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activerecord-5.1.0/lib/active_record/railties/databases.rake:58:in `block (2 levels) in <top (required)>'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:250:in `block in execute'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:250:in `each'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:250:in `execute'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:194:in `block in invoke_with_call_chain'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/2.4.0/monitor.rb:214:in `mon_synchronize'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:187:in `invoke_with_call_chain'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:180:in `invoke'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/application.rb:152:in `invoke_task'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/application.rb:108:in `block (2 levels) in top_level'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/application.rb:108:in `each'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/application.rb:108:in `block in top_level'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/application.rb:117:in `run_with_threads'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/application.rb:102:in `top_level'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/application.rb:80:in `block in run'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/application.rb:178:in `standard_exception_handling'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/application.rb:77:in `run'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/exe/rake:27:in `<top (required)>'
/Users/azeemhussein/.rbenv/versions/2.4.0/bin/rake:22:in `load'
/Users/azeemhussein/.rbenv/versions/2.4.0/bin/rake:22:in `<main>'
Tasks: TOP => db:migrate
Azeems-MacBook-Pro:RetentionAnalytics azeemhussein$ rails -v
Rails 5.1.0
Azeems-MacBook-Pro:RetentionAnalytics azeemhussein$ ruby -v
ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-darwin16]

I then found out it's simply adding [5.1] to the migration generated. so navigate to your app's db/migrate/timestamp_create_will_filter_filters.rb and change the class declaration (on mine it's line 36) from

class CreateWillFilterFilters < ActiveRecord::Migration

to

class CreateWillFilterFilters < ActiveRecord::Migration[5.1]

and running rake db:migrate now works perfectly.

now I am running into a bug where as per directions of the documentation, I put

mount WillFilter::Engine => "/will_filter"
Rails.application.routes.draw do
  resources :clients
  resources :offers
  resources :transactions
  # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html

  get "/sort", to: "transactions#sort"
end

as line 1 of my routes.rb file (at the top of your routes) and I got the following error:

/Users/azeemhussein/RetentionAnalytics/config/routes.rb:1:in `<top (required)>': undefined method `mount' for main:Object (NoMethodError)

and my server did not start at all.

now my routing file looks like:

Rails.application.routes.draw do
  mount WillFilter::Engine => "/will_filter"
  resources :clients
  resources :offers
  resources :transactions
  # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html

  get "/sort", to: "transactions#sort"
end

and when I run rails s it loads but as soon as I try to access my app via the browser I get the following error:

Azeems-MacBook-Pro:RetentionAnalytics azeemhussein$ rails s
=> Booting Puma
=> Rails 5.1.0 application starting in development on http://localhost:3000
=> Run `rails server -h` for more startup options
Puma starting in single mode...
* Version 3.8.2 (ruby 2.4.0-p0), codename: Sassy Salamander
* Min threads: 5, max threads: 5
* Environment: development
* Listening on tcp://0.0.0.0:3000
Use Ctrl-C to stop
2017-05-16 10:54:05 -0400: Rack app error handling request { GET / }
#<NoMethodError: undefined method `before_filter' for ActionController::API:Class
Did you mean?  before_action>
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/bundler/gems/will_filter-1a4b673ecc84/lib/will_filter/extensions/action_controller_extension.rb:37:in `included'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/bundler/gems/will_filter-1a4b673ecc84/lib/will_filter/railtie.rb:60:in `include'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/bundler/gems/will_filter-1a4b673ecc84/lib/will_filter/railtie.rb:60:in `block (2 levels) in <class:Railtie>'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/lazy_load_hooks.rb:45:in `instance_eval'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/lazy_load_hooks.rb:45:in `execute_hook'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/lazy_load_hooks.rb:52:in `block in run_load_hooks'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/lazy_load_hooks.rb:51:in `each'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/lazy_load_hooks.rb:51:in `run_load_hooks'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_controller/api.rb:145:in `<class:API>'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_controller/api.rb:87:in `<module:ActionController>'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_controller/api.rb:5:in `<top (required)>'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/dependencies.rb:292:in `require'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/dependencies.rb:292:in `block in require'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/dependencies.rb:258:in `load_dependency'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/dependencies.rb:292:in `require'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/jbuilder-2.6.4/lib/jbuilder/railtie.rb:20:in `block (2 levels) in <class:Railtie>'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/lazy_load_hooks.rb:45:in `instance_eval'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/lazy_load_hooks.rb:45:in `execute_hook'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/lazy_load_hooks.rb:52:in `block in run_load_hooks'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/lazy_load_hooks.rb:51:in `each'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/lazy_load_hooks.rb:51:in `run_load_hooks'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_controller/base.rb:271:in `<class:Base>'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_controller/base.rb:164:in `<module:ActionController>'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_controller/base.rb:5:in `<top (required)>'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/dependencies.rb:292:in `require'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/dependencies.rb:292:in `block in require'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/dependencies.rb:258:in `load_dependency'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/dependencies.rb:292:in `require'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_dispatch/middleware/static.rb:77:in `ext'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_dispatch/middleware/static.rb:33:in `match?'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_dispatch/middleware/static.rb:119:in `call'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rack-2.0.2/lib/rack/sendfile.rb:111:in `call'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/engine.rb:522:in `call'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/puma-3.8.2/lib/puma/configuration.rb:224:in `call'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/puma-3.8.2/lib/puma/server.rb:600:in `handle_request'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/puma-3.8.2/lib/puma/server.rb:435:in `process_client'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/puma-3.8.2/lib/puma/server.rb:299:in `block in run'
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/puma-3.8.2/lib/puma/thread_pool.rb:120:in `block in spawn_thread'

and in the browser when I navigated to localhost:3000 I saw the following plaintext output:

Puma caught this error: undefined method before_filter' for ActionController::API:Class Did you mean? before_action (NoMethodError) /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/bundler/gems/will_filter-1a4b673ecc84/lib/will_filter/extensions/action_controller_extension.rb:37:inincluded' /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/bundler/gems/will_filter-1a4b673ecc84/lib/will_filter/railtie.rb:60:in include' /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/bundler/gems/will_filter-1a4b673ecc84/lib/will_filter/railtie.rb:60:inblock (2 levels) in ' /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/lazy_load_hooks.rb:45:in instance_eval' /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/lazy_load_hooks.rb:45:inexecute_hook' /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/lazy_load_hooks.rb:52:in block in run_load_hooks' /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/lazy_load_hooks.rb:51:ineach' /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/lazy_load_hooks.rb:51:in run_load_hooks' /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_controller/api.rb:145:in' /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_controller/api.rb:87:in <module:ActionController>' /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_controller/api.rb:5:in<top (required)>' /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/dependencies.rb:292:in require' /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/dependencies.rb:292:inblock in require' /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/dependencies.rb:258:in load_dependency' /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/dependencies.rb:292:inrequire' /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/jbuilder-2.6.4/lib/jbuilder/railtie.rb:20:in block (2 levels) in <class:Railtie>' /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/lazy_load_hooks.rb:45:ininstance_eval' /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/lazy_load_hooks.rb:45:in execute_hook' /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/lazy_load_hooks.rb:52:inblock in run_load_hooks' /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/lazy_load_hooks.rb:51:in each' /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/lazy_load_hooks.rb:51:inrun_load_hooks' /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_controller/base.rb:271:in <class:Base>' /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_controller/base.rb:164:in' /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_controller/base.rb:5:in <top (required)>' /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/dependencies.rb:292:inrequire' /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/dependencies.rb:292:in block in require' /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/dependencies.rb:258:inload_dependency' /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/dependencies.rb:292:in require' /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_dispatch/middleware/static.rb:77:inext' /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_dispatch/middleware/static.rb:33:in match?' /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_dispatch/middleware/static.rb:119:incall' /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rack-2.0.2/lib/rack/sendfile.rb:111:in call' /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/engine.rb:522:incall' /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/puma-3.8.2/lib/puma/configuration.rb:224:in call' /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/puma-3.8.2/lib/puma/server.rb:600:inhandle_request' /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/puma-3.8.2/lib/puma/server.rb:435:in process_client' /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/puma-3.8.2/lib/puma/server.rb:299:inblock in run' /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/puma-3.8.2/lib/puma/thread_pool.rb:120:in `block in spawn_thread'