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.
Characteristics
Need to do low-level string encoding work? Meet characteristics, a Ruby library that tells you some basic info about single codepoints, like: is it assigned? is it a control character? is it a whitespace? Works with Unicode and single byte based encodings.
Best Ruby / Ruby on Rails books
List of 20 best Ruby / Ruby on Rails books to read mentioned on stackoverflow.com
RuCaptcha - The best Captcha solution ever.
This is a Captcha gem for Rails Applications. It drawing captcha image with C code. That means you don’t need ImageMagick or RMagick any more. And it very fast. [more inside]
How to Sort Arrays in Ruby - BR
Draft Blog Posts in Middleman
We love the static site generator Middleman and used it to build RubyLetter. But Middleman doesn’t come with a drafts folder like Jekyll does. In this blog post, we walk through how to simulate Jekyll’s _drafts folder in Middleman. http://www.rubyletter.com/blog/2017/03/15/middleman-blog-drafts.html
Dealing with Test Leakage
Writing tests is always a bit finicky. That said, these frustrations grow to their awful peak whenever your suite of tests turns up indeterminate results. The classic example is when one of your normally passing tests randomly fails—even though the code hasn’t changed one iota. [more inside]
Tips for Programming Accounting Features in Web Apps
At what point in your life did you realise you were no longer a child but rather an adult? Donning a suit for the first time? Or being obliged to make and pay rent, month after month? The web application developer equivalent of all this growing up is….don’t get your hopes up…accounting. [more inside]
Google Spreadsheets and Ruby
Sometimes you don’t need a database. Maybe you’re building a prototype or a simple internal application. Using a Google Spreadsheet can be quicker and easier to set up and get going with. Here’s how to use the google_drive gem to read, write and delete data from a Google Spreadsheet.
Faster Rails: How to Check if a Record Exists
If your Rails app is getting slower, here are some tips on how you can make your Active Record queries faster:
How not to cut your source with sharp knife as Monkey Patch in Ruby
One of the most powerful Ruby features is the ability to re-open any class and change it’s methods. [more inside]
Reading Ruby Code: ROM - Exploration
Reading Ruby Code is an on going series on code reading that explores the ROM library. In this post we begin exploring ROM and its container method.
A Rubyist's Guide to Postgresql's Explain
If you want to understand why your database queries maybe aren’t as fast as they used to be, nothing beats a little feature of postgres called ‘explain.’ http://www.rubyletter.com/blog/2017/03/13/rubyist-guide-to-postgres-explain.html
Sending Emails with Rails on Heroku using Devise and SendGrid
How to set up your Heroku hosted Rails application to send emails utilizing SendGrid. Click here to read the full article
Creating Form Objects with ActiveModel
In this article we demonstrate how you can simplify your Rails views with Form Objects
[Screencast] Nested Forms with Cocoon
Using the unobtrusive gem, Cocoon, learn how to handle multiple models in a single form with accepts_nested_attributes_for. https://www.driftingruby.com/episodes/nested-forms-with-cocoon
Decent Exposure Gem
Goodbye to repeating instance variables - Decent Exposure Gem
oakdex-pokedex first release
Version 0.1.0 contains 802 Pokemon and 702 Moves and much more! Please checkout oakdex-pokedex and give me a star if you like it :)
TheOpenCMS. the Beginning
This week I’ve started creation of my own CMS. Wish me Good Luck. Changelog vol. 1
Rails DB version upgrade
gem was upgraded with removed not needed assets, Rails 3.2 improvements, Rails 5 tests now using 5.0.2 version.
Duo-lingual invoices with InvoicePrinter 0.0.9
I released InvoicePrinter 0.0.9. This version brings sublabels that can be used for duo-lingual invoices as shown on a new international invoice example. Read the announcement on my blog.
Deploy your RoR app to heroku
This is a simple gist that show instructions to deploy an RoR app on heroku.
gem Voiceless
This simple gem helps to keep system work if some part of the system is not included. [more inside]