RubyFlow : The Ruby Community Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  
 
April 18, 2014
I just published the article about usefull gems in development for Rails developers. Hope, you'll have fun reading it!
ActiveRecord extension to find out near by (proximal) records (previous and next) from the ActiveRelation scopes (tried to use AREL as much as possible).

The benefit of this gem, it can take any scope, and it does subquery for taking previous and next records. You don't need to add anything, just include module and use magic function that will do everything for you.

Currently supported adapters: mysql2 and postgresql.

Tested Ruby: 1.9.3, 2.0.0, 2.1.1
Tested ActiveRecord: 3.2, 4.0, 4.1

Current roadmap is to write more specs and add sqlite3 adapter.

Download proximal_records gem
Ubuntu 14.04 just launched and I released a new GoRails tutorial to cover installing Ruby 2.1.1 and Rails 4.0.4 on it.

Setup Rails on Ubuntu 14.04
We wrote a little something to help you getting started with QueueClassic. What is QueueClassic you might ask? It is a "simple, efficient worker queue for Ruby & PostgreSQL."

Read it over here.
Fragment caching with Rails  rubytutorial.io
I just published a post about caching with Rails: Rails caching.
Fixed some important issues.
cloudconvert
Fastly launches the fastly-rails plugin for easy dynamic edge-caching, an open beta EngineYard add-on, and updates on the CDN Sumo Heroku add-on. Full post here.
How to DRY Rails routes  ruby-journal.com
Some large Rails app have many resources in their config/routes.rb, some are repeated and could be DRY up. In following tutorial How to DRY Rails routes, the author walk you through how to achieve that with both Rails 3 and Rails 4.
April 17, 2014
Users of MetaSearch/Ransack, have you seen Searchlight? It's a low-magic search gem that's powerful and easy to understand. It helps you map form options to methods you write, and inside those methods, you can do whatever you need, from `where(name: name)` to complex SQL queries.

As of the 3.0 release, it's also totally ORM-neutral, so whether you're using ActiveRecord, Sequel, Mongoid, or something else, you can build searches with Searchlight. Check it out!
In this episode we’ll learn how to use the Pundit gem to lock down access to objects in an API. Using TDD to drive the development of Pundit policies and scopes we’ll understand the basics of using this authorization library.

http://www.metacasts.tv/casts/pundit

* Subscription required.
Now we can access models in the same way in every step definition, having confidence that it will never be nil More...
I wrote a guide about how to create calculator in Shoes
We wrote this blog post to explain reversible migrations with Active Record.
April 16, 2014
Invoicing is one step solution for all the invoicing needs of your application. Checkout release post for more information.
April 15, 2014
Is this a God Object?  cored.github.io
God Objects in Rails
At some point in your Rails career, you’ll run into a controller that’ll make you want to give up programming forever. As great as it would be to just close your eyes and pretend it doesn’t exist, someday you’ll have to fix a bug in one of these controllers. And, being a good software developer, you want to leave the code better than you found it. But how do you refactor it, especially if you don't have good tests to rely on?
A nice read (hopefully!)about several approaches to responsive CSS and how Sass helps with it by RoR dev.
When Rails 4.1 was released Lucas Mazza from plataformatec blogged about 3 favourite features in Rails 4.1. I liked the idea, but some of my favourite things are different. So, here are my favourite things about Rails 4.1
Invoker version 1.1.0 released  invoker.codemancers.com
We just released Invoker version - 1.1.0 now with support for:

* Ability to add any external process via .dev DNS
* Ability to tail one or more process.

Check Invoker Home Page for more information.
April 14, 2014
The keyword arguments falacy  blog.groupbuddies.com
Check out the pros and cons of keyword arguments in ruby: The keyword arguments falacy in GB's new blog post.
Bootstrap 3 support for Simple Form  blog.plataformatec.com.br
Simple Form is the most popular form builder gem in the Rails community. One of the things that our users love the the most is its integration with Bootstrap.

A lot of users were already asking for integration with Bootstrap 3. We heard their requests and gave Simple Form more love. We just released a RC version with support for Bootstrap 3!

