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.
How to Build a Math Evaluation Engine
My guest post on the Codeship blog explains how you can build your own eval engine https://blog.codeship.com/build-math-evaluation-engine/
Don't Forget About Infinite Enumerators
When was the last time you created an Enumerator? We use enumerables all over the place but it’s rare to see “Enumerator.new”. If I’m being honest, sometimes I forget it’s an option. I’m guessing you might as well. [Read More]
Dead Simple Blog Setup With ButterCMS
We recently decided to move our blog off of Tumblr and into our main site. We wanted our blog to feel more like part of the main site and an integrated blog is also more SEO friendly. We thought about publishing our blog as static files with Jekyll. However, it quickly became clear that sharing our main HTML layout file between Jekyll and our main Rails app was not going to be elegant. The layout file needed to be duplicated, making it tedious to keep up to date.
More Slide Show (S9) Presentation Templates Now Jekyll-Compatible - CSSS, Slidy
Hello, I’ve added new presentation / slide show template packs, that is, converted (“liquified”) and GitHub Pages/Jekyll-ready/compatible: 1) CSSS by Lea Verou - ready-to-fork/use template pack and live demo. 2) Slidy by Dave Raggett - ready-to-fork/use template pack and live demo (w3c) and live demo (blank). 3) Shower by Vadim Makeev - ready-to-fork/use template pack and live demo (ribbon). [more inside]
Getting started with Operations in Trailblazer
One of the most important aspects of Trailblazer is that your Models and Controllers should be very thin. Controllers should be lean HTTP endpoints, and your Models should only deal with associations and querying. [more inside]
My notes from RailsConf 2016
Notes include the summary of the most exciting talks, links to slides and recorded keynotes. check it out!
Modern, component-based JavaScript integration strategies for Rails
A tour of 4 progressively advanced JavaScript integration strategies for Rails, all the way from componentized jQuery via Sprockets to the most advanced workflow possible today with Webpack, including hot module reloading, lint-on-save, CSS extraction and autoprefixing, automatic spritesheet generation, and much more. [more inside]
Knuckles, The Next Level of API Caching
Introducing Knuckles, a library for highly efficient caching with Rails APIs http://sorentwo.com/2016/05/10/knuckles-the-next-level-of-api-caching.html
An offline page for your Rails application
This post demonstrates how to integrate the Service Worker JavaScript API with the Rails asset pipeline to precache and render an offline page for your Rails application when visitors have no network connection. https://rossta.net/blog/offline-page-for-your-rails-application.html
Real-Time Rails: Implementing WebSockets in Rails 5 with Action Cable
It’s been one year since Action Cable debuted at RailsConf 2015. My post for the Heroku blog takes a look under the hood of Action Cable and details what it’s really like to implement what DHH calls “the highlight of Rails 5”. In fact, as a full-stack offering for seamlessly integrating WebSockets into Rails, its pretty awesome.
Premature optimization is the root of all evil...or is it?
Donald Knuth’s oft-quoted paper popularized the line “Premature optimization is the root of all evil”. Have we been avoiding optimization to an extreme in our Rails dev process today?
Errbit + HTTPS: Setting up Errbit reporter (Airbrake v5 gem) to work with self-signed
Having an error catcher like Errbit behind SSL is generally a good idea. Especially when Errbit is hosted on a different server than you application (for example when you manage multiple apps with one Errbit instance). In many cases you will have a self-signed certificate (why would you pay for a cert for internal tool). If you try to use it with Airbrake, it will fail unless you implement patch from this post: Errbit + HTTPS: Setting up Errbit reporter (Airbrake v5 gem) to work with self-signed HTTPS certificate
Hebillas, the perfect suspender companion
If you’ve ever used the awesome Suspender Gem from thoughbot, you might like to check out Hebillas, our companion template.
Write Your Talks / Presentations in Markdown - New Slide Show (S9) Online Service
Hello,
I’ve put together a litte online editor / service for the Slide Show (S9) machinery that lets you convert plain text with markdown formatting into slide shows using your template pack of choice (e.g. S6 Blank, deck.js, etc.). The service runs on Heroku e.g. tryslideshow. About the formatting: Heading 1s get converted to “title” or “section” slides. Heading 2s get converted to “regular” slides and use horizontal lines (e.g. ---) for “hard” slide breaks. Example: [more inside]
Twitter Streaming APIs with Ruby
Twitter Streaming APIs provide a interface to monitor or process Tweets in real-time. In this post, I want to share about how to use it in Ruby to get real-time Tweets data. Read more here.
Packaging ruby programs in NixOS
NixOS is a system in which all packaging is declarative. In this blogpost I describe how to package simple ruby program to NixOS system. [more inside]
Top 10 Tools/Ruby Gems for Quickly Building Social Networking Sites
Check out some of the best Ruby gems for building social networking websites. Read here
Rails 5 allows updating a record without updating timestamps
You can now save without updating timestamps in Rails 5. [more inside]
[Screencast] WYSIWYG Editor with Trix
Compose beautifully formatted text in your web application. Trix is a WYSIWYG editor for writing messages, comments, articles, and lists. https://www.driftingruby.com/episodes/wysiwyg-editor-with-trix
Make Ruby Great Again
This is a talk on how we can make Ruby thrive in spite of its maturity. What starts as an RSpec & Rails 5 talk broadens dramatically to a discuss Ruby’s eroding relevance in the industry. Ruby’s maturity has created a paradox: it’s a more productive environment than ever to work in, but Ruby is being talked about less in our novelty-obsessed industry.
Ruby on Google App Engine goes beta
A Ruby runtime on Google App Engine was released (in beta) at RailsConf last week. https://cloudplatform.googleblog.com/2016/05/Ruby-on-Google-App-Engine-goes-betaruntime.html