MENU
Home
News
Tutorials
Blogs
Videos
Jobs
Conferences
Events
Books
Gems
Services
Other
About
Home
Categories
1667
today
Tutorials
Custom error pages in Rails
This post was extracted and adapted from The Rails and Hotwire Codex. When something goes wrong in... Tagged with rails, ruby, webdev.
Rails system tests for multiple screen sizes
Rails system tests simulate a user's actions in a web browser so it's akin to the app's real world usage. In a responsive app, this means testing on multiple screen sizes as well.Capybara, the tool used by system tests under the hood, has a method...
Testing controller concerns in Rails
Concerns are a great way to organize and de-duplicate code in Rails.One of my favorite use cases is to abstract everything out of the ApplicationController into concerns. This begs the question: how do you test these concerns?The approach for test...
Directing Turbo Native apps from the server
When developing for the web, we can send the user to any location during a web request using an HTTP redirect (3xx status codes). Turbo Native effectively wraps the website within native navigation. This means a redirect may not always do the tric...
Turbo Streams meets Action Cable
Turbo Streams are a great match-up for Action Cable as it makes it easy to broadcast DOM updates to the browser over WebSockets. The turbo-rails gem integrates with Action Cable to facilitate such updates.In this blog post, we'll look at how this ...
HTML5 Canvas on Rails? Part 1
Vanilla rails doesn't really give much guidance for how best to interact with an HTML5 canvas. This series represents my suggestion for how to build features in a way that conforms to StimulusJS and Rails conventions. To showcase this approach, I ...
Help you get reading the huge open souce libraries in Ruby and trace its source locations
🔍Help you get reading the huge open souce libraries in Ruby and trace its source locations - yhirano55/trace_location: 🔍Help you get reading the huge open souce libraries in Ruby and trace its source.
Phlex — fast, object-oriented view framework for Ruby
Phlex views are “plain old Ruby objects” — templates are methods and HTML tags are method calls. If you know how to define a class with a method that calls another method, you know how to use Phlex.
How to Fix Rails 6.1 'Initialization autoloaded the constants' Warning Messages
Got autoloading during initialization warning messages in your Rails 6.1 app? It's time to_prepare for the next version.
Elixir-style Pipelines in 9 Lines of Ruby | Greg Navis
Elixir pipelines are an elegant construct for sequencing operations in a readable way. Fortunately, 9 lines is all it takes to implement them in Ruby.
<
1
…
65
66
67
68
69
…
263
>
Visit our quiz
Categories
News
Tutorials
Blogs
Videos
Jobs
Conferences
Events
Books
Gems
Services
Other