small medium large xlarge

Generic-user-small
27 Feb 2017, 09:49
Sergio Ocón (2 posts)

I’ve seen that the beta for Rails 5.1 has been released, and now it includes many things that are used in this book, like webpack integration, generator for Angular applications, etc.

It would be great to add that information to the book. Specifically to understand where the CSS for bootstrap would go, whether is still necessary to delete sprockets, and all that simplified configuration for Rails with Webpack.

Dmfcb_pragsmall
27 Feb 2017, 13:16
David Copeland (368 posts)

5.1 supports two asset pipelines - Sprockets and Webpack. My book uses one—Webpack. Since Webpack is almost entirely unconnected to Rails, everything in the book should work with 5.1, although it might be easier to do using webpacker—we’ll have to see. Rails has a history of removing major features from a beta before release, so I don’t want to bank on webpacker being there. Also, I’d have to rewrite much of the book and it’s going to copyediting right now :)

Generic-user-small
27 Feb 2017, 16:51
Sergio Ocón (2 posts)

Well,

Thanks for your quick response!

In case you want to try: I created one application using Rails 5.1 with webpacker:angular Added patternfly (based on bootstrap, and including it):

    yarn add angular-patternfly@4.0.0-alpha.3 --save
    yarn add patternfly@4.0.0-alpha.3 --save

And adding this to the application.html.erb

~~~

<!-- PatternFly Styles --> <!-- Note: No other CSS files are needed regardless of what other JS packages located in patternfly/components that you decide to pull in --> <!-- Angular-PatternFly Styles -->

~~~

And the CSS is working. Notice that the path is in the assets, not node_modules.

Generic-user-small
27 Mar 2017, 09:38
Alberto (2 posts)

Hi David, I understand that a book in the printing phase couldn’t be edited easily, but at least for the digital version would be very useful to have some updates that make the tutorials work seamlessly with Rails 5.1 (now in RC phase and headed to final release in a few weeks) exploiting its new features, many very much related with your work it seems to me. A software development book that it’s not up to date could miss much of its potential, and your book has much. Thanks!

Dmfcb_pragsmall
27 Mar 2017, 11:48
David Copeland (368 posts)

Actually, we decided to pull it from printing and update it for Rails 5.1 (and Angular 4 :).

The Angular stuff is being re-worked to use Webpacker, which simplifies a few things, including unit testing. We should have a beta update with these changes soon!

You must be logged in to comment