RubyFlow : The Ruby Community Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  
 
September 21, 2014
You probably know how to add authentication to a Rails app with a framework like Devise or OmniAuth, but don't let your understanding stops there. In our recent blog post, we talked about several ways to add authentication in a Rails app, and talk about their benefits and drawbacks. 

Rails Authentication Methods
September 20, 2014
How can you plug complex, multi-model SQL queries into ActiveRecord models so that you can use them in your views? ActiveRecord Eager Loading with Query Objects and Decorators.
September 19, 2014
Use fancy Postgres features like Common Table Expressions to calculate a duration in business hours in any time zone. Blogged here.
Store Schema v0.0.1  meskyanichi.github.io
I've just released Store Schema. Enhances ActiveRecord::Base.store_accessor with data conversion capabilities.
Parelation v0.0.1  meskyanichi.github.io
I've just released Parelation. It translates HTTP parameters to ActiveRecord queries.
I just wrote about splitting up the large Rails applications.
I just published a blog post about my take on splitting up Rails applications.
When was the build passing?  sanemat.github.io
Sanemat had a short talk "When was the build passing?" at Travis CI Meetup in Tokyo, Sep 17, 2014. The build passing a year ago still keep build passing now? It is not assured! I talked this and showed one solution Tachikoma.io.
Execution time is key to developing and deploying an app with ease. Here's a couple of basic hints to speed up your Rspec tests.
Execution time is key to developing and deploying an app with ease. Here's a couple of basic hints to speed up your Rspec tests.
The big announcement of RubyMotion's support for Android has finally reached public beta! Instead of creating my normal polished screencasts, I decided to got RAWRRRR!!! This is me playing around trying to get RubyMotion for Android set up, and at the end you can see me fighting with the Android emulator, showing exactly why I use a device for development, because it's faster and more stable. It's a bit longer than I would have liked, but if you're wondering about all the stuff you're doing with setting up, this is going to be the goto place to work that out. Eventually I'll update this as things change over time.

https://motioninmotion.tv/screencasts/45
September 18, 2014
Godfrey Chan has written up a nice blog post of Day 1 at Ruby Kaigi. Have a read on what they've been talking about in Japan.
Ye Old Code Finder  thomasleecopeland.com
Seek you to find olde code written by devs in the distant past? Seek ye no more, but instead employ ye Olde Code Finder.
Last nights slides from the linz.rb talk titled Building HTTP JSON APIs w/ Ruby (and Sinatra). Use left/right cursor keys (or space bar) to browse the slides. Or check the all-in-one-page markdown source. Cheers.
September 17, 2014
Certain tasks like updating dependencies or migrating a database must be done after pulling code or checking out a branch. Other tasks such as re-indexing our ctags improve our development experience. Both kinds of tasks are easy to forget to do and are therefore error-prone. To address the problem, we’ve recently added a standard, extensible set of git hooks to our dotfiles in order to automate necessary, but annoying tasks.

Never forget again!
I wrote a post on how to integrate Angular and Rails and how this mix can even improve code readability
Rake Tasks Best Practices  edelpero.svbtle.com
One of the guys at the office asked me. What things should I keep in mind when writing a rake task and how do I know if my rake task is well written. I decided to make a list of what I think are good practices and here it's the result.

Everything You Always Wanted to Know About Writing Good Rake Tasks * But Were Afraid to Ask
Download Sinatra Cookbook now  sinatracookbook.com
Today I am announcing the first 8 chapters of Sinatra Cookbook, and to celebrate here's 15% off for you all.

https://www.softcover.io/buy/27309ccd/sinatra_cookbook?code=rubyflow
From designing application architecture to helping in understanding complicated code, site maps can be a great tool for developers. Take a look at 7 ways to use mindmapping as a developer.
Daemonizing Ruby Processes  codeincomplete.com
I published a short article on how to Daemonize your Ruby process without using any 3rd party dependencies.
What’s different (the good and the not-so-good) in SPA’s and why as a web developer, you should care about it. How Developing SPA Influenced Me & My Code.
September 16, 2014
How many font variants is your site using? Do you need all of them, and could you rely on the browser to generate some on your behalf? A look under the hood of how font selection and synthesis works in the browser.
Neo4j and Rails  vumanhcuongit.github.io
I just launched Neo4j and Rails to help guys who are getting trouble with them.
I write two parts:
* Setup and Deploy to Heroku
* Declare Relationship and Write some Queries on Graph Database.
I'm excited to announce Security Watch—a security leaderboard of open source Ruby projects on GitHub.

Security Watch lets you quickly look at the most popular open source projects on GitHub to see if any of them have potential CVE or code vulnerabilities. The goal of the project is to raise security awareness in the Ruby world.
Say you have an Article model, and it could be either a draft or a published article. The published article needs more validation than the draft. What’s the best way to write this? Rails has a lightly documented, little-known feature that makes these problems really easy to handle.
From Rails 3.2 to 4.2  technology.customink.com
Lessons learned from upgrading a small service application from Rails 3.2 to 4.2.
With much excitement, we are happy to announce the new Ninefold dashboard. We’re certain you’ll be delighted.

