The Ruby and Rails community linklog
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Submit a post
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Rails dominates Ruby web frameworks: the next most popular framework, Sinatra, has 5% of the popularity of Rails. However, that doesn’t mean non-Rails frameworks like Sinatra and Grape don’t have their place. I explore the sweet spots and gray areas for Rails::API, Sinatra, and Grape.
Adding translations into your website does not have to be hard. With Rails built in I18N functionality, we gain access to many helpers and conventions that makes it a much easier task. Learn how to add I18N into your Rails application. https://www.driftingruby.com/episodes/working-with-internationalization
Over the last two years as a freelance developer I’ve picked up a couple of habits that improved the quality of my work and that I’d like to share: https://christoph.luppri.ch/articles/2017/02/20/5-habits-that-made-me-a-better-ruby-developer/
One way to speed up a slow test suite is to optimize how FactoryGirl is used, but where do you focus your efforts? Before tuning your factory usage, use
FactoryGirlProfiler to measure which factories are adding the most time to your test runs: https://www.wetestrails.com/blog/profiling-factorygirl
I have released the website https://coders-log.com This is a website similar to RubyFlow and JSLive but instead supporting all of the other technologies such as Go, Crystal, Elixir, Java, Unix, SQL, CSS, Design, and many more. Check it out! https://coders-log.com
I have just finished writing an article on how to replace the asset pipeline with Webpack 2 in Rails
Rails 5.1 will support Yarn out of the box, but in the meanwhile, if you want to start using yarn to manage your JS dependencies, here’s a short post showing how you can add Bootstrap to your Rails app using Yarn.
New version released of Spreadsheet Architect gem. Spreadsheet Architect is the simplest way to generate xlsx, ods, and csv spreadsheetsfrom your application. https://github.com/westonganger/spreadsheet_architect
Instead of letting users explain how and where they got an error, let them tell you “I got error number 123423423424” and then simply open up all the details in airbrake with airbrake-user_informer
After two years PolyBelongsTo has its 1.0.0 release! PolyBelongsTo allows you to access model relations with ActiveRecord in a more across-the-board meta-programming friendly way. It includes database model relation integrity checking, deep nested relation cloning of model records, and plenty of nifty simplifications for your database relations. See PolyBelongsTo.
Beginners use tutorials while experienced programmers read and refer to documentation. But how do you do that, exactly? This post explains the anatomy of a Ruby doc to help expand your understanding of Ruby: http://www.rubyletter.com/blog/2017/02/15/how-to-read-ruby-documentation.html