Live data from Hacker News

Rails 5.1.0 Beta 1

weblog.rubyonrails.org

11–20 of 78 posts

Re: Rails 5.1.0 Beta 1

#11
At StackShare[0] we're using the webpack-rails gem to use React and ES6 javascript.

https://github.com/mipearson/webpack-rails

It would be awesome if someone could write a migration guide for this switch. I'm sure a lot of Rails teams are using the webpack-rails gem and are planning to switch to the official gem.

[0] - https://stackshare.io/stackshare/stackshare

Re: Rails 5.1.0 Beta 1

#12

I had heard that Capyabara-based tests were going to be incorporated in Rails. As the multi-threaded concurrent nature of these always makes things a pain, hard to get right, leading to much pain for devs with non-trivial test suites -- I was curious to see how they'd handle it, if there'd be an 'official' Rails solution, ideally backed by some deep Rails knowledge. I was surprised that they've chosen to use the 'sha…

What kind of race conditions are you talking about? I ran this setup for years, and just about the only thing that has been stable in the whole setup is ActiveRecord.

Re: Rails 5.1.0 Beta 1

#13
post #9

I'm happy they've provided a solution to Encrypted Secrets instead of simply saying "You should not commit secrets".

There's a new command, `bin/rails secrets:setup`. I haven't worked with any recent versions of rails, but it's kind of surprising that they are just now addressing this. I know I've seen Rails secrets being checked into Github.

Re: Rails 5.1.0 Beta 1

#14

Actually pretty major release. Hopping on javascript's crazy train. It was expected anyway, there are no way to ignore js-crazyness anymore (most of the frontend toolset exists only as js implementation). Also, Phoenix (ideological successor of rails) took this approach from the start

You know I used to think it's craziness, but it really makes for a much experience writing ES6 as opposed to random-ass jquery and javascript sprinkled all over the place. I've grown to love it.

Re: Rails 5.1.0 Beta 1

#16

Actually pretty major release. Hopping on javascript's crazy train. It was expected anyway, there are no way to ignore js-crazyness anymore (most of the frontend toolset exists only as js implementation). Also, Phoenix (ideological successor of rails) took this approach from the start

You know I used to think it's craziness, but it really makes for a much experience writing ES6 as opposed to random-ass jquery and javascript sprinkled all over the place. I've grown to love it.

Could you go into more detail on the concrete benefits?
Post reply on HN