RubyFlow : The Ruby Community Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  

RubyFlow is being redeveloped and redeployed this weekend, so.. you might want to pause on posting ;-)

December 29, 2014
RailsCarma specializes in Offshore Ruby on Rails Development and is located at Bangalore, India. RailsCarma offers specialized web development services using the Ruby on Rails platform. RailsCarma has high level of expertise and experience in developing ruby on rails or ror applications on PaaS platforms, both in standalone and Software as a Service formats. Read More...
December 28, 2014
I have recently published the 1.0 release of the code-heavy Fearless Refactoring: Rails Controllers book. It took me over 1 year since I started. Over the time, I've experimented with many tools which helped me along the way.

This blog post is a summary of the tools:

How to write a Ruby-related book - the tools
I just released version 4 of Ruby's favourite command line parser. Slop has been rebuilt from the ground up. Check out the README on GitHub for more information and some upgrade notes.
December 27, 2014
New version of activerecord-hierarchical_query supports Rails 4.2
Tired of "You should install `padrino-helpers' gem if you want
to use kaminari's pagination helpers with Sinatra." warning message in your zero-views Sinatra apps when using Kaminari? Get rid of it. Here's an easy way to do this.
December 26, 2014
New post in my guide to create a social network in Rails. This time, the Activity Feed. Hope you like it!
I've setup (another) Planet Ruby - a public news site (feed reader/aggregator) for Ruby. The planet subscriptions (feed lists) are split into seven sections (sub planets), that is, 1) Blog Postings, Articles, etc. 2) Official Ruby, JRuby, Rubinius, Rubygems, Rails News 3) Events, Workshops, Conferences, etc. 4) Jekyll 5) Rubygems 6) Podcasts 7) Meta - Updates about Planet Ruby and Planet Pluto ;-)
The planet feed list is a plain text file on GitHub, that is, ruby.ini. You're welcome to add new feeds or suggest new (sub) planet sites. The Planet Ruby ships with six design templates/styles, that is, Standard, Cards, News, Hacker, Digest and Top. Happy Planet. Cheers
Spree is a complete open source e-commerce solution built with Ruby on Rails. It was originally developed by Sean Schofield and is now maintained by a dedicated core team. You can find out more by visiting the Spree e-commerce project page. Read more...
December 25, 2014
A Christmas tree in 140 chars of Ruby. Here is the tweet
tty-progressbar improves usability by offering current= and ratio= methods for setting progress to given value or percentage. Enjoy!
How to handle security vulnerabilities in your open source project.
December 24, 2014
I've setup Planet Jekyll - a public news site (feed reader/aggregator) for Jekyll - the static site generator in Ruby (that also powers GitHub Pages). The planet feed list is a plain text file on GitHub, that is, jekyll.ini. You're welcome to add new feeds or suggest new sub planet sites (moons?). Planet Jekyll itself is powered by the pluto gem. Happy Planet. Happy Festivus. Merry Christmas. Seasons Greetings. Cheers
Set Up Rails Development Environment

A Couple of months back I had a situation, which concerned about installing Ruby on Rails and rails on my system. After reading through many blogs and posts related with installation Read more...
Updating to Rails 4.2
I've written an article on Updating to Rails 4.2 which shows to install and manage multiple versions of Rails using RVM.
December 23, 2014
Everybody loves blog, I mean implementing a blog when trying out a new framework. If you have not watched the Rails in 15min, then you should google it.

Today Lotus 0.2.0 is released so I reinvent the wheel one more time. Introducing microblog, one of the very first blog implementation in Lotus. It's very simple and stupid but I really enjoy many aspects that Lotus Framework introduce such as modularity with container architecture in which the admin app could be isolated from the frontend, and the isolation of biz logic from the DB persistence of lotus/model.

I hope my stupid blog app might come useful to whom who are poking into Lotus right now.
Comes the release 0.2.0 of Lotus Framework comes the questions on how to add authentication to Lotus app. For whom who are seeking something similar to `http_basic_authenticate_with` of Rails, I wrote a short tutorial on how to do so with Lotus.
The Rails community is full of conflicting advice. Do you use Minitest or RSpec? Do your plain Ruby objects go in app/models, app/classes, or lib/? If more experienced devs constantly argue about these things, what hope do you have of deciding which advice to follow?
Lotus v0.2.0 is out!
This has been a great year for Lotus.
It went from a tiny side project to one of the most appreciated and promising web frameworks for Ruby.

Today v0.2.0 is out. A release with a lot of new features, code generators.

[Read the 2014 Retrospective + The Announcement]
I recently wrote about how to ensure that your objects have the right responsibilities and enforce a Tell, Don't Ask approach.
Read about how to migrate existing session cookies to Rails 4.1 and above safely .
We provide end to end Ruby on Rails consulting to companies around the globe. We support our clients with tools and techniques and innovative approaches to solve mission critical business problems. Our mission is to revolutionize the process involved in solving the strategic or routine IT problems that effect business growth.

Our Ruby on Rails consulting process is stream lined according to our customer needs. We provide all types of RoR consulting services such as - Read more...
December 22, 2014
At Ello, we were blindsided by the amount of traffic we were receiving. Right time, right place, I guess. One week, we're seeing a few thousand daily sessions. The following week, a few million. This insurgence of users meant the software we built was contorted in directions we never thought possible.

