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.
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
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.
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]
Cuba and React
Blog post outlining how to integrate React with Cuba. No JSX is necessary - everything is Ruby! Any feedback appreciated.
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.
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.
Filter sensitive Rails redirects in log files
Do you know the Rails.application.config.filter_redirect filter? It’s an undocumented configuration feature which lets you filter certain redirect URLs from your log files. This is handy when you’re redirecting to a URL with tokens in it so that they don’t show up in the log. Here’s an example.
Model's validation testing with type of validation
I have seen many times people do validation testing by comparing validation message, but instead if we use validation type ( symbolized key of locale ) to know which validation failed, it will make code easy and readable.
SingleCov: Actionable code coverage
Singleov shows uncovered lines after each test run with minimal runtime overhead.
Ruby's Parameters Reflection
The last two days’ episodes: Fancy number literals and reflecting on method parameters!