3 links
tagged with all of: ruby + rails
Click any tag below to further narrow down your results
Links
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.
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.
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.