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.
Refactoring six-year old "one file" CSS - workflows, pain points, and results
@niedzielskiadam and I talk about the pain points in our old setup, our workflow for effecting the changes, and the results from a business point of view, down to hours taken and changes in revenue. [more inside]
Intoducing Shrine: A file upload toolkit for Ruby
I’ve just released Shrine, a new solution for file uploads in Ruby applications, I wrote a blog post explaining the motivation behind it.
[Lesson #2] 11 Simple Steps To Learn Ruby Faster
This 11-part email course will teach you how to use RSA techniques to learn Ruby and Rails faster than your friends. Lesson #2 show you how to choose a lovable project for practice.
Factory Girl Basics using Rails 3.2, Factory Girl 4.2 : Part 2
To learn how to create objects using FactoryGirl for has_many association, check out Factory Girl Basics using Rails 3.2, Factory Girl 4.2 : Part 2
Rails DB - 4 new features (don't forget to upgrade!!!)
Rails DB - https://github.com/igorkasyanchuk/rails_db New version of Rails DB gem is available 0.4. [more inside]
Run it in background job, after commit, from Service Object
There is this problem that when you schedule a background job from inside of a running database transaction, the background job can kick in before the transaction is commited. Then the job can’t find the data that it expects to already be there, in database. How do we solve this issue? Let’s schedule the job from Service Object after db commit. [more inside]
Factory Girl Basics
To learn how to create objects for has_one association, checkout Factory Girl Basics using Rails 3.2, Factory Girl 4.2
Self hosted Rails metrics app in less than 200 lines of code.
NewRelic is too expensive for your hobby Rails application and you still need to keep record of app’s performance for more than 24 hours? Try to create self-hosted metrics collector with Ruby, Sinatra, Grafana and InfluxDB in less than 200 lines of code.
Ruby 2.2.3 Symbol Basics : Part 2
Ruby 2.2.3 Symbol methods such as <=>, casecmp, empty?, intern, encoding, id2name, inspect, to_sym, length, slice, succ, swapcase and match is covered in this video
Chewy 0.8.2 is out
Hey guys! Here is a new version of the Chewy gem. Squeel adapter and ActiveJob strategy on the board.
Elasticsearch Part 8: Applying Filters
In this episode we show you how to apply filters in elasticsearch. We take the aggregates and build fitlers out of it. All done with beautiful URLs. Video
Inesita - Develop front-end application in Ruby!
Inesita is a simple, light, Ruby front-end framework.
I Love Ruby - A free ruby book updated
Hello People, [more inside]
Presenter from Scratch
Railscast ‘Presenter from scratch’ episode code updated to Rails 4.2.4 and Ruby 2.2.3. Here is the code
EuRuKo 2015 Review – conference in a nutshell
Review of EuRuKo 2015 conference from my point of view: EuRuKo 2015 Review – conference in a nutshell
Mapping Data with Representable - Part I
Recently I started a blog geared toward Ruby novices. My first series is a primer on using external APIs as datasources and mapping their data to ActiveRecord with the Representable gem. Part I covers some basic concepts and terminology.
Rails DB - more options, more flexibility
I’d made an important update to https://github.com/igorkasyanchuk/rails_db gem [more inside]
Who's an expert Rails developer?
There are lots of resources teaching how to become a Rails developer, build modular Rails apps, and optimize your apps, but very few go beyond that point. One solution is to learn what’s working in other industries and use the knowledge to solve problems for clients.
Sorcery 0.9.1 and Rails 4.2.4
I have updated the Railscast auth app to use Sorcery 0.9.1 and Rails 4.2.4. Here is the repo Sorcery 0.9.1 and Rails 4.2.4
Benchmarking Ruby Refinements
Are refinements slow? I wrote a few benchmarks to find out. The answer was a little surprising. http://blog.honeybadger.io/benchmarking-ruby-refinements/
Draper 2.1 and Rails 4.2.4
I have updated the Railscast profile project to use Draper 2.1 and Rails 4.2.4. Here is the repo : Draper 2.1 in Rails 4.2.4
A list of Ruby gems that have memory leaks
https://github.com/ASoftCo/leaky-gems Your Ruby app leaks memory if you see gems mentioned in the list in your Gemfile.lock. This list may save you a week or more of your personal life.
Containerize your Ruby on Rails/PostgreSQL application with RHSCL Docker images
In my latest blog post I look at how to containerize a Ruby on Rails application with one line of code using source-to-image program. I use supported Red Hat’s Docker images, but free CentOS-based ones can be used as well.
What do you think about `private def … end`?
Recently I was told that “too bad Ruby doesn’t support private def … end
because it forces us to put related methods far from each other.” [more inside]