question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Rails 4.2 compatibility

See original GitHub issue

Got the following deprecation warnings and errors after upgrading to rails 4.2.0.

DEPRECATION WARNING: The configuration option `config.serve_static_assets` has been renamed to `config.serve_static_files` to clarify its role (it merely enables serving everything in the `public` folder and is unrelated to the asset pipeline). The `serve_static_assets` alias will be removed in Rails 5.0. Please migrate your configuration files accordingly. (called from block in tsort_each at /usr/local/var/rbenv/versions/2.1.1/lib/ruby/2.1.0/tsort.rb:226)
/usr/local/var/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rack-cors-0.3.1/lib/rack/cors.rb:232:in `quote': no implicit conversion of nil into String (TypeError)
    from /usr/local/var/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rack-cors-0.3.1/lib/rack/cors.rb:232:in `block in origins'
    from /usr/local/var/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rack-cors-0.3.1/lib/rack/cors.rb:226:in `collect'
    from /usr/local/var/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rack-cors-0.3.1/lib/rack/cors.rb:226:in `origins'
    from /Users/code/app/config/application.rb:37:in `block (2 levels) in <class:Application>'
    from /usr/local/var/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rack-cors-0.3.1/lib/rack/cors.rb:41:in `instance_eval'
    from /usr/local/var/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rack-cors-0.3.1/lib/rack/cors.rb:41:in `allow'
    from /Users/code/app/config/application.rb:36:in `block in <class:Application>'
    from /usr/local/var/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rack-cors-0.3.1/lib/rack/cors.rb:26:in `instance_eval'
    from /usr/local/var/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rack-cors-0.3.1/lib/rack/cors.rb:26:in `initialize'
    from /usr/local/var/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/stack.rb:43:in `new'
    from /usr/local/var/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/stack.rb:43:in `build'
...

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
AlexCppnscommented, May 19, 2017

I am getting the exact same error: /var/lib/gems/2.4.0/gems/rack-cors-0.4.1/lib/rack/cors.rb:264:in `quote': no implicit conversion of nil into String (TypeError)

What s the fix?

0reactions
dankildcommented, Apr 5, 2022

Also have this error in 2022, but only in GitHub CI. Locally it works well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ruby & Rails Compatibility Table
A short table showing the compatibility between Ruby on Rails and Ruby across each version, ideal for checking your upgrade options.
Read more >
Which Ruby on Rails is compatible with which Ruby version?
Rails 5 requires Ruby 2.2.2 or newer. · Rails 4 prefers Ruby 2.0 and requires 1.9.3 or newer. · Rails 3.2.x is the...
Read more >
Ruby on Rails 4.2 Release Notes
Upgrading to Rails 4.2 · Major Features. Active Job; Asynchronous Mails · Incompatibilities. render with a String Argument; respond_with / Class-Level respond_to ...
Read more >
Module: DateAndTime::Compatibility — Rails 4.2.11.3
If true, to_time preserves the timezone offset of receiver. NOTE: With Ruby 2.4+ the default for to_time changed from converting to the local...
Read more >
Ruby and Ruby on Rails version compatibility - hmallett.co.uk
Rails 6.0 · Rails 5.2 · Rails 5.1 · Rails 5.0 · Rails 4.2 · Rails 4.1 · Rails 4.0 · Rails 3.2....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found