RubyFlow : The Ruby Community Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  
 
July 29, 2014
We wrote a new tutorial on how to use Capistrano 3 to deploy Rails apps.

Deploy Rails Apps with Capistrano 3
I found this below article interesting as well as helpful.
Rendering data content via JavaScript template using Dust.js

Please provide your feedback on the same.
a9n is a new gem, which helps to keep ruby and rails app configurations easily maintainable, verifiable and clean. Created by Krzysztof Knapik (@knapo).
A handy list of the most popular open source Ruby on Rails projects (ranked by the amount of stars on Github) - Most Loved RoR Open Source Projects.
I just created a Medium Collection ABC of Ruby on Rails. I need your feedback and suggestions. Thanks!
July 28, 2014
Ruby Gems are essential for every Ruby on Rails programmer. They are a small pieces of already written and tested code which provide some functionality. For example, there are many gems which provides admin interface for your app. It means that you instal the gem, make some basic setup and you ... Continue reading
I wrote an article on some tips I picked up with working on legacy Rails apps. I hope you like it!
I just released a new screencast about using jQuery UJS and AJAX in your Rails apps.
Scalable code without bloat: DCI, Use Cases, and You
July 27, 2014
Using factories is nice to simplify your specs, but you should be careful with the mutable objects you could be reusing there.
github_api v0.12.0 just released!  peter-murach.github.io
I've released github_api gem after few months of rewriting internals. It has magical unicorn logo!

The most notable improvements are in parsing of method arguments to allow for flexibility when specifying required parameters. Many new api calls have been added to match current GitHub API. Some major bugs have been fixed connected with making requests. Please see changelog for specific changes.

I'm looking forward to your feedback as this library is heading towards 1.0.0 release.
The Law of Demeter  nithinbekal.com
I wrote a blog post explaining the Law of Demeter with a simple example in Ruby.
Hello, Using a Ruby build script (that is, Rakefile) I've built up a GitHub org, that is, football.csv - for open football data in the CSV (comma-separated values) format, that is, plain old text. Leagues include the English Premier League, Championship, Bundesliga, Eredivisie, Süper Lig, Primera División, Pro League etc. for 10+ seasons (e.g. 2013/14-1993/94). Cheers.
I wrote a blogpost on Timeout Internals for CRuby to help people understand when it works and when it doesnt.
We wrote a blog post on how to work with Ajax on Rails. If you are beginning to build Rails apps you may be surprised how easy it is to get this going.

The Detailed Guide on How Ajax Works with Ruby on Rails
July 25, 2014
I wrote a small tutorial about how to create and calculate trial periods in Ruby.
Rails tips: #with_options  cookieshq.co.uk
One of ActiveSupport's useful methods, #with_options allows you to DRY out hashes passed to a collection of similar method calls - ideal for complicated has_many declarations. Read more on the Cookies HQ blog
The new HTML sanitizer in Rails 4.2  blog.plataformatec.com.br
Learn how the Rails HTML sanitizer was revamped using Loofah and how t will look like in Rails 4.2.

Read the full blog post here.
This week/s I have been mostly struggling with an outage in our primary care giver, realizing that my family is not really highly available and has no real disaster recovery plan. Roll on Spring, I say after a hard month of Sickness as a Service. I also went to the Docker meetup in Melbourne, which was excellent. Docker. So hot right now. Read the rest of the Vibe
Version 0.99.6 of Mustache has just been pushed to Rubygems.

Thanks to the work of several contributors, this release contains bugfixes hitherto unreleased as well as 1.9.3+ compatibility. A more thorough list can be read in HISTORY.md.

Work will continue to release the next version, which will be numbered 1.0.0.
July 24, 2014
Ruby is a fantastic language. Even when you think, you know all about it, you discover new ways of making your code more elegant. We've prepared a list of such features:

Hidden features of Ruby you may not know about

Did you know all of them?
This article details how you can easily and automatically scale your website images to the resolution most appropriate to your viewers mobile devices or screen pixel density. Code samples included for Ruby on Rails and jQuery.
To widen the scale of your business and get the advanced Ruby on Rails web development solutions, CSSChopper is the best company. Our emerging RoR development solutions aid you to achieve your diverse challenging business goals successfully. For more details, visit: http://www.csschopper.com/ruby-on-rails-development.shtml
I put together a list of interesting applications built with Ruby on Rails.
A helpful post on Multi-tenancy in Rails by Allerin

