Click any tag below to further narrow down your results
Links
This article outlines a coding style guide based on the Fizzy codebase, 37signals' open-source project management tool. It details best practices, patterns, and design philosophies derived from actual production code, emphasizing a "Vanilla Rails" approach with minimal dependencies.
This article explores the author's journey with Ruby on Rails, highlighting its impact on their career and friendships. It discusses the cultural significance of the Ruby community and the joy of programming with Rails during its early days. The piece also critiques how Rails has evolved over time.
This article introduces Rails UI, a service that provides ready-to-use components and themes for Ruby on Rails applications. It targets developers who want to enhance the visual appeal of their apps without needing design skills. Users can quickly implement professional designs and focus on functionality.
Lexxy is a new rich text editor designed for Ruby on Rails applications, offering a user-friendly interface and enhanced functionality for developers. It aims to simplify the integration of rich text editing features within Rails projects, improving the overall user experience. The editor supports various formatting options and is built with performance in mind.
Efficiently serving large files in a Ruby on Rails application can be achieved using the X-Sendfile or X-Accel-Redirect headers, which allow the web server (like Nginx) to handle file delivery after the application has performed authentication and authorization. This method improves performance, reduces memory usage, and enhances security by offloading the file transfer workload from the application server to the web server. It's particularly beneficial for large, static files but not necessary for small files or dynamically generated content.
A connection pool leak in a Rails application was traced back to the logger holding onto a database connection due to the accidental passing of an ActiveRecord relation, which evaluated within a thread causing connection exhaustion. The resolution involved modifying the logging to only include primitive values and highlighted the importance of careful logging practices and monitoring connection usage.
The article discusses various limitations and error messages related to applying code suggestions in a closed pull request for the Rails project. It highlights scenarios when suggestions cannot be applied, such as when no code changes were made or when the pull request is in a specific state. The focus is on ensuring that suggestions are valid and applicable under certain conditions.
Ruby on Rails has revolutionized web development since its 2004 debut, thriving as an open-source framework due to its MIT License, which encourages flexibility and community collaboration. Its principles, such as Convention Over Configuration and modularity through gems, have inspired a generation of frameworks like Laravel and Django, emphasizing developer productivity and experience. As Rails continues to evolve, it sets a standard for open-source projects and maintains relevance in modern web development.
A livestream experiment was conducted to rebuild the Events page of the Hub application from a Rails framework into Next.js, utilizing AI assistance through the Cursor editor. The team iterated through three attempts, ultimately finding success by refining their prompts, which led to a nearly complete solution with only minor adjustments needed. Future experiments will focus on enhancing AI capabilities for development tasks.
AmazingPrint is a Ruby library that enhances the pretty-printing of Ruby objects with full color and proper indentation, making it a suitable replacement for the now-stale AwesomePrint. It supports Rails ActiveRecord objects and includes customizable options for formatting output, including the ability to log formatted data and use it within Rails templates. Installation is straightforward via Ruby gem or cloning the repository from GitHub.
The article discusses the use of SQLite in Rails applications, highlighting both its advantages and the potential pitfalls that can lead to outages or data loss. It emphasizes the importance of proper deployment practices, such as ensuring persistent storage for the SQLite database, and explores strategies for managing database contention and scaling applications effectively.
Puts debugging is a favored technique for many Rails developers, and this article introduces a custom gem called `dbg-rb`, inspired by Rust's `dbg!` macro. It provides enhanced output for debugging by showing variable names, file locations, and line numbers, making the process more efficient without cluttering the Gemfile. Tips for integrating `dbg-rb` into Rails without adding it to the Gemfile are also discussed.
The conversation between Kevin and John highlights the complexities of modern web development with Rails, emphasizing the integration of tools like Vite, React, and Tailwind to enhance functionality. Despite the seemingly overwhelming setup, John demonstrates that a simple Rails application can still perform efficiently without all the added layers.
The article discusses how Evil Martians significantly reduced their Rails test suite and continuous integration (CI) time by implementing a series of optimization strategies. By analyzing and restructuring their testing processes, they achieved a dramatic improvement in efficiency, cutting their CI time in half. Insights into their approach provide valuable lessons for other developers looking to enhance their testing workflows.
Tidewave Web introduces a coding agent designed for Rails and Phoenix frameworks that operates directly in the browser, enabling developers to work with full context of their web application. By integrating deeply with the development environment, it eliminates the need for constant tool switching and improves collaboration through features like shared page context and collaborative testing. The tool aims to redefine AI developer assistance by understanding and interacting with the web framework runtime directly.
The article discusses the challenges of maintaining simplicity in web development, specifically when using Inertia.js with a Rails backend. It explores the complexities that arise and provides insights into how to address them effectively to enhance the developer experience and user interface.