Say you wrap your index view in a form to apply different filters like pagination or a search query. On...

I believe that when WEBrick has trouble bringing up your Rails application, the WEBrick component that is supposed to print...

Starting with ChromeDriver 127, if your application displays a beforeunload confirmation dialog, ChromeDriver will immediately close it. In consequence, any...

You can use the code below to check whether the browser can make connections to the current site: await isOnline...

...unindented code to get the expected result. <% if bar %> <%= 'bar' %> <% end %> <%= 'foo' %> <%= 'bar' %> Use Form Models to move logic out of the template. Sometimes it makes sense to use .haml...

makandra dev
stackoverflow.com

Modern versions of Capybara include a finder method #ancestor which allows you to find a parental element using CSS or...

When an AJAX request raises an exception on the server, Rails will show a minimal error page with only basic...

Every Rails response has a default ETag header. In theory this would enable caching for multiple requests to the same...

I recently stumbled upon the Rails feature composed_of. One of our applications dealt with a lot of addresses and...

While working on a Rails application, your code base will grow a collection of different file types including: Ruby (business...

When filling out forms in Selenium tests, Chrome shows the (usual) bubble, asking to store those credentials. While the bubble...

clipboardjs.com

We used zeroclipboard.js in some of our projects but now we switched to clipboard.js because it does not rely on...

...compatible with default Rails nested attribute setters, so you'll need to write a form model to adapt...

There is a kind of features in web applications that hinder automated integration tests. Examples include cookie consent banners or...

A common task in web applications is to add client-side JavaScript behavior to existing HTML elements.

Since Rails 7 you are able to encrypt database information with Active Record. Using Active Record Encryption will store an...

en.wikipedia.org

Formerly 301 (Moved Permanently) and 302 (Found) were used for redirecting. Browsers did implement them in different ways, so since...

makandra Curriculum

When your code does not behave as expected, you can use a debugger statement ("breakpoint") at any point in your...