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.
HexaPDF 0.5.0 - Support for Advanced Text Layout
This latest release of HexaPDF has gained advanced text layout functionality (like horizontal/vertical alignment, arbitrarily shaped text, kerning/ligatures and more) -
Server-Side React Rendering
Server-Side React Rendering [more inside]
Awesome Ruby Newsletter Issue 58
This week’s weekly issue covers the following topics: [more inside]
Dr Jekyll's Themes Adds Trending Page - Most Starred Static Website Jekyll Themes
Hello, I’ve relaunched the Dr Jekyll’s Themes front page / site. Now showing the top themes, the latest (newest) themes, the trendiest (most starred this month), and the first of all 200+ on the front page. The new trending page shows the most starred (fastest growing) this month. Congrats to Michael Rose’s Minimal Mistakes (⇑377) for the trendiest static website theme. Happy publishing w/ Jekyll. PS: Dr Jekyll’s is (of course) built w/ Jekyll ;-) and open source ‘n’ public domain.
Dynos spinning other dynos with Heroku
Dynamically scaling a single dyno up and down turned out to be a simple, cost-effective solution for doing high-memory, short tasks.
Crystal, TDD and Conway's Game of life
The Game of Life is a cellular automation devised by the British mathematician John Horton Conway in 1970. I’ve been using it as a challenge to learn and teach programming languages in the past 5 years. [more inside]
Html2Docx Gem
Html2Docx gem first relase. This version include paragraph style and inline tags supporting. I will implement table, image, links, heading and table of contents. [more inside]
Rails Quiz: XSS Edition
Think you know all about protecting Rails applications from XSS attacks? Test your knowledge with this mini-quiz!
Faster Rails: Indexing Large Database Tables Without Downtime
How to index large database tables in Rails without downtime:
Private files for your Rails app using S3
Having files on your website to be seen by the world is quite easy. But what if you don’t want them to be available for free? We’ve looked at how to secure them with Paperclip. Now let’s add in S3 and get them off the application server.
The 3 tenets of Service Objects
Service Objects are becoming a staple in the toolbelt to slim down both Controllers and Models. Read about the 3 tenets of Service Objects:
Anyway Config – 12factor-aware configuration for libraries and applications
Anyway Config allows you to easily follow the twelve-factor application principles and adds zero complexity to your development process. [more inside]
How to Create a Landing Page With Google Sheets and Ruby
This is a video tutorial showing how to use Google Sheets as the backend for a basic landing page. Check it out on YouTube
Generate API documentation from RSpec examples with the DOX gem
Writing API documentation is a boring task, manual updating leads to errors and it’s time consuming. [more inside]
Basically Basic, Minimal Mistakes, HPSTR & More - Jekyll Themes by Michael Rose
Hello, to celebrate Jekyll passing ★30 000 GitHub stars (the fastest growing web framwork in Ruby today ;-)) - lets also celebrate and thank Michael Rose for the outstanding (free, open source, and well-documented) static website themes incl. Basically Basic, Minimal Mistakes, HPSTR, So Simple & Skinny Bones. PS: You might also enjoy Michael Rose’s classic How I’m Using Jekyll in 2016. Happy publishing w/ Jekyll & friends.
Everyday Rails Testing with RSpec updated for 2017
Hi, I’ve given my book on testing Rails apps with RSpec a major overhaul for 2017. There’s an all-new sample app using RSpec 3.6 and Rails 5.1, expanded coverage of API testing, and general updates to reflect my current testing philosophies. I hope you’ll check it out. It’s a free update for existing readers, and I wouldn’t turn down new readers :)
Git Cop 1.0.0
Having worked on many teams where Git commit messages have been non-descriptive; hard to reason about what has been committed; inconsistent; and so forth, I’m happy to announce the release of Git Cop 1.0.0. Now you have a tool, like Rubocop, that will help ensure good Git behavior on your feature branches so undesired commits never make it to master! Git Cop can be wired in as a Git Hook or, better yet, be added as part of your build process so feature branch builds fail if commits are bad (recommended). Let feature branch code reviews be focused on architecture and high level discussions while Git Cop takes care of reviewing Git commit behavior. All Git Cop checks are completely customizable for your team’s style guide, see the README for details. [more inside]
[Screencast] Working with Subdomains
Learn to create a multi-tenant application where access to tenants are determined by the subdomain.
Top 22 Open Source Jekyll Static Website Themes - June Edition Update @ Dr Jekyll's
Hello, I’ve updated the Dr. Jekyll’s Top 22 Open Source Static Website Themes page. Congrats to #1 Jekyll Now ★ 3653 by Barry Clark; #2 Poole ★ 2178 by Mark Otto; #3 Minimal Mistakes ★ 2068 by Michael Rose and all the runner ups. Happy publishing with Jekyll & friends. PS: Any theme missing? New themes welcome.
New Book: Demystifying Rails
How Rails conventions work from first principles.
Open Data w/ Ruby - Football Confederations Cup Russia'17 - $ sportdb new confed2017
Hello,
today opens the Football Confederations Cup in Russia. To celebrate the open football.db now includes public domain datasets for the Confed Russia’17 match schedule / tournament. Use the sportdb gem / tools to read in the plain text fixtures
into your SQL database of choice (thanks to ActiveRecord).
Use $ sportdb new confed2017.rb to download the zip archives, build the schema
and read/parse the datasets resulting in a single-file SQLite football.db. Enjoy the beautiful game. Cheers.