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.
Static Times Q&A about Octopod ‘n’ Podcasting w/ Jekyll w/ Stefan Haslinger
Hello, In the Static Times Q&A series let’s welcome Stefan Haslinger - author of Octopod - a free Jekyll extension (theme and scripts) that lets you publish your own radio shows in minutes w/ Ruby ;-) Questions (and answers) include: Q: How did you get started with podcasting? ++ Q: Do you remember - how did you find out/ get started with Jekyll? Did you try out any alternatives static (web) site builders e.g. Middleman, Nanoc, etc.? ++ Q: Jekyll and Podcasting - How (and why) did you get started / end up writing your own Jekyll Podcasting extension (Octopod)? ++ Q: Can you highlight some of the great Octopod features / goodies? ++ Q: How do you handle the upload / sync of the big media files (audio recordings)? ++ Q: What’s next for Octopod? Any plans for the future? ++ Q: Any tips on getting started with Octopod? Read the full Q&A » Cheers. Happy Podcasting. Happy Jekylling.
Why I wrote "massager" gem?
I have been working with a lot of different data sources lately and wanted to have a DSL that is capable of handling the conversions/coercions and type checks on the boundries of my application. Here is the blog post with reasoning behind “massager” gem: http://janjiss.com/why-i-wrote-massager-gem/
DRYing Up Your Ruby Module
You know about the Don’t Repeat Yourself principle, but how do you actually apply it in production code? Let’s refactor a Ruby module and see the DRY principle in action.
What’s Happening in Your Ruby Application?
Learn about the ObjectSpace module to help you debug & explore your application’s status: http://www.blackbytes.info/2016/09/object-space/
Auto-Labeling Pull Requests
As our engineering team continues to grow it’s becoming difficult to keep track of all the changes that we’re introducing to our codebase every day. Check out how we auto-label our pull requests based on the files that they touch.
A Definition Of Magic
Rails and Ruby are often accused of being “too magical,” but what does that mean, exactly? Here, I’d like put forward a definition of magic.
Is Elixir programming really that hard?
How to survive in a post-apocalyptic Elixir world devoid of classes, objects and methods that we’ve grown to depend on so much? Written from a perspective of Ruby & Rails developer without prior experience in functional programming. Read more on the Phoenix on Rails blog.
35x faster and 4x less memory hungry PDF rendering using Prawn instead of wkhtmltopdf
Look how a solution based on Prawn compare to one based on wkhtmltopdf when comes to generating invoices.
Hello, Jekyll! & Hello, Minima! Theme - Get Started in 60 Seconds w/ GitHub Pages
Hello, I’ve put together two 1-2-3 steps getting started guides in 60 seconds for using Jekyll with GitHub Pages. #1 - Henry’s Hello, Jekyll! - start from scratch with a blank page / site: Step 1 - Create the Jekyll Configuration / Settings File ++ Step 2 - Create the Index Page ++ Step 3 - Create the Master Layout ++ See the Henry’s Hello, Jekyll! theme / repo for the live action. [more inside]
Fighting custom actions in Rails controllers
By now I have never seen a rails project which doesn’t have custom actions in rails controllers. And that makes me upset. Here I’m going to describe my thoughts about custom actions, why people use them, why I hate them and how to deal with them. http://blog.active-bridge.com/fighting-custom-actions-in-rails-controllers
Usage of SQL and NoSQL Database’s in Single Rails Application
There are distinctive reasons why you should think about having various databases in your Ruby on Rails application. In my situation, I expected to store large quantities of data. Read here : Usage of SQL and NoSQL Database’s in single rails application(MySQL, PostgreSQL and MongoDB)
Rails 5 blogs and the art of story telling
Between October 31,2015 and Sep 5, 2016 we wrote 80 blogs on changes in Rails 5. This blog captures what we learned along the way.
RubyKaigi 2016 - summary
Last week I attended RubyKaigi, the most prestigious Ruby conference in the world. Find out what it was like and what went down. Read More
Microservices using Rails, HTTP & RabbitMQ
This blog post explains why sometimes microservices play very important role in some situations over the monolithic app. [more inside]
[Screencast] Authorization with Pundit
Prevent unauthorized access to your application with Pundit; an authorization library for Ruby on Rails which restricts what resources a given user is allowed to access. https://www.driftingruby.com/episodes/authorization-with-pundit
The Last API Wrapper: Pragmatic API wrapper framework
tlaw (The Last API Wrapper) gem allows to create reliable and discoverable API wrappers really easy. It targets “get-only” APIs (like weather, transportation, geonames and so on).
N+1 is a Rails feature
Learn why DHH calls N+1 a feature of Rails and why you may want to think twice before you reach for eager loading to squash those N+1 queries in your Rails app. https://rossta.net/blog/n+1-is-a-rails-feature.html
Top 22 Jekyll (Static Website) Themes, Latest n Newest Themes n More @ Dr. Jekyll's
Hello, I’ve updated the Dr. Jekyll’s Themes site that lists free (open source) static (web)site themes. What’s news? ++ All themes now include github stars (e.g. ★ 2907) ++ A new Top 22 themes page listing themes ranked by github stars - and the winner is … Jekyll Now by Barry Clark. ++ A new page listing the newest themes (by github repo creation date) ++ A new page listing the themes by latest updates (by github commits) [more inside]
InvoicePrinter 0.0.7 released, what do you want to see in final 0.1.0?
InvoicePrinter gets support for another image (stamp&signature) and a footnote along some other fixes. If you haven’t try it before, now is the time to try (or explore /examples) and tell me what do you think.
Ruby: Hash default value – be cautious when you use it
Default Ruby hash value can be really useful. Unfortunately, when used without deeper understanding, it can cause some trouble. In this article I describe one of the examples that at first glance behave weird.
Better File Uploads with Shrine: Uploader
In the previous post I talked about the motivation behind creating Shrine. In this post I try to explain some of Shrine’s core design decisions, and how they bring more flexibility than other file upload libraries. Read about it here.
How To Change The View Path Of A Controller In Rails
This article describes how to manipulate the views paths in your Rails app. You will see how you can use to share a view directory with another controller or switch the base view path based on some variable such as a site name for a multi-tenant app. https://solidfoundationwebdev.com/blog/posts/how-to-change-the-view-path-of-a-controller-in-rails
Making HTTP requests in Ruby
This article is all about HTTP requests. It covers which libraries are out there, how to monitor what they’re doing, and how code can be structured to encapsulate them to the outside world. [more inside]
Brakeman Pro Engine is here!
I am very excited to announce Brakeman Pro is now available as a gem. Not only can you use the Brakeman Pro Engine from the command line and as a drop-in replacement for OSS Brakeman, you can also easily add automated security coverage with the new RSpec and Minitest integrations. [more inside]