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.
3 ways to use React with Ruby on Rails 5
This article introduces 3 methods for how to use React.js in Ruby on Rails apps. It also discusses the pros and cons of each method and when to choose which one - https://learnetto.com/blog/3-ways-to-use-react-with-ruby-on-rails-5
Be Careful With Method Caching
A small relate about how method caching was the culprit for a failing spec that took me more time to fix it then it should. More inside
New Book: Core Ruby Tools
This book provides a short tour of four core Ruby tools: Gems, Ruby Version Managers, Bundler, and Rake. We’ll see how these tools fit into the Ruby environment and your computer system, and learn how to diagnose and fix problems that you may encounter when using them. The book is available now and completely free. [more inside]
You Don't Need an API Wrapper
When you are working with “informational” HTTP APIs (like weather, geonames and similars, currencies, movies, transportations and so on), you probably don’t need a dedicated Ruby gem at all. Here is why.
Basic introduction to VCR
while following TDD approach, there are certain tools available which might help you save lots of time to solve specific issues. one of those tools is VCR. what is VCR and it’s purpose just check out at https://kushalmistry.wordpress.com/2017/03/02/vcr-introductiontdd/
Your Guide to testing in Ruby on Rails 5
Testing, while requiring a little bit more cognitive load up front, and even loathed by some developers, will often pay dividends down the road. It will almost always have you saying “I’m glad I wrote tests for this” at some point. [more inside]
Write that first complicated test
What code of yours isn’t tested? Is it code that deals with complicated situations that you don’t control? Threads, running commands, git, networking, or UI? How can you make those challenging tests something you can rely on?
Rearmed Rails gem released!
Rearmed Rails is a gem that packs a bunch of helpful opt-in monkey patches to your Rails app to make your life better. One for example is a version of ActiveRecord or method that works in Rails 4,5+ and works the way you expected it to and is usable, unlike the way they implemented it. https://github.com/westonganger/rearmed_rails
Generating application documentation in Rails 5
Last year, I wrote a post about my workflow for application-level documentation in Rails. Then Rails 5 removed support for it. Here’s how to add application doc support back in your Rails 5 apps.
How to Do Agile Prototyping Using Static Pages to Reduce Development Time
At MarsBased, we have to create lots of prototypes and concept works for our clients. As a consultancy, we get a lot of requests like this, and we’ve found a pretty good solution for the case of not having a designer in house, or a very busy one. [more inside]
Multi Tenancy by using apartment gem
This gem helps us to deal with multi tenancy in Rails application Multi Tenancy by using apartment gem
[Screencast] Implement the Decorator Pattern with Draper
Learn how to implement the Decorator Pattern for your views using the Draper gem.
[Screencast] Exploiting XXE Vulnerabilities in Nokogiri
New screencast demonstrating a recently disclosed XXE Vulnerability in Nokogiri, a popular Ruby-based XML and HTML library, and discussing how to protect against it. There’s also a related blog post.
The Case Against Dynamic Typing
An argument for dynamic typing is that by not enforcing the types of a function’s parameters, the function becomes more generalized, and thus more flexible and reusable. I argue that this flexibility versus automatically-verifiable correctness of the system is not a trade-off we need to make. http://blog.debugme.eu/dynamic-typing/
bespoke.js - New Slide Show (S9) Presentation Theme (Jekyll/GitHub Pages-Compatible)
Hello, I’ve added a new presentation / slide show template pack for bespoke.js, that is, converted (“liquified”) and GitHub Pages/Jekyll-ready/compatible: 1) Bespoke.js by Mark Dalgleish - ready-to-fork/use template pack and live demo using the cube style. Cheers. PS: What’s Slide Show (S9)? A ruby gem that lets you write your talks in plain text w/ markdown formatting.
[Screencast] Ruby on Rails 5.1.0 Changes and New Features
Screencast on the beta release of Rails 5.1.0 and the upcoming features, including Yarn/Webpack, System Tests via Capybara, Encrypted Secrets and a bunch of other cool things! https://www.driftingruby.com/episodes/ruby-on-rails-5-1-0-changes-and-new-features
How to Cleanly Test Rails Rake Tasks with RSpec
When you need to test Rake tasks for a Rails app, its convenient to be able to write short, snappy specs. https://www.wetestrails.com/blog/test-rails-rake-tasks-with-rspec
Rib - a new irb replacement
rib is an irb replacement which aims to be faster, more extensible and with less bugs. It will start up in half the time compares to irb or pry. Version 1.5 is released today.
How to Run Multiple Dependent Builds on Circle CI
Running dependent builds on Circle CI is not something trivial. You need to configure your application to do this with a few simple steps. [more inside]
Lita chat bot plugin: "lita-aws" for AWS services management.
lita-aws is a plugin of lita chat bot for managing AWS services such as EC2, ELB, S3, CloudFront, SNS and so on. By providing region, access key and secret key to chat bot for supporting multiple accounts or regions. It use aws-cli as backend execution, and provide aws-cli familiar command interface for friendly usage.
tty-prompt now supports Windows console!
The newest release of tty-prompt brings support for prompts in Windows console/powershell. It uses native Windows key reading capabilities and replaces unicode characters with ascii equivalents. Plus, many issues have been fixed. Enjoy!