It’s as simple as it gets. From the point of signing up to deploying your first app we’ve made it painless. Making things simple is not usually easy for engineers, so here’s how it came together. Continue reading.

https://intercityup.com/blog/how-i-build-a-docker-image-for-my-rails-app/
September 15, 2014
One of the most common and most cumbersome errors you can make: using length instead of count. You can repeat this multiple times, but you will always find someone who’ll use it the way it shouldn’t be used. Here as a reminder: ActiveRecord count vs length vs size and what will happen if you use it the way you shouldn’t
I’ve added the Upmin admin framework to Rails Composer as an option. The upmin-admin engine provides an admin dashboard similar to Active Admin or RailsAdmin, so you can search, view, or update records without writing any code.
Thanks to Eckhard Licher for assembling an open and modular easy-to-(re)use Open World Factbook offering many alternative formats to the one-and-only official CIA World Factbook version in semi-structured HTML pages.

You can get all 267 "raw" country 'n' territories profiles in JSON (/geos.json) - generated with the factbook RubyGem - or all flags (/flags.png) or all overview (/maps.png) or locator (/locator.png) maps. Or browse the Markdown (thanks to GitHub rendered to HTML) country profiles (/geos.md) - see Austria or Australia as examples - or (re)use the plain text (/geos.txt) or TeX (/geos.tex) versions. All data is public domain (no copyright, no rights reserved). Cheers.
Jiragit 0.5.0 smooths the integration of JIRA and Git.

Jiragit automates the insertion of JIRA numbers and hyperlinks into Git commits, and provides a tool useful for accessing JIRA and Github while working on the command line.
September 14, 2014
Green Ruby News #84  greenruby.org
One more collection of weekly fresh links in Green Ruby News 84.
I've updated equatable gem with fixed type and subtype reference equality as well as improved project documentation with more guidelines and examples. Please give it a go and let me know your thoughts!
September 13, 2014
I just launched a new Feature Flipping gem called Helioth!
This is not the first gem on this topic but I took a new approach and would love your feedbacks..
My instructions on how to configure Macbook Pro on Mavericks to work with ruby and rails with the help of automated scripts (ruby, bash).
I just updated ov gem, now possible use earliest defined methods with types
September 12, 2014
I recently released the latest major version of queue_classic which includes work from different people. Highlights on what's new are in a blog post I wrote.
Teatro is now more friendly for open source maintainers since it does not asks for repo access anymore for public repos. More info here http://blog.teatro.io/how-to-setup-free-stage-for-your-open-source-project/

Some large open source projects already use Teatro including GitLab, Spree, Errbit, OpenProject and other.
September 11, 2014
Heard of Chef but never tried it? We wrote a step by step tutorial on how to the steps to set up a deployment process with Chef for your Rails project. Check it out!

Chef Basics for Rails Developers
September 10, 2014
If you don’t have multiple cores and/or you have a small VPN, you may end up with a huge slow down of your web app, when rake tasks are executed. This can be a big issue especially when you use something like whenever to perform periodic tasks. Luckily there’s a nice. You can read more about how to use it here: Ruby & Rails: Making sure rake task won’t slow the site down
Integration tests involving Ruby and JavaScript are fraught with danger. Developers frequently complain of tests which fail erratically. It is possible to write reliable, asynchronous integration tests with Capybara by understanding how Capybara, Ruby, background processes, threads, processes and Capybara drivers such as Selenium, Capybara Webkit, and Poltergeist work, and by following some easy-to-remember guidelines.
The fantastic Devise authentication gem asks registering users for just two items: an e-mail address and password. Chances are you'll want to subsequently gather additional details, such as the user's name or location, typically done through an account profile management form. In this post I show you how this is accomplished.
Floating Point and currency  blog.plataformatec.com.br
Why using floating point may be a bad idea when it comes to currency handling and what are the alternatives.
Are you planning to finally bump your app to the Rails 4.1? Then check out my blog post about that. Now with tips about rails 4.1.5!
If you want to master Ruby, you should know strings very well. Follow @RubyStrings to learn about all the details!
September 09, 2014
Introducing RackRabbit - a server that allows you to write your RabbitMQ consumer processes using any Rack compliant framework and load balance multiple instances using a Unicorn-style forking server.
How to set up Continuous Deployment of DNS Records with the help of DNSimple and tools you already use and are familiar with.

This workflow makes changes to your DNS zone transparent and comprehensible for everybody in your team.

DNSdeploy - Continuous Deployment of DNS Records
I've put up a post with the process of applying HTML styles to mailers in Ruby on Rails using HTML Email Boilerplate and Roadie. Check it out at CookiesHQ blog.
After being asked about how to use Fixtures in CarrierWave (the Rails file uploader), I wrote an article about how I'd do it.