>Error Objects<p><i>Active Model’s errors are now objects with an interface that allows your application to more easily handle and interact with errors thrown by models. The feature was implemented by lulalala and includes a query interface, enables more precise testing, and access to error details.</i><p>This has been in the work since Rails 5.x and I believe Lulalala extracted it from his work on Gitlab. And it was lot of hard work.<p>Since both Github and Shopify now runs on Master, I dont think there are any other open source web framework that is more battle tested than Rails.<p>Still waiting for New Magic though.
It's a really nice time to be a Ruby / Rails developer. Rails itself has made some really nice improvements with this release and there is also the "NEW MAGIC" should be following in the next couple of days which is currently being sold as what Rails was to the back end, this will be to the front end.<p>Ruby 3 is also just a few days away which brings optional type checking to helps add some additional structure to larger code bases.<p>Then in the wider community you have projects like Hanami 2.0 looking to launch next year which aims to bring all of the structure of "clean architecture" approaches and best practices with the simplicity and expressiveness of Ruby.
Lots of good stuff in here, including much more support for using UUIDs as PKs.<p>My favorite new feature is "delegated type" in ActiveRecord to offer a new way to map class hierarchies onto database tables. I wrote a blog post about it[0], but the actual PR is very readable as well[1].<p>[0] <a href="https://www.stevenbuccini.com/how-to-use-delegate-types-in-rails-6-1" rel="nofollow">https://www.stevenbuccini.com/how-to-use-delegate-types-in-r...</a><p>[1] <a href="https://github.com/rails/rails/pull/39341" rel="nofollow">https://github.com/rails/rails/pull/39341</a>
Hey, sorry for the aside - I am a Rails developer since Rails 4ish and we are running Rails 5 at work. I'm using Rails 6 for my own projects and in these side projects, I've been having a huge hell of a time trying to grok "right ways" to do things with webpacker/webpack. I seem to encounter issues every single time with deploys to Heroku because of precompilation issues, or imports not running right. But tutorials get out of date so fast and I'm constantly trying to just remove stuff just to get my builds to work. Are there any Rails focused chatrooms or places where I can get into the nitty gritty of these things without needing to post GitHub issues and piss off maintainers all the time?<p>I just don't really grok how to use modern Javascript I guess, but also integrating with Rails webpacker has been a source of constant frustration. I can't even figure out how to properly package JS libs without just giving up and using jsdelivr instead. Would love any kind of pointers!
"rafaelfranca released this 1 hour ago · 324 commits to master since this release"<p>That's the sign of a very actively maintained project!<p>(To clarify: those 324 commits didn't all happen in the past 60 minutes, but it does show that there's a huge amount of development activity going on around Rails core)
I did a bunch of work in rails prior to the 3.0 days ( probably around 2013 or so), but then switched domains to work more in data engineering.<p>When I came back to it to scratch an itch for some pet projects, I barely recognized it. I felt completely lost.<p>Life moved pretty fast, I guess. Are there any good resources out there for someone from the 2.x days to get back to speed?
Here's the Railties diff if anyone needs:<p><a href="http://railsdiff.org/6.0.3.4/6.1.0" rel="nofollow">http://railsdiff.org/6.0.3.4/6.1.0</a>
The beginning of Horizontal Sharding support is great to see.<p>More refined release notes here:
<a href="https://edgeguides.rubyonrails.org/6_1_release_notes.html" rel="nofollow">https://edgeguides.rubyonrails.org/6_1_release_notes.html</a><p>And yet more release notes:
<a href="https://weblog.rubyonrails.org/2020/12/9/Rails-6-1-0-release/" rel="nofollow">https://weblog.rubyonrails.org/2020/12/9/Rails-6-1-0-release...</a>
One of my favorite characteristic of Rails community is there is less to non-existence of superiority of paradigm nonsense. Since I switched to other languages/frameworks, discussion around Slack/forum is plenty of non-realworld usage .. great engineering (without user interaction). It's painful when you want to ship, not only to play.<p>Rails is full of libs for building real business. Github and Shopify 's engineers are around, this contributes great sense of realword usage. Features extracted from that are battle-tested.<p>Bonus is DHH is still involving since he loves programming anyway, and he is a great communicator, spicy tweets on HTML CSS keeps the web sane .. from those madness.
I'm hoping for vuejs and rails tie together. As a previous rails developer I never loved backbone angular or react but felt at home with vuejs and am jealously watching the laravel community embrace vue