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.
Get your gem as RPM easily
Have you ever wanted to get your gem packaged as RPM? It is now pretty easy with Copr! [more inside]
[Manga-Downloadr] Porting from Crystal to Ruby (and a bit of JRuby)
In my path to learn more about Crystal I wrote yet-another-MangaReader-downloader. The code is over here. And then I decided to port it over to Ruby to see how Crystal and Ruby compare. The new Ruby version of the downloader is here. And I wrote a detailed analysis of this experience. I also benchmarked the Crystal, MRI Ruby and JRuby with this scrapper/crawler use case. Check out my new post about it.
A Quest for Better Specs: Prefer Self-Containment
Join me as I walk you through potential problems with the RSpec mindset, and what we should do to make our specs more readable and maintainable. [more inside]
[Screencast] Client Side Validations
Give early warning to users of form errors before they submit. With client side validations, the user can correct any errors prior to submitting the form. https://www.driftingruby.com/episodes/client-side-validations
The problem with your large Rails app isn't Rails
It pains me to see the blame Rails gets for messy large codebases. This post provides a somewhat alternative idea of how we got into this state, and how we may prevent our mistakes from occurring again – https://www.twnsnd.com/posts/the_problem_with_rails_isnt_rails_itself.html
Integrate Brakeman in your workflow
How to integrate Brakeman into your daily workflow: https://buildtoship.com/integrate-brakeman-in-your-workflow/
Active Record vs Ecto: A Tale of 2 ORMs (video)
Great RailsConf 2016 video on ORM design, Elixir / Phoenix and Rails. Enojy! http://confreaks.tv/videos/railsconf2016-activerecord-vs-ecto-a-tale-of-two-orms
Extending Vault CLI with some Ruby love
Extending the basic Vault CLI using Ruby with Thor/Hirb When using Vault you only have access to basic commands, I wrote a CLI tool that extends the Vault CLI to include some useful commands. Ever wanted to show a tree representation of your secret structure? Or just add a secret?
Hyde Press - New (Free) Book - Octopod - Radio Show Podcast Publishing w/ Jekyll
Hello, I’ve added the Octopod User’s Guide by Stefan Haslinger et al to the Hyde Press Bookshelf. Happy Podcasting w/ Octopod (and Ruby). Cheers.
4 Ways To Avoid Monkey Patching
If you’re considering monkey patching but you know it’s a bad idea, here are four alternatives, in order from most preferable to least preferable.
A conversational introduction to rom-rb
Good intro with a preview of the upcoming features. Check it out!
Ruby Podcast Episode 6
Listen to the latest Ruby and Rails related news, checkout the Ruby podcast episode 6.
Case of fragile tests: testing something twice
Having one class use another class’s functionality happens a lot in object oriented programming. That’s called delegation and indeed this is how we make stuff work. Upon testing both classes it’s very easy to test some functionality twice which leads to fragile tests.
Ruby on Rails + MySQL Incorrect string value and key was too long errors
If you have issues in your Ruby on Rails application related to incorrect string values (even if you use UTF8), here’s a short tutorial on how to fix that using MySQL settings tuneup + Ruby on Rails migration
Create a multiplayer Tic Tac Toe game with Rails 5 and Action Cable
How to create a multiplayer Tic Tac Toe game (at least the Action Cable part) with demo and source code. http://cookieshq.co.uk/posts/tic-tac-toe-game-in-rails-5-with-action-cable/
Rails will drop jQuery
ujs will be reimplemented in plain vanilla js https://github.com/rails/rails/issues/25208
Organizing your Ruby On Rails models
Are you frustrated when you look at your models, and everything is all over the place? Get your team to use a uniform organizational style for all your Ruby on Rails models with this simple trick.
Flirting with Crystal, a Rubyist Perspective
I have just started playing around with the awesome Crystal Language. If you’re a Rubyist wanting some extra performance, you may find it here. Check out my review of the language
Thinking Sphinx one model index with two indices
In this short article I describe how to use Sphinx and Thinking Sphinx (v3) in a Ruby on Rails application to index the same ActiveRecord model with separate criterias using two indices. http://teotti.com/thinking-sphinx-search-one-model-with-two-indices-with-static-attributes/
3 pleasantly surprising PostgreSQL Indexing tricks
Greg Navis offers some low-hanging fruit Postgres indexing tips to get the most out of your ActiveRecord queries.
[Screencast] Production Deployment on Ubuntu
A guide to configure your Ubuntu installation and deploy a Ruby on Rails application. Lock down the settings to prevent unwanted access. https://www.driftingruby.com/episodes/production-deployment-on-ubuntu