♊️ GemiNews 🗞️

Demo 1: Embeddings + Recommendation Demo 2: Bella RAGa Demo 3: NewRetriever Demo 4: Assistant function calling

🗞️Added fixture method and bugfixes

🗿Semantically Similar Articles (by :title_embedding)

Added fixture method and bugfixes

2024-03-01 - Wojtek (from Ruby on Rails)

Hi, Wojtek from this side. Let’s explore this week’s few changes in the Rails codebase.

Hi, Wojtek from this side. Let’s explore this week’s few changes in the Rails codebase. Rails security update releases 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. Expose a generic “fixture” method in tests To avoid conflicting methods, in example with Minitest, it is possible now to load fixtures like this: assert_equal "Ruby on Rails", web_sites(:rubyonrails).name assert_equal "Ruby on Rails", fixture(:web_sites, :rubyonrails).name Introduce assert_initializer Compliments the existing initializer generator action. Set default_url_options values in development/test environments Prior to this commit, new Rails applications would raise ActionView::Template::Error if a mailer included a url built with a *_path helper. Fix error message for not derived foreign key in Active Record Using query_constraints 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. You can view the whole list of changes here. We had 13 contributors to the Rails codebase this past week! Until next time! Subscribe to get these updates mailed to you.

[Technology] 🌎 https://rubyonrails.org/2024/3/1/this-week-in-rails

🗿article.to_s

------------------------------
Title: Added fixture method and bugfixes
Summary: Hi, Wojtek from this side. Let’s explore this week’s few changes in the Rails codebase.

[content]
Hi, Wojtek from this side. Let’s explore this week’s few changes in the Rails codebase.

Rails security update releases
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.

Expose a generic “fixture” method in tests
To avoid conflicting methods, in example with Minitest, it is possible now to load fixtures like this:

assert_equal "Ruby on Rails", web_sites(:rubyonrails).name
assert_equal "Ruby on Rails", fixture(:web_sites, :rubyonrails).name


Introduce assert_initializer
Compliments the existing initializer generator action.

Set default_url_options values in development/test environments
 Prior to this commit, new Rails applications would raise ActionView::Template::Error if a mailer included a url built with a *_path helper.

Fix error message for not derived foreign key in Active Record
Using query_constraints 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.

You can view the whole list of changes here.
We had 13 contributors to the Rails codebase this past week!

Until next time!

Subscribe to get these updates mailed to you.
[/content]

Author: Wojtek
PublishedDate: 2024-03-01
Category: Technology
NewsPaper: Ruby on Rails
Tags: news
{"id"=>3193,
"title"=>"Added fixture method and bugfixes",
"summary"=>"Hi, Wojtek from this side. Let’s explore this week’s few changes in the Rails codebase.",
"content"=>"

Hi, Wojtek from this side. Let’s explore this week’s few changes in the Rails codebase.

\n\n

Rails security update releases
\nRails 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.

\n\n

Expose a generic “fixture” method in tests
\nTo avoid conflicting methods, in example with Minitest, it is possible now to load fixtures like this:

\n\n
assert_equal \"Ruby on Rails\", web_sites(:rubyonrails).name\nassert_equal \"Ruby on Rails\", fixture(:web_sites, :rubyonrails).name\n
\n\n

Introduce assert_initializer
\nCompliments the existing initializer generator action.

\n\n

Set default_url_options values in development/test environments
\n Prior to this commit, new Rails applications would raise ActionView::Template::Error if a mailer included a url built with a *_path helper.

\n\n

Fix error message for not derived foreign key in Active Record
\nUsing query_constraints 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.

\n\n

You can view the whole list of changes here.\nWe had 13 contributors to the Rails codebase this past week!

\n\n

Until next time!

\n\n

Subscribe to get these updates mailed to you.

",
"author"=>"Wojtek",
"link"=>"https://rubyonrails.org/2024/3/1/this-week-in-rails",
"published_date"=>Fri, 01 Mar 2024 00:00:00.000000000 UTC +00:00,
"image_url"=>nil,
"feed_url"=>"https://rubyonrails.org/2024/3/1/this-week-in-rails",
"language"=>nil,
"active"=>true,
"ricc_source"=>"feedjira::v1",
"created_at"=>Wed, 03 Apr 2024 14:31:21.285642000 UTC +00:00,
"updated_at"=>Tue, 14 May 2024 04:41:56.752870000 UTC +00:00,
"newspaper"=>"Ruby on Rails",
"macro_region"=>"Technology"}
Edit this article
Back to articles