Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trouble with new rails app

I have just created a new rails app (on the CL, using rails new), I am on 4.2.6, but it seems like before I can do anything to the app that i've hit errors.

first...

/config/environments/development.rb:53:in `block in <top (required)>':
  uninitialized constant ActiveSupport::EventedFileUpdateChecker (NameError)

then once I comment that out...

/config/initializers/new_framework_defaults.rb:15:in `<top (required)>':
  undefined method `to_time_preserves_timezone=' for ActiveSupport:Module (NoMethodError)

and once that is commented out...

 /config/initializers/new_framework_defaults.rb:21:in `<top (required)>':
  undefined method `halt_callback_chains_on_return_false=' for ActiveSupport:Module (NoMethodError)

and lastly...

.gem/ruby/2.2.3/gems/actionmailer-4.2.5/lib/action_mailer/base.rb:569:in `method_missing':
  undefined method `perform_caching=' for ActionMailer::Base:Class (NoMethodError)

everything I can turn up on Google suggests these are Rails 5 related things. I'm not sure how to get around them, or how to create an app that is still specific to 4.2.6.

like image 743
Maggie Concannon Avatar asked Jul 04 '16 17:07

Maggie Concannon


1 Answers

If still you want to use Rails 5 comment the below line in development.rb file: config.action_mailer.perform_caching = false

And after doing that you may get:
ActionView::Template::Error (couldn't find file 'ation_cable' with type 'application/javascript'

Then remove = from //= require action_cable in your cable.js file.

like image 97
Mayuresh Srivastava Avatar answered Sep 28 '22 05:09

Mayuresh Srivastava