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.
Active Job and Data Consistency
I wrote about Active Job (Rails 4.2 feature) and data consistency: The adapters have different transaction semantics. I think it’s important to know about these differences.
Ruby Gem of the Week Series @ Planet Ruby - Week #4 kramdown, Week #5 feedparser
I’ve published new gems in the Ruby Gem of the Week series that presents a new Ruby library every week on Thursday on Planet Ruby. The new gems presented include: Week #4 - kramdown gem - turn easy-to-read and easy-to-write; wiki-style plain text in markdown into hypertext Week #5 - feedparser gem - web feed parser and normalizers (for RSS 2.0, Atom, n friends). Happy Planet. Cheers. PS: Have your say! Guest posts or ideas and suggestions about gems more than welcome.
Ruby serialization formats comparision
Wrote some simple comparision of serialization formats we can use in ruby to serialize our objects. It can be found right here.
Accessory gems, part I: Private Gemfiles
Free your app by giving auxiliary tools their own Gemfiles.
I Love Ruby
A free to use book on Ruby programming language. Download it here
Pragmatic Segmenter - A Ruby gem for sentence boundary detection
Pragmatic Segmenter is a rule-based sentence boundary detection gem that works out-of-the-box across many languages. See how Pragmatic Segmenter’s accuracy compares to other popular sentence segmentation tools.
Decrease response time of Devise user sign ups
Password stretching can get in the way of providing a quick and often critical response to our users. Decrease that response time by moving password stretching into the background with devise-async-stretch.
Using pry-remote to debug within Vagrant VM
Protip for how to debug Rails applications that are running within your Vagrant virtual machine: http://codecrate.com/2015/01/pry-remote-with-vagrant.html
Why using Interactor Gem is a Very Bad Idea
Top 4 reasons why using Interactor gem causes damage to your design:
Destroy All Software Screencast Reviews
Why doing TDD does not mean you will end up with a good design:
James Golick's 'rollout' and 'degrade' gems
3-part series on using feature flags with the late James Golick’s gems. It starts here.
Using 'or' in ActiveRecord
Using ‘or’ for building ActiveRecord queries just landed in Rails.
Nested Forms with Rails 4.2 Screencast
An up to date screencast for Rails 4.2 about how to create a nested form. The video is 13:37 min long. Bonus: A transcript with all code examples.
Writing a DSL in Ruby
A Domain Specific Language or DSL is a mini language focused in solving a particular type of problem. This post shows a way of writing a simple DSL using Ruby.
Refactoring mini series: HOW?
The Good (Practices), the Big (Ref) and the Ugly (Refactor). This episode of the refactoring mini series focuses on the question: HOW?
Sass, haml, and coffeescript with Jekyll
A short article about using preprocessors with jekyll using ruby scripts instead of plugins so the static page can be hosted on Github Pages.
Sorting an ActiveRecord relation by PostgreSQL hstore value with Arel
A short article about sorting relations by an hstore value on the database level, using Arel.
Rails Helper Methods
The 411 on Helper Methods and their usage.
NoteShred Ruby Gem Available
NoteShred is a service to send and receive encrypted, password protected notes that automatically shred after reading, and now it has it’s own Ruby gem [more inside]
Using Interactors to organise business logic
I was introduced to using Interactors to extract business logics out of the controller and organise it using Interactors according to tasks. I have grown fond of this pattern a lot as it explicitly shows what tasks are required to be executed when an action in a controller is requested. I have decided to write a post on what I have learnt about using Interactors