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
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Rails 5 makes belongs_to association required by default.
From Rail 5 onwards all belongs_to association is required by default. [more inside]
Top 7 Ruby Gems
Go through the list of Top 7 Ruby Gems provided below and see your business soar!
Wye Tech News #10
A new issue of our weekly compilation of interesting news and articles about Ruby, Rails, JavaScript and web development related stuff that we found during the week.
Rails 5 does not halt callback chain when false is returned
Rails 5 does not halt callback chain when false is returned. [more inside]
Translation in Rails never was so easy
After two years of working on a big multi-language application I’ve extracted our translation code (a simple convention & defaults) into t_t gem. Check out if it helps you by looking at the cheatsheet
Rolling Builds on TravisCI
Reduce the concurrent job load on your TravisCI plan using rolling builds by canceling older builds on the same branch. A Rails 5 API template application that your organization can fork, configure, and deploy to Heroku.
Namespacing views by subdomain in Rails
Here are some tips and tricks on how to load different views and layouts based on the current subdomain your app is being hosted from.
Run migrations on Dokku/Heroku deployment
How can you run migrations when you deploy code to Heroku or Dokku: https://buildtoship.com/run-migrations-on-dokku-heroku-deployment/
Testing Rails Simple Guide — Part 2
From part 1, we already know we can use Integration Test and Unit Test to test our rails application. So in this part, we will dive deep to explore how to writing test with RSpec. [more inside]
Take a screenshot any time Cucumber's scenario failed on CircleCI
Let’s take a screenshot Whenever one of scenarios is not passed on CircleCI, I’ll run it on the local computer to fix it. However, last month when I ran failed scenarios on local computer, they passed without any errors. It’s so weird! So I decide to get screenshot of current webpage any time a scenario fails.
Namespacing and scoping your Rails monolith
I decided to write up how I use namespaces and scopes in my Rails apps to separate concerns.
Henry’s Themes - Free Jekyll Starter Themes incl. Bootstrap, Classic Books, etc.
Hello, I’ve moved all my Jekyll static site starter themes for easy (re)use into its own github org, that is, Henry’s Themes. All are Jekyll 3 ready (and use kramdown for markdown processing). Static site examples include:
tty v0.4.0 released + website updated
tty packs new upgraded versions of all its dependencies from tty-* ecosystem including new ones such as tty-color. For easy of references and documentation you can use updated website API section.
The application helps you search information relate to languages and technologies
The application helps you search information relate to languages and technologies. Currently, this application just supports three sources: StackOverFlow - RubyGems - Confreaks with simple features. [more inside]
Chad Fowler Interview
The Passionate Programmer on Developer On Fire I interviewed Chad Fowler on my podcast. He told outstanding stories about not only life in software, but life itself. Amazing guy and he absolutely rocked the interview. His advice on being deliberate, favoring mindfulness, and empathy are solid. I think you’ll like this one.
Eileen Uchitelle Interview
Eileen on Developer On Fire I interviewed Eileen Uchitelle on my podcast. The stories she shared were great and inspiring. She has a great perspective and was awesome in sharing what life is like for her at Basecamp and how she has gotten to where she is, Rails 5, and becoming a speaker despite the petrifying fear.
Rails: MVP vs prototype
The thing that Rails allows us is to build a real MVP and not only a prototype. That’s what Rails is optimized for. [more inside]
Testing Rails applications in the life of a freelancer
An opinionated post about automated testing in general.
"Fuuu", a gem to automate Stack Overflow searches
Copy/Pasting error messages? So 2015! https://github.com/sophiedeziel/fuuu
How To Import Data From A CSV File In Rails Or Ruby
This article describes how to easily import data from CSV files in Ruby. http://solidfoundationwebdev.com/blog/posts/how-to-import-data-from-a-csv-file-in-rails-or-ruby
Common problems (and solutions) when starting Docker with Rails
There are a lot of blog posts out there explaining how to get started with Docker. But in our recent experiments we’ve run into a couple of issues, so we’ve compiled a list of our encountered problems and their solutions on our latest post. I hope it’s useful.
Why do you need arel?
I think Arel is one of the most underestimated gems. The post is about a real use-case scenario when Arel can be effectively better than ActiveRecord.
How to Send and Receive SMS with Ruby and Sinatra
Quick 5 minute video tutorial on how to send and receive text messages from your Sinatra applications.