rails
rails copied to clipboard
Ruby on Rails
Tracking issue for a new feature we're extracting from Basecamp: Relying on clients to send heartbeats. Motivation: Preventing defunct session cruft from building up on WebSockets load balancers / proxies...
### Summary When you give the value to `f.submit`, the same value sets to the value of `data-disable-with`. ```slim = f.submit 'Submit', class: 'btn btn-primary' ``` ```html ``` But when...
MySQL 8.0.3+ returns column defaults as hexadecimal. We use these values for the column defaults before the record is loaded from the database. To be compatible with MySQL before and...
### Summary When running the test locally `bin/test test/analyzer/video_analyzer_test.rb:22` (analyzing a rotated video). I'm seeing it failing for FFmpeg in versions 5.0+ this is due to a change upstream. The...
### Steps to reproduce 1. Search Google for a Rails API https://www.google.com/search?q=rails+update_all 2. Follow link for "ActiveRecord::Relation - Rails API" ### Expected behavior Find documentation for the latest version of...
### Summary If `report-uri` is provided in `Content-Security-Policy: ...` header (e.g. When `Rails.application.config.content_security_policy.report_uri` is configured), browsers will report CSP violations to `report-uri` as a JSON object ([schema](https://w3c.github.io/webappsec-csp/#deprecated-serialize-violation)) with a `Content-Type:...
_:information_source: reopenning https://github.com/rails/rails/pull/39873 per @rafaelfranca request_ ### How `select` works - when **no** `select` is used for query **all columns** are **selected** - when `select` is used only **selected columns**...
### Summary When building a new Service for ActiveStorage, we got two requirements: 1. We need to direct upload a file with `POST` method instead of `PUT`, and send credential(token),...
### Motivation / Background As discussed in #50770, Rails console's prompt is not easily distinguishable from normal IRB console. It also doesn't provide Rails-specific information to assist developers. Closes #50770...
### Steps to reproduce Prerequisites - [stateful_enum](https://github.com/amatsuda/stateful_enum) - rspec ```ruby ORDER_MAX_ITEMS = 100 # == Schema Information # # Table name: orders # # id :integer not null, primary key...