5 Early Lessons from Rapid, High Availability Scaling with Rails
Dynamic Heroku Unicorn Worker Count
Optimize the number of unicorn workers within each of your Heroku environments.

Dynamic Heroku Unicorn Worker Count
A bunch of open source, mostly Ruby on Rails apps, our team developed during a single day internal hackathon. Feel free to share & contribute! :Why Hackathons Are Always a Good Idea.
I just released v1.0.4 of search_cop to fix a another issue regarding Rails 4.2.

SearchCop extends your ActiveRecord models to support fulltext search engine like queries. Give it a try and/or update to the latest version. BTW Reports are of course always very welcome.
Ruby on Rails Development – How To Do it Agile?

The rapidly accelerating pace of technology change and a desire to achieve a competitive edge are forcing a growing number of organizations to re-evaluate the conventional approach of simply tossing resources at various enterprise projects and challenges.

Agile Development which puts software development on the front burner focusing on broader and deeper collaboration along with a more iterative approach has emerged as a key business and IT strategy. A growing number of organizations are adopting this methodology to address the need for more frequent release cycles and higher quality software.

Source: RailsCarma
ror_ecommerce had its first security announcement. Once this announcement became public, I have become very concerned about how to make these announcements and think the community needs to find a better way.
Check out my post/a> about how to fix Error: 10 $digest() iterations reached. Aborting! in your Angular applications.
December 21, 2014
The newest tty-progressbar offers automatic resizing, optimisation of formatting tokens, easier configuration and ability to clear progress once finished. Please give it a whirl!
Hello, the jekyll-planet gem lets you generate Jekyll posts for your static site using the Planet Pluto machinery. Add articles or blog posts syndicated via web feed to your site in three steps:
Step 1: Use a Planet Pluto configuration e.g. planet.ini to build your local planet.db SQLite feed cache.
Step 2: Generate planet posts for Jekyll (from the planet.db cache) using the jekyll-planet Ruby script.
Step 3: Use Jekyll as usual to build your site. That's it. Happy Planet. Cheers.
Here's all you need to add Twitter cards to your Rails site, using the metamagic gem.
Rubinjam any gem (w/o native ext) into a binary
curl > rake && chmod +x rake && ./rake --version
December 20, 2014
Hey! Just wanted to share this exciting Christmas giveaway of Lifetime access to Rails mentorship. 4 days left to join so hurry up :D
I just wrote a JSON aggregation library that I thought would be a fairly common use-case. A write up on that is available here
December 19, 2014
Testing logging in Ruby with StringIO
In this post we’ll learn how Ruby objects are mapped in JavaScript-land by the Opal compiler, how to call methods on them and how object instantiation works for both Ruby and JavaScript.
December 18, 2014
Learn how to Deploy Ruby on Rails To Your Own Server with this video tutorial series using Ubuntu, Postgres, Nginx, and Unicorn.
Repository Driven Infrastructure helps managing your infrastructure from your repository. Developers describe their intent to deploy, the system picks it up and follows through on it.

Repository Driven Infrastructure
One of Rails' most visible historical protections against malicious data corruption involved using the attr_accessible method within a model to identify which model attributes could be passed into methods like new and update_attributes for mass assignment. This changed with Rails 4, thanks to a new approach for managing mass assignment behavior. Known as strong parameters, the task of defining which parameters are available for mass assignment has been moved out of the model and into the controllers, allowing developers to define mass assignment behavior according to action. In this tutorial, I'll introduce you to strong parameters, and include several usage examples.
I just released v1.0.3 of search_cop which brings support for Rails 4.2.
Happy searching.
December 17, 2014
Small guide about adding elegant permalinks to your Rails app using the friendly_id gem.
Just blogged about the difference between server side HTML rendering and the use of an API.
Have you ever used Hashie? You may (not) be surprised that it's a horrible idea. But you may interested to learn hashie is responsible for a 5% decrease in all app speed if you're using omniauth. To learn more about why having an object that inherits from hash and acts like an object, read hashie considered harmful
I wrote a new post titled A Ruby Refactor: Exploring Dependency Injection Options. Hope you enjoy!
December 16, 2014
Here I listed my experience with DataMapper 2 which wasn't released and ROM (inheritor of DataMapper 2). We already started using it and I guess our experience may be interesting for other developers as well.
One of the big gotchas of Ruby metaprogramming is the need to keep method_missing and respond_to_missing? in sync. I've just published the hook_lying_syncer gem (code on Github) to help with this. See the README on Github for details.
Where Does Your Code Go?
After you finish the Rails tutorials and start your own app, things get confusing. Like where does your non-CRUD, general logic go? How does grabbing followers from Twitter fit into MVC? Ask two people, and you get four answers. So where do you put your code, and still keep things simple?
I recently wrote a post where I show some code displaying the contrast between using value objects and setter methods.
After the continued success of three editions of Baruco and one of FutureJS, we are already working on a new twist for 2015, and we are proud to announce it today: Full Stack Fest.
I just decided to write a blog post about Service Objects, which is a pretty controversial topic these days. Hope there will be a lot of comments and stormy discussion :)