How can I add multiple currencies to a travel booking application built with Rails?
How can I allow users from different countries to see and pay for travel bookings in their own currency?
Posts from every feed QUEST has found across the web — blogs, news, podcasts, channels and more.
How can I allow users from different countries to see and pay for travel bookings in their own currency?
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,…
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.
Hi, Lorin! Thanks for the explanation.
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.
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><%=…
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…
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…

It works with me. Put it at the very top. Then bundle install.
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…
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 =…
Following up. The issue still exists and has quite a few +1. I’ve reviewed and rebased the PR Extend CSP DSL to support both Content-Security-Policy and Content-Security-Policy-Report-Only headers by pragmaticsc · Pull Request #40525 · rails/rails · GitHub
Thank you, guys! I worked for me. Now I can continue to learn Rails.)
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…