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.
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!
stop_watch gem released!
New stop_watch gem for marking times like a stopwatch timer. Useful for games and benchmarking. See: stop_watch. Used in faster_path for creating visual benchmarks. (Built with a different design and purpose from the Rails/Rake stopwatch gem.)
find_with_order 1.0.0 released!
Provides a simple way to find records in the same order of input array. Has better performance than manually sorting. https://github.com/khiav223577/find_with_order
Rails Chat Application
Have you ever dreamed about creating your own Chat Application that works in real time like Facebook Messenger? It’s possible in Rails and you can finally do this thanks to our new tutorials! [more inside]
Brains - Machine Learning using JRuby
This gem allows you to easily get started with machine learning on ruby. Design to be no nonsense and straightforward to use with the right mix of usability and performance. Features a simple feedforward neural network implementation with built-in backprop training functions. [more inside]
Creating Powerful Command Line Tools in Ruby
Walking through designing a command line application in Ruby, from input to output and everything in between. Complete article here.
RubyPlus Podcast Episode 25
This episode covers JSONlite by Justin Keller : A simple, self-contained, serverless, zero-configuration, json document store. This is written in Python. It would be nice to develop a Ruby gem that has the same functionality. It should be easier to setup and use. For more stories listen to the episode now.
Generate web fonts from your SVG icons with Iconly
Iconly is a Rails engine that allows you to import your SVG icons and then create web fonts for your projects. It allows you to add only the icons your project needs, not hundreds of them. And if you’ll be using Bootstrap 4, that doesn’t include glyphicons, then you might be needing this. It is also the engine behind the Iconly.net website, that allows hosting of up to 5 free projects.
15 Weird Things About Ruby That You Should Know
This is round two of my super-popular “11 ruby tricks” post that I published last year. 15 NEW tricks for you! http://www.blackbytes.info/2017/02/weird-ruby/
Podcast on TDD, Ruby, and Rails
Podcast conversation with Noel Rappin (author of Rails 4 Test Prescriptions), Sam Phippen (RSpec core team and frequent speaker on testing), and Justin Searls (maintainer of a bunch of testing tools, and frequent speaker and blogger on testing). [more inside]