♊️ GemiNews 🗞️
(dev)
🏡
📰 Articles
🏷️ Tags
🧠 Queries
📈 Graphs
☁️ Stats
💁🏻 Assistant
💬
🎙️
Demo 1: Embeddings + Recommendation
Demo 2: Bella RAGa
Demo 3: NewRetriever
Demo 4: Assistant function calling
Editing article
Title
Summary
Hi, Wojtek from this side. Let’s explore this week’s few changes in the Rails codebase.
Content
<p>Hi, <a href="https://twitter.com/morgoth85">Wojtek</a> from this side. Let’s explore this week’s few changes in the Rails codebase.</p> <p><a href="https://rubyonrails.org/2024/2/21/Rails-Versions-6-1-7-7-7-0-8-1-and-7-1-3-2-have-been-released">Rails security update releases</a><br /> Rails Versions 6.1.7.7, 7.0.8.1, and 7.1.3.2 have been released last week which contain fixes for security issues.</p> <p><a href="https://github.com/rails/rails/pull/51213">Expose a generic “fixture” method in tests</a><br /> To avoid conflicting methods, in example with Minitest, it is possible now to load fixtures like this:</p> <div class="language-ruby highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="n">assert_equal</span> <span class="s2">"Ruby on Rails"</span><span class="p">,</span> <span class="n">web_sites</span><span class="p">(</span><span class="ss">:rubyonrails</span><span class="p">).</span><span class="nf">name</span> <span class="n">assert_equal</span> <span class="s2">"Ruby on Rails"</span><span class="p">,</span> <span class="n">fixture</span><span class="p">(</span><span class="ss">:web_sites</span><span class="p">,</span> <span class="ss">:rubyonrails</span><span class="p">).</span><span class="nf">name</span> </code></pre></div></div> <p><a href="https://github.com/rails/rails/pull/51176">Introduce assert_initializer</a><br /> Compliments the existing <em>initializer</em> generator action.</p> <p><a href="https://github.com/rails/rails/pull/51191">Set default_url_options values in development/test environments</a><br /> Prior to this commit, new Rails applications would raise <em>ActionView::Template::Error</em> if a mailer included a url built with a <em>*_path</em> helper.</p> <p><a href="https://github.com/rails/rails/pull/51165">Fix error message for not derived foreign key in Active Record</a><br /> Using <em>query_constraints</em> method with a single non-primary-key column used to raise as expected, but with an incorrect error message. This has been fixed to raise with a more appropriate error message.</p> <p><em>You can view the whole list of changes <a href="https://github.com/rails/rails/compare/@%7B2024-02-25%7D...main@%7B2024-03-01%7D">here</a>.</em> <em>We had <a href="https://contributors.rubyonrails.org/contributors/in-time-window/20240225-20240301">13 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>
Author
Link
Published date
Image url
Feed url
Guid
Hidden blurb
--- !ruby/object:Feedjira::Parser::AtomEntry author: Wojtek content: |- <p>Hi, <a href="https://twitter.com/morgoth85">Wojtek</a> from this side. Let’s explore this week’s few changes in the Rails codebase.</p> <p><a href="https://rubyonrails.org/2024/2/21/Rails-Versions-6-1-7-7-7-0-8-1-and-7-1-3-2-have-been-released">Rails security update releases</a><br /> Rails Versions 6.1.7.7, 7.0.8.1, and 7.1.3.2 have been released last week which contain fixes for security issues.</p> <p><a href="https://github.com/rails/rails/pull/51213">Expose a generic “fixture” method in tests</a><br /> To avoid conflicting methods, in example with Minitest, it is possible now to load fixtures like this:</p> <div class="language-ruby highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="n">assert_equal</span> <span class="s2">"Ruby on Rails"</span><span class="p">,</span> <span class="n">web_sites</span><span class="p">(</span><span class="ss">:rubyonrails</span><span class="p">).</span><span class="nf">name</span> <span class="n">assert_equal</span> <span class="s2">"Ruby on Rails"</span><span class="p">,</span> <span class="n">fixture</span><span class="p">(</span><span class="ss">:web_sites</span><span class="p">,</span> <span class="ss">:rubyonrails</span><span class="p">).</span><span class="nf">name</span> </code></pre></div></div> <p><a href="https://github.com/rails/rails/pull/51176">Introduce assert_initializer</a><br /> Compliments the existing <em>initializer</em> generator action.</p> <p><a href="https://github.com/rails/rails/pull/51191">Set default_url_options values in development/test environments</a><br /> Prior to this commit, new Rails applications would raise <em>ActionView::Template::Error</em> if a mailer included a url built with a <em>*_path</em> helper.</p> <p><a href="https://github.com/rails/rails/pull/51165">Fix error message for not derived foreign key in Active Record</a><br /> Using <em>query_constraints</em> method with a single non-primary-key column used to raise as expected, but with an incorrect error message. This has been fixed to raise with a more appropriate error message.</p> <p><em>You can view the whole list of changes <a href="https://github.com/rails/rails/compare/@%7B2024-02-25%7D...main@%7B2024-03-01%7D">here</a>.</em> <em>We had <a href="https://contributors.rubyonrails.org/contributors/in-time-window/20240225-20240301">13 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> title_type: html title: Added fixture method and bugfixes links: - https://rubyonrails.org/2024/3/1/this-week-in-rails published: 2024-03-01 00:00:00.000000000 Z entry_id: https://rubyonrails.org/2024/3/1/this-week-in-rails summary: Hi, Wojtek from this side. Let’s explore this week’s few changes in the Rails codebase. categories: - news carlessian_info: news_filer_version: 2 newspaper: Ruby on Rails macro_region: Technology rss_fields: - author - content - title_type - title - links - published - entry_id - summary - categories - url - updated - raw_title url: https://rubyonrails.org/2024/3/1/this-week-in-rails updated: 2024-03-01 00:00:00.000000000 Z raw_title: Added fixture method and bugfixes
Language
Active
Ricc internal notes
Imported via /Users/ricc/git/gemini-news-crawler/webapp/db/seeds.d/import-feedjira.rb on 2024-04-01 22:13:48 +0200. Content is EMPTY here. Entried: author,content,title_type,title,links,published,entry_id,summary,categories,url,updated,raw_title. TODO add Newspaper: filename = /Users/ricc/git/gemini-news-crawler/webapp/db/seeds.d/../../../crawler/out/feedjira/Technology/Ruby on Rails/2024-03-01-Added_fixture_method_and_bugfixes-v2.yaml
Ricc source
Show this article
Back to articles