CINXE.COM

Ruby on Rails — Rails 8.0 and more

<!doctype html> <html lang="en"> <head> <title>Ruby on Rails &mdash; Rails 8.0 and more</title> <meta charset="utf-8" /> <meta content="ie=edge" http-equiv="x-ua-compatible" /> <meta name="handheldfriendly" content="true" /> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content="Hi, Wojtek here. Let’s explore this week’s Rails news." /> <meta property="og:site_name" content="Ruby on Rails" /> <meta property="og:title" content="Rails 8.0 and more" /> <meta property="og:description" content="Hi, Wojtek here. Let’s explore this week’s Rails news." /> <meta property="og:image" content="https://rubyonrails.org/assets/images/this-week-in-rails.png" /> <meta property="og:url" content="https://rubyonrails.org/2024/11/8/this-week-in-rails" /> <meta property="og:type" content="article" /> <meta name="twitter:title" content="Rails 8.0 and more" /> <meta name="twitter:description" content="Hi, Wojtek here. Let’s explore this week’s Rails news." /> <meta name="twitter:image" content="https://rubyonrails.org/assets/images/this-week-in-rails.png" /> <meta name="twitter:card" content="summary_large_image" /> <meta name="twitter:creator" content="@rails" /> <meta name="twitter:image:alt" content="Ruby on Rails" /> <script type="application/ld+json"> { "@context": "https://schema.org", "@type": "BlogPosting", "mainEntityOfPage": { "@type": "WebPage", "@id": "https://rubyonrails.org/2024/11/8/this-week-in-rails" }, "name": "Ruby on Rails", "headline": "Rails 8.0 and more", "description": "Hi, Wojtek here. Let’s explore this week’s Rails news.", "url": "https://rubyonrails.org/2024/11/8/this-week-in-rails", "image": "https://rubyonrails.org/assets/images/this-week-in-rails.png", "author": { "@type": "Person", "name": "Wojtek" }, "datePublished": "2024-11-08T00:00:00+00:00" } </script> <script defer data-domain="rubyonrails.org" src="https://plausible.io/js/script.js"></script> <link rel="icon" href="/assets/images/favicon.png" /> <link rel="stylesheet" href="/assets/css/style.css" /> <link rel="alternate" type="application/rss+xml" href="/feed.xml" title="The official Ruby on Rails blog"> </head> <body> <nav class="nav"> <a class="nav__logo" href="/" aria-label="Ruby on Rails"></a> <input class="nav__checkbox" id="nav__checkbox" type="checkbox" role="button" aria-label="menu" /> <label class="nav__toggle" for="nav__checkbox"> <span></span> </label> <div class="nav__options"> <div> <ul> <li><a href="https://github.com/rails/rails"><span>Source</span></a></li> <li><a href="/docs"><span>Docs</span></a></li> <li><a href="/community"><span>Community</span></a></li> <li><a href="/blog"><span>News</span></a></li> </ul> <ul> <li><a href="/world"><span>Events</span></a></li> <li><a href="https://jobs.rubyonrails.org"><span>Jobs</span></a></li> <li><a href="https://merch.rubyonrails.org"><span>Merch</span></a></li> <li><a href="/foundation"><span>Foundation</span></a></li> </ul> </div> </div> </nav> <div class="layout"> <div class="post common-padding--bottom common-padding--top-small"> <div class="container"> <div class="post__headline common-headline"> <h5>Friday, November 8, 2024</h5> <h2>Rails 8.0 and more</h2> <h6>Posted by Wojtek</h6> </div> <div class="post__content common-content common-content--post"> <p>Hi, <a href="https://x.com/morgoth85">Wojtek</a> here. Let’s explore this week’s Rails news.</p> <p><a href="https://rubyonrails.org/2024/11/7/rails-8-no-paas-required">Rails 8 has been released</a><br /> Along with the announcement, you can read the <a href="https://github.com/rails/rails/releases/tag/v8.0.0">release changelog</a>.</p> <p><a href="https://github.com/rails/rails/pull/53551">Action Controller guide improvements review</a><br /> Along with the improvements, there will be the new guide “Action Controller Advanced Topics”. It’s awaiting community feedback.</p> <p><a href="https://github.com/rails/rails/pull/53139">Support disabling transactional tests per database</a><br /> A test class can now override the default <code class="language-plaintext highlighter-rouge">use_transactional_tests</code> setting for individual databases, which can be useful if some databases need their current state to be accessible to an external process while tests are running.</p> <div class="language-ruby highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="k">class</span> <span class="nc">MostlyTransactionalTest</span> <span class="o">&lt;</span> <span class="no">ActiveSupport</span><span class="o">::</span><span class="no">TestCase</span> <span class="nb">self</span><span class="p">.</span><span class="nf">use_transactional_tests</span> <span class="o">=</span> <span class="kp">true</span> <span class="n">skip_transactional_tests_for_database</span> <span class="ss">:shared</span> <span class="k">end</span> </code></pre></div></div> <p><a href="https://github.com/rails/rails/pull/53520">Fix running with BACKTRACE=1 truncating gem paths</a><br /> Restores gem paths back to their original, full form, which makes it easier to debug.</p> <p><a href="https://github.com/rails/rails/pull/53546">Fix deprecation warning caused by DST</a><br /> Clarifies the logic for detecting whether the current Time value is in the system local timezone (i.e. that getlocal would be a no-op).</p> <p><em>You can view the whole list of changes <a href="https://github.com/rails/rails/compare/@%7B2024-11-01%7D...main@%7B2024-11-08%7D">here</a>.</em> <em>We had <a href="https://contributors.rubyonrails.org/contributors/in-time-window/20241101-20241108">22 contributors</a> to the Rails codebase this past week!</em></p> <p>Until next time!</p> <p><em><a href="https://world.hey.com/this.week.in.rails">Subscribe</a> to get these updates mailed to you.</em></p> </div> </div> </div> </div> <footer class="footer common-background--grey common-padding--bottom common-padding--top common-shape--top-white-up-left"> <div class="footer__logo"><a href="/" aria-label="Ruby on Rails"></a></div> </footer> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10