Please provide your feedback if you find it helpful.
New blog post: Code Coverage Tools For Padrino.
July 23, 2014
We're thrilled to announce that we've partnered with Heroku for the 2014 Rails Rumble! Read all about this and our other announcements on our blog.
I just posted a technique for handling failure when doing things like importing third-party data or generating reports.
July 22, 2014
The Rails ecosystem moves fast, way too fast for print. If you're like me, you want to learn the most recent version of your frameworks and gems. But the best resources are often a few versions behind. Once you build experience with an older version of a gem, how do you get caught up?
A quick hint for all those that think that it comes by default with Errbit/Airbrake. Tracking Sidekiq workers exceptions with Errbit/Airbrake
When one Ruby method has to know the correct order of another method’s positional arguments, we end up with connascence of position. Ruby 2 Keyword Arguments help us reduce connascence, but there are some edge cases to be aware of.
I just launched Gorsse an experimental tool that allows you to use Server Sent Events in your Ruby web applications without any changes in your usual webserver. The tool relies on Go to handle many concurrent and persistent connections and communication is achieved through ZeroMQ.
July 21, 2014
Post looking into Ara Howard's excellent gem Main. Check it out here
I just released a new screencast on how to set up Button Loading Animations with jQuery UJS. Rails makes it super easy to add a spinner to your forms by just adding the disable_with data attribute. Hope you enjoy it!
Know Ruby: clone and dup  aaronlasseigne.com
A deep dive into the clone and dup methods in Ruby.
If you like to read about why in our company we belive that pundit is a way better solution for compliacted authorization features than cancan (or cancancan for rails > 4.0) i have a first part of my blogpost for you : some groovy thing
If you like to read about why in our company we belive that pundit is a way better solution for compliacted authorization features than cancan (or cancancan for rails > 4.0) i have a first part of my blogpost for you : some groovy thing
July 20, 2014
Pronto performs quick automated code reviews with the help of various analysis tools (RuboCop, Brakeman, Flay, etc.) by checking only the introduced changes. And now it also lints your HAML with the help of HAML-Lint. Check it out: Pronto and pronto-haml.
3 Ways to Create Classes in Ruby  techblog.thescore.com
Out of the box, there are 3 ways to create classes in Ruby. Find out how to use all 3 options, and learn when to use one option over another.
July 19, 2014
Just released a new gem cucumber_characteristics to fully profile your cucumber test runs with the goal of understanding exactly where your test time is going. This is not a formatter and should drop into your existing setup transparently.

For each step execution the following is reported
- Location of definition & regex
- Step usage location and number of times executed (background/outline etc)
- Counts for success/failure/pending/etc
- Total time taken in test run along with average, fastest, slowest times per step
For each feature the following is reported
- Location and time taken to run feature
- Result and number of steps run
- Breakdown of feature by individual example run if a Scenario Outline.
There is also added support to list out all unused steps in a cucumber test run to aid step curation. Be aware if you are only running a specific test set, for example via a TAG as you will get a larger number of unused steps than are ‘true’ unused steps.
July 18, 2014
MemFs is an in-memory filesystem for Ruby that can be used for your tests. This release brings some useful methods to Dir like the most wanted Dir.glob. Get it while it's hot ! https://github.com/simonc/memfs
You will see the structure of s-expressions for language features supported by Ruby interpreters and the InfraRuby compiler.
July 17, 2014
I wrote a blog post about reusing the same test code on different levels (app logic, Web UI, API)

http://wojtekmach.pl/blog/2014/07/17/integration-testing-on-different-levels
We've had a whole journey on how to do UI for Rails projects in Arkency. Starting from Rails views, then gradually switching to more JS (with JQuery), had a short adventure with Angular and now settled with React.

This post explains the basics of what are the good things about React
A pretty decent (I hope!) list of free online Ruby tutorials for beginners.
It's happening, we will soon have a new Ruby/Rails weekly screencast! I'm going to be launching in the next 1-3 months depending on how things go, but you can read the full story here: http://blog.motioninmotion.tv/railsinmotion-it-s-official
You can get a 1.5 GB combined Rails app server in the US region for absolutely free. How does the free tier work? 1. Sign-up to Ninefold 2. Deploy a Rails app 3. Enter your billing details within 30 days 4. We’ll waive the first $50 of your monthly invoice - forever. Visit ninefold.com for more information.
July 16, 2014
High-Low Testing  mikepackdev.com
I've just published High-Low Testing, a detailed look at my Rails testing philosophy. I address working at the poles of test abstractions in a Rails application in order to more easily manage dependencies. Doing so provides increased test speed and better OOP feedback systems, with minimal costs.
When I needed a blog system for my company blog, I had a hard time deciding if I should use Jekyll, another Rails blog engine or just build a simple blog functionality on my own. I implemented my own, see why and how I did it.

Continue Reading
Rob just wrote a very useful piece, specially if you're looking for an intro on PostGIS and geolocation.Read it on the CookiesHQ blog and let us know what you think.