Ruby on Rails Wednesday, October 11, 2017

> On Oct 11, 2017, at 9:17 AM, David McDonald <daveomcd@gmail.com> wrote:
>
> I've recently upgraded my Rails 4.2 application to Rails 5.1.4, and I'm trying to work with Action Cable. I've been reading up on it a little and it seems that there are some files I'm currently missing such as, app/assets/javascripts/cable.js. Is there a rails generator to generate all of the "required" action cable default files such as cable.js. Or should I just work through the example here and add them as I go?
>
> Thanks!

If you start a new application with Rails 5.1, you will get those files "for free" (automatically). If you upgrade an app, you should get them as well if you use the `rails upgrade` helper. There's a set of instructions for each version (subtle differences) in the Rails Guides site. Note that when you upgrade from one major version to another, the more recent upgrade scripts hide certain new features and changes behind feature flags, which you can disable one at a time as you work through the transition. Be sure you have a good set of unit and feature tests before you do this, and it should work according to plan.

Walter

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/D21428E2-81FE-4FB6-A0B5-57DA91615F06%40wdstudio.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment