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.
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 Read more
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
Non-Message Flash in Rails
Rails developers love using the flash hash for displaying messages to users, but that’s not all it can do! Learn what other tricks Rails’ flash has up its sleeve.
Mastering Ruby Blocks in Less Than 5 Minutes
Blocks are one of the most powerful and often overlooked feature of ruby. I must confess that it took me a while to figure out how ruby blocks work and how they can be useful in practice. Read more
How to upgrade to Rails 4.2
Upgrading some Rails apps is as easy as bundle update rails. But what if you have one of the other kind of apps? The ones that are still on Rails 4.0, or even 3.2, because you didn’t feel like dragging them kicking and screaming into the future? Whether you’re facing a quick upgrade or a painful one, these steps will help you get your app to Rails 4.2 as smoothly as possible.
Get Rid of Your Admin Gem
On my RubyJunky blog I’ve written the first of what will be a series describing what troubles me about the current popular Rails admin gems and how to easily craft your own better admin interface.
The All New RubyFlow for 2015
RubyFlow began with this post from April 2008 as a way for people to submit links to me for Ruby Inside. It quickly became more than that, though, and has kept me informed for Ruby Weekly even while Ruby Inside has quietly died. Read more