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 improves searching for routes with advanced options
Rails 5 brings additional options for rake routes task to display specific routes. [more inside]
Ruby Threads and ActiveRecord Connections
Unlike independent processes, all Ruby Threads within the same process share memory, enabling each individual Thread to consume or process objects and elements from the same data store. A problem occurs with ActiveRecord connection consumption when using these Threads.
Exploring MRI Source Code
Ever wanted to pry under the hood and see how Ruby works? http://www.blackbytes.info/2016/02/exploring-mri/
5 Tips to Speed up your Website
Improve perfomace of website is big story. Today, I’ll share with you 5 tips to speed up your website. Read more: http://goo.gl/SN9k6M
How to speed up Ruby on Rails updates using PostgreSQL
Learn how to speed up migrations and make your updates atomic with these simple PostgreSQL optimizations for your next RoR project.
Envforcing environment variable requirements
Envforcer is a Ruby gem that enforces environment variable requirements in Rails applications. http://blog.mojotech.com/envforcing-environment-variable-requirements/
One Week of Remote Working: The Good & The Bad
Everyone read DHH’s book on the subject, but we never made a concerted effort to adopt remote culture until last week, and we’ve written about what we learned here: https://www.madetech.com/blog/one-week-of-remote-working-the-good-and-the-bad
Comparing Rails and Phoenix
I’ve tried to create a thorough and fair comparison of Rails and Phoenix. We’ll talk about where they are similar and where the differ, providing examples all along the way. In Part 1 we’ll mostly talk about getting started, routing, and app architecture. In Part 2 we’ll dive into the Model, View, and Controller.
Which Ruby background job framework is right for you?
Just like there is no single programming language that can solve everyone’s problem, there is no single ‘right’ job framework. Here’s a comparison of Sidekiq, Delayed::Job, and Suckerpunch.
How to teach React.js properly? A quick preview of wroc_love.rb workshop agenda
In this short blogpost I describe and analyze what makes React.js hard for beginners and how to overcome it. The conclusion is applied to create a workshop agenda. I’d love to invite you to a workshop - if you happen to be in Wrocław, it’s free!
Produce PHP-style multidimensional array in Ruby, e.g arr[1][2][3] = 'foobar'
I had to reproduce multidimensional PHP array behaviour in ruby. Here is the result: [more inside]
New Ruby on Rails 5.0 Book
I published my new Ruby on Rails 5.0 book on Amazon. It covers all the normal Rails stuff plus the new 5.0 goodies Action Cable and Active Job. The Ruby beginner’s chapter has been updated to Ruby 2.3. [more inside]
Build Books w/ Gutenberg - a Web Typography Starter Kit - and Jekyll
Hello, I’ve put together a static site theme that lets you build books w/ Gutenberg - a web typography starter kit by Matej Latin. The theme uses the Sass source version and gets auto-build using the GitHub Pages service. See the live example - “Strange Case of Dr. Jekyll and Mr. Hyde” by Robert Louis Stevenson or the source repo. Happy Jekylling. Cheers.
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.