...to all (especially larger teams), we think it is a helpful starting point. First, read the Gatekeeping for developers guide, then ask your developers to read it and follow it...

...cards are our internal best practices and tips for our daily work. They are read worldwide by developers looking for help and tips on web development with Ruby on Rails...

...the expansion of the knowledge base. How does makandra cards work? Many of our readers stumble across our cards when they have a problem and are researching the topic in...

w3c.github.io

...This can be useful for debugging. The following example visits a web page and reads the a headline's text contents. Create a session. You will get a JSON response...

...d '{"using":"tagName","value":"h1"}' {"sessionId":"...","status":0,"value":{"ELEMENT":"element-object-id-here"}} Read the element's text content by using the element's identifier received above:

...rubocop run fails with a stack like rubocop-1.61.0/lib/rubocop/server/socket_reader.rb:36:in `ensure in read!': undefined method `string' for nil:NilClass (NoMethodError) Cache.stderr_path.write(stderr.string) ^^^^^^^ ... rubocop-1.61.0/lib/rubocop/server/socket_reader.rb:27:in `read...

...Gemfile.lock could never indicate which version of a gem was installed, i.e. the Gemfile read nokogiri (1.12.5) although nokogiri (1.12.5-x86_64-linux) might actually be installed. In addition, there...

...versions of Bundler (at least since 2.3) have two different behaviors: If your Gemfile.lock reads PLATFORMS: ruby, it might either install a compatible platform-specific version, or the plain ruby...

makandra dev

...to generate beautiful commit messages according to your stories in Linear: geordi commit Geordi reads from a .geordi.yml file inside your repo and connects to Linear to list started and...

api.rubyonrails.org

...of this and just use a plan transaction do. If you need ActiveRecord::Rollback, read on. The basic problem Not all databases support nested transactions. Therefore, Rails will sometimes silently...

Code quality can be measured in four levels: (Working code) Reliable code (minimum) Readable code (ok for short-lived code) Changeable code (standard level) The code quality of a project...

However, you should not stop here. Any piece of code is usually read may times, so please make it readable: 2. Readable code Your code is here to...

...using unicode escape sequences: escapeHighASCII('{"foo":"xäy"}') // => '{"foo":"x\\u00e4y"}' The program that reads the header can access the original string by parsing the header value as JSON. Any JSON...

...accessibility is to add the aria-required attribute in this case. This allows screen readers to announce fields as required before the form is submitted. Define a SimpleForm component:

...make custom transcoding/conversion logic working. Unless you adapt your processor, this will now fail. Read the following paragraph on why and how to fix it. The workfile_path breaking custom...

...probably why CarrierWave 3.x introduces the new behavior, below. Still, FFMPEG will then read the video file, extract the first frame image and save it to the thumbnail.jpg file...

...to consume it. Clients can use client libraries to access your API and can read up on the JSON:API spec to get a basic understanding on how to use...

...for different versions of Rails and the behavior is subtly different. Make sure you read and understand the API before using these...

...if you want it to look like a link. This is good for screen readers, which can differentiate between buttons and links Buttons are in the tab order of a...

...will not want to use these styles and instead apply your own styles) Note Read the card Accessibility: Making non-standard elements interactive for more details of this approach. It...

...objects can have getter and setter functions that are called when a property is read from or written to. For example, if you'd like an object that has a...

...some crazy things to allow easier definition of getters/setters in class definitions. Performance considerations Read and write accesses have the same performance characteristics of regular function calls, so it's...

...label] attribute: This way, when a visually impaired user focuses the field, the screen reader will speak the label text ("Search contacts"). Info Without an [aria-label] attribute screen readers...

...in your core User model. Prefer to use a form model like User::RegistrationForm. Read our book Growing Rails Applications in Practice for details. Here is a test for the...

jakearchibald.com

...reason why callbacks are not executed in the order that they are queued. Please read this article! This is an extract of the example in the article which demonstrates the...

...p2); // compiles fine 50% of the time // But crashes the other times: TypeError: Cannot read properties of null You must now conditionally check that the value is actually not null...

makandra dev

...Linear ID and the name of the issue using git commit --allow-empty -m Read the complete issue Reread the complete Issue and check if the issue needs further checkpoints...

...migrations, takes care of existing records if it makes major changes, has updated the README as appropriate 4 After Review 4.1 If your code does not pass review

...trying to hunt down a staging bug locally), it might make sense to allow reading files from a separate environment. You you could read from an ENV variable instead of...

makandra dev

...Since this is a bit slow, especially when using multiple processes with parallel_test, read this card. jQuery If you still require jQuery, add it to your webpacker project by...

...of earlier versions Check the official Rails upgrade guide Rails has official upgrade notes. Read through the relevant sections and make the appropriate changes. Get rails console running

...gives some additional security to the not-that-incredibly-secure hashed paths storage approach. Read here for details. Further reading Common mistakes when storing file uploads with Rails