RubyFlow : The Ruby Community Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  
 
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.
Rails 4.1 was just released this week and I already had a great experience trying out the release candidates on my latest project, so I decided to write a bit about my favorites features on this release and some things I have learned by using them so far.

Check out the full blog post about our favorite Rails 4.1 features.
Learn Ruby on Rails book review  masteruby.github.io
I wrote review of Daniel Kehoe book Learn Ruby on Rails
Check out a draft of Ruby domain objects persistence in Elasticsearch via the repository pattern. Live application available at http://bit.ly/persistence-sinatra (source at Github).
Rails 4.1 was released today and Rails Composer is up to date with 5 Starter Apps for Rails 4.1.
Ninefold just wanted to let everyone know that for our Rails deployment platform, you are not impacted by CVE-2014-0160 aka Heartbleed.

For more information please visit: https://ninefold.com/news/heartbleed/
April 08, 2014
If you need something done in Ruby, a gem for it probably exists. Well, a dozen gems for it probably exist. Some of them are elegant, featureful, and well-maintained, and others were written to solve one use case the author ran into that one time. You have lots of gems to choose from, so how do you choose the right one? This choice is important — by the time you regret adding a gem to your project, it’s painful to change back.
When working with Ruby and Rails, a common source of confusion involves mixing up nil?, blank?, and empty?. All three methods clearly deal with determining whether a data structure is assigned a value, but there are different degrees of nothingness, and in the world of programming those degrees are important. This blog post helps to dispel the confusion by working through a number of different examples.
I wrote guide about how to install ruby and ruby on rails
April 07, 2014
Composable Operations is a tool set for creating operations and assembling multiple of these operations in operation pipelines. They are especially useful in large-scale Rails applications to model complex business transactions. In other words, they can be used to implement a service layer.
Sometimes you want to use a gem that doesn’t belong in your Gemfile.

There are great debugging gems out there: Pry, Rack MiniProfiler and the IRB utility belt are all great debugging gems -- and you don’t want them all the time!

Bundler acts like a bouncer — “you’re not on the list, buddy!” — even if it’s installed on your system.

What can you do?
Here is a introduction to JSON schemas and why to use them.
I just released rpbundle, an extension to ruby-processing which allows you to use rubygems in ruby-processing sketches and manage gem dependencies of your sketches using bundler.
Suppose you're using Nokogiri to parse some HTML or XML, and an element you need is missing. What should happen? If you said "An exception", try my tiny new gem, nokogiri_bang_finders. It simply adds lookup methods to Nokogiri that raise if nothing is found: at!, at_xpath!, and at_css!
During a hack day at Contentful two weeks ago, Andreas Tiefenthaler (Software Developer) wrote a simple Sinatra blog app, using the Contentful Ruby Gem, and deployed it on anynines. We asked him to share his experience by means of a guest post.