Check out the details in our blog post.
Software packaging is a kind of a dark art for many people, due in most part to packaging manuals and policies that are hard to understand for the busy developer. Here is how to package a Ruby on Rails app, and host the resulting debian package on S3, all without the need to know about any of the debian packaging rules.
Ruby Best Practices  blog.rubybestpractices.com
I just was reading this post on Ruby Best Practices Ruby Best Practices that is written by Gregory Brown developer from Xaavo Don't miss this awesome article.
Ruby - the good parts  amberbit.com
Kamil Bielawski from our team at AmberBit posted a blog post about what he think are good parts of Ruby language. Do not miss it!
Dates are an important part of a lot of applications, and how you display them for their context can make a difference to how quickly users parse the information on screen. In this episode I walk you through getting the MHPrettyDate cocoapod set up in the Tasker application, and show you how to use NSCalendar and NSDateComponents to work with dates properly.

https://motioninmotion.tv/screencasts/20
V is for Vibe  multifaceted.io
This week @tobyhede has mostly been thinking about the front-end and frankly, how everything is terrible (tm): http://multifaceted.io/2014/v-is-for-vibe/
April 13, 2014
I've released supervision that aids writing more resilient and self-healing distributed systems. Please check it out! Any feedback appreciated!
The finite_machine gets stable and stronger.
My solution to implement linkedin share-button with turbolinks enabled
Post briefly explaining the inner workings of the Colored Ruby Gem.
April 11, 2014
I just wrote a blog post about some of the handy customizations we've done when using ActiveAdmin. read it here.
We just launched the our biggest Ruby project so far, a tool that can identify the foreground/background of an image and return results. Let us know what you think
Ruby On Rails Blog  tarungarg402.blogspot.in
I just launched Ruby on rails blog for learning purposes. There i am updating problems which i have faced during coding and solution with the same. I think these solutions can also help you.
Strings are everywhere. They came from files, databases, REST APIs, or you simply use them to print results. But String comes with its own share of problems: how to deal with invalid byte sequence or convert back a String to a Date with an uncommon format. I share in a blog post 7 common use cases of String.
I have just published a new blog post about ActiveRecord enums, a new Rails 4.1 feature.
https://github.com/jesson/backup-rails.
April 10, 2014
Abracadabra, the gem that swaps out text with a fully-compliant Rails form in one click, has just had a major update. Icon classes are fully customizable, the object can be deleted through the deletable option, the tab_to_next option allows seamless editing down a page, etc!
Hiring Rubyists  hiringrubyists.com
I just launched hiring rubyists
If you're hiring rubyists then post you jobs at hiring rubyists for free.
We just published a new blog post announcing Baruco 2014: speakers announcement, call for papers is open and first ticket batch!.
Brief outline of how we automate hosting internal gems at Climate Corp

http://eng.climate.com/2014/04/10/self-hosted-gem-server-with-jenkins-and-s3/
We've just released a new version (0.4.0) of our Chewy gem. Elasticsearch infrastructure done right.
We've just launched an open source extension for Spree E-commerce allowing you to add a Q&A section to the product pages.
Liquid Template done right  ruby-journal.com
Some people asked me how to do liquid template in Ruby correctly. I helped them and wrote following article Liquid in Ruby done right showing how to refactor a bad liquid-template code. I hope this would be useful to some people out there. Keep on learning folks!
Hey all, be sure to checkout my latest post discussing the upcoming Omega demo at Notacon this weekend in Cleveland OH, updates to the ruby gem / application polisher, bundler_ext, and more!
Introducing Hound  robots.thoughtbot.com
We're pleased to announce Hound, a hosted service that comments on Ruby style guide violations in your GitHub pull requests.

Hound is currently free and available for public and private GitHub projects. We intend to charge in the near future to ensure Hound is sustainable, but public projects will continue to be free. Hound is also open source.
April 09, 2014
Have you ever felt the need to parse proxy.pac-files in ruby? Then have a look at proxy_pac_rb @ rubygems.org. We just released a new version. For more documentation and examples please have a look at proxy_pac_rb @ github.com.
Rails' history with front-end asset management is somewhat complex, involving a mixture of gems and manual file management. Fortunately, there's now a better way—Bower. …Continue Reading - by Dave Copeland
Hakiri now supports open source projects completely for free. You can test your Ruby code and gems against public vulnerabilities and static code analysis.
Another post on the O'Reilly Programming blog, on how Ruby makes it easy to create mocks and stubs for unit tests.
Sometimes when you run a spec in a Rails app, it fails silently but it isn’t clear why. Frequently, this type of spec failure is due to an input validation error. But the log won’t tell you that. That’s why I created the Whiny Validation gem. Whiny Validation watches for ActiveRecord validation errors on all models. Whenever one occurs, it logs the validation message and dumps the ActiveRecord object (with inspect) to the log. A quick look at the log tells you why the spec failed.