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.
FXRuby Enhancement
If you need a quick and powerful way to put together a Ruby GUI application, here’s an enhancement to the FXRuby FOX Toolkit wrapper. It’s been reworked to make it more appealing for Rubyists. [more inside]
Rescue's Elegant Trick for Knowing Which Exceptions to Catch
You probably know how to ask Ruby to rescue specific exceptions. But how does Ruby know if a particular exception meets your criteria? In this article, we’ll walk through Ruby’s simple exception matching mechanism and see how we can use it to our advantage. - http://blog.honeybadger.io/ruby-rescue-elegant-trick-for-knowing-which-exceptions-to-catch/
Ruby wrapper around REST Countries API http://restcountries.eu
Basic API implementation for REST Countries API http://restcountries.eu [more inside]
binding.irb now available in Ruby 2.4
binding.irb similar to binding.pry is now available by default in Ruby 2.4 http://blog.redpanthers.co/new-binding-irb-introduced-ruby-2-4/
act-form - new gem help you to build form object!
ActForm is the gem that provide a simple way to create form object or command object or service object, it only depends on activemodel >= 5 and provides few api.
Jekyll Talks Theme - Write Your (Ruby) Talks in Markdown - Auto-Builds w/ GitHubPages
I’ve put together a ready-to-fork static site theme (for jekyll and github pages) that lets you write your talks in plain text with markdown formating. See a live demo @ henrythemes.github.io/jekyll-talks-theme
». Sample talks include:
1) Dr Jekyll and Mr Hyde - Build Static (Web) Sites w/ Ruby - (Slides), (Source: drjekyll.md
)
2) Stay Static - Jekyll vs Middleman - Build Static (Web) Sites w/ Ruby - (Slides), (Source: jekyll_vs_middleman.md
)
3) Starter Sample (Blank Theme) - Habits - (Slides), (Source: starter.md
)
4) Starter Sample (Blank5 Theme) - Habits - (Slides), (Source: starter5.md
). Happy publishing w/ Jekyll. Cheers.
Creating data backed tables with Tabular and Ruby on Rails
A quick tutorial on how to build a data table with Tabular, a jQuery plugin, and Ruby on Rails. Tabular is a event and plugin based library, providing standard table functionality such as searching, sorting, pagination, etc..
Specifying parameters encoding by action in Rails
Learn how to accept parameters in different encoding than UTF-8 with a new feature coming to Rails. [more inside]
Use Elm in Rails 5 asset pipeline
Hi, i created small gem which should help you with using Elm in Rails 5 asset pipeline: [more inside]
Treat your dependencies like your own code
See how using version ranges in your gemspec results in nondeterministic Travis builds. One way of improving the situation is to treat your dependencies like your own code and trigger builds for dependency updates. So you can be sure your gem is working all the time.
What The Heck is Heap Fragmentation, and Why Should You Care?
The goal of Ruby 3 is to be three times faster than Ruby 2, but how? In this article we’ll discuss one performance bottleneck: heap fragmentation. You’ll learn how something as low-level as OS memory management can have real performance impacts on your Ruby apps. http://blog.url.com/blog/2017/01/10/heap-fragmentation-os-memory-management-ruby.html
"Ruby is still great"
After spending some time with The Hot New Stuffs (Elixir, Phoenix, Elm), I also realized just how much I still love Ruby, and why.
Introduction to writing a rack middleware
Beginner level article: on writing your own rack middleware. http://blog.redpanthers.co/rack-middleware/
State of the 2017 Rails Stack
Are folks upgrading to Rails 5? Where is the Postgres vs. MySQL battle heading? Are devs embracing Puma and concurrency? The results of the State of the 2017 Rails Stack by Scout.
Explaining Hanami from a Rails perspective
Checkout the first part of a series of articles explaining how to write an app in Hanami, comparing to Rails: From Rails to Hanami: Models
Guide for Documenting Your Rails API with Swagger
Checkout my latest article Do the Right Thing and Document Your Rails API with Swagger to know about documenting Rails API with Swagger published on SitePoint. [more inside]
Going HTTPS-only with Let's Encrypt
I wrote a brief call to action about using Let’s Encrypt to take Rails apps HTTPS-only, along with a couple of things to watch for along the way. Be ready for security changes coming in Chrome!
perform backups on remote servers
Backup-remote gem extends Backup gem to perform backups on remote servers. https://github.com/maxivak/backup-remote
[Screencast] Security and Static Code Analyzers
Whether you’re preparing for a third-party security scan or already doing peer code reviews, you should always run brakeman scanner on your application to identify potential security vulnerabilities. https://www.driftingruby.com/episodes/security-and-static-code-analyzers
Terjira, very interactive and easy to use cli tool for Jira
Terjira is an interactive and easy to use command line interface (or Application) for Jira. You do not need to remember the resource key or id. Terjira suggests it with an interactive prompt. [more inside]
Save The Dates: 11 Top International Ruby on Rails Conferences and Events 2017
http://www.bacancytechnology.com/blog/11-top-ruby-on-rails-conferences-2017
tty-cursor v0.4.0
tty-cursor fixes clearing terminal lines and adds new api calls such as clear_char, column(n), row(n), clear_line_before, clear_line_after. Enjoy!
Has many through polymorphic associations with ActiveRecord
I ran into a situation recently where I wanted to use a has_many through polymorphic relation
(think has_many :commenters, through: :comments
, where a ‘commenter’ could be a User or a Robot) That, surprisingly, isn’t currently possible with ActiveRecord, so I made the polymorph gem to support it!
Using Daru (Data Analysis in RUby)
At my job, I started work on a client project that was rather number intensive. We were going to have to perform repetitive calculations over a dataset. A colleague introduced me to the concept of data frames and the Ruby gem Daru. Here’s a look at some cool stuff you can do with Daru.
An alternative to eval
Eval is evil due to many reasons. But sometimes we can avoid it by using procs and changing their environment context!