XIO

xWire

Posts from every feed QUEST has found across the web — blogs, news, podcasts, channels and more.

Ruby on Rails Discussions - Latest posts

Latest posts

Heroku alternatives

This has probably the most mentioned method, but a VPS with Kamal can get you quite far, if you do not need auto-scale. Amongst others that’s the setup I’ve beeing using to host Reviato a customer feedback and review analytics platform built for hotels, restaurants, and other hospitality businesses. It brings public reviews from sources such as Google, Tripadvisor, Booking, and Airbnb together with private guest feedback, helping teams identify recurring issues, understand sentiment and trends,…

Extend Content Security Policy DSL to support both enforce and report-only policies at the same time.

Supporting both enforce and report-only Content Security Policies at the same time would be useful. It would allow developers to test a stricter policy through reporting while keeping the existing policy enforced. This could make CSP changes safer to introduce and easier to monitor before fully enforcing them.

I've found a typo in Ruby on Rails guide, where to say about that?

This documentation you mention is easy to update because it’s included in the Github repo! So changes can be made by creating a pull request. The specific error that you mention has already been fixed by this commit from back in January, which changes the highlight line in that code block from line 3 to line 4. Eventually it will make its way onto the live Rails Guides site.

I've found a typo in Ruby on Rails guide, where to say about that?

Typo here: Ruby on Rails Guides 13. Rich Text Fields with Action Text - Getting Started with Rails — Ruby on... Welcome to Ruby on Rails! In this guide, we'll walk through the core concepts of building web applications with Rails. You don't need any experience with Rails to follow along with this guide. | This guide covers getting up and running with Ruby on... It should be selected (inserted) the description, not name. <%# app/views/products/show.html.erb%> <% cache @product do %> <h1><%=…

Internal server error 500 while going through guide

Oleksandr Kozlov: When I was going through this guide ( Getting Started with Rails — Ruby on Rails Guides at this point Getting Started with Rails — Ruby on Rails Guides ) this error happened. I’ve just placed the string (root “products#index”) and the error. It looks like the issue may be with how the root route was added. In Rails, it should be written inside config/routes.rb like this: Rails.application.routes.draw do root "products#index" end Also, make sure the ProductsController has an…

Add an explicit confirmation: option to has_secure_password

Hi all I ran into a common friction point with has_secure_password and wanted to propose a small, backward-compatible addition. The problem By default, has_secure_password only validates that password_confirmation matches password when it happens to be present (validates_confirmation_of :password, allow_nil: true). It never requires password_confirmation to be present at all, so a signup form can silently save a user who never filled in the confirmation field. The natural first attempt to fix…

PmRails 2.0 and DkRails 2.0 — quick, disposable Rails environments with Podman or Docker

I’ve released PmRails 2.0, and also DkRails 2.0, a Docker-based counterpart with a similar workflow. Both are intended to make it quick to get to the point where rails test or rails server works, without installing Ruby or Rails on the host. The main use case The main use case I have in mind is not necessarily replacing your everyday development environment. It is more about cases where you want to quickly try Rails with an unfamiliar setup—for example: another Ruby or Rails version PostgreSQL…

A small modification at ActiveRecord's calculations.rb

Michalis P: I’m not sure if this is the right channel to write this message. but by adding line 208 : sql << “) AS #{aggregate_alias}_subquery” if use_workaround More legitimate sql code is generated, and a bug for the newly developed and distributed MonetDB adapter is solved. MonetDB prints this message : !subquery table reference needs alias, use AS xxx in: “select count(*) as count_all from web (select distinct “accounts”.id from “accounts” left outer join “companies” on “companies”.id =…

Internal server error 500 while going through guide

Thanks @estebanvsx and @tba81 — Teamwork makes the dream work! p.s. - for anyone wanting to use the newer JSON gem then here’s a monkey patch to smarten up the newer JSON#parse method so that it will work with both Rails < 8.2 and edge Rails: # Monkey patch to allow Rails < 8.2 to work with json gem >= 3.0 require 'json' if ::JSON.method(:parse).parameters.select { |p| [ :req, :opt ].include?(p.first) }.length < 2 ::JSON.module_exec do # This "define_singleton_method" trick is the same general…