Marcadores

Code formatting matters

22/Ene/2013

While discussing ideas about code formatting I've seen it usually falls into the everyone does whatever works for them category, meaning it seems like everyone has their own rules.Let's see why it is important to look into code formatting and a few points to take into account.

efigarolam

Streaming data with Rails 3.1

22/Ene/2013

One of the new features that shipped with Rails 3.1 was streaming support. Now, all you need is a streaming cappable server like unicorn or thin and add this line in your controller action:

efigarolam

Draw arrows and pretty tooltip boxes with pure CSS

22/Ene/2013

Recently, I've been working on a project with a lot of visual CSS effects, sometimes writing really complicated CSS code just for "special" effects.One of the greatest challenges has been adding arrows to elements. In this tutorial, I'll show you how to draw arrows and add them to your elements.

efigarolam

What to do if your Rails app grows big

22/Ene/2013

Life is all about learning new things all the time, but why would we like to learn something if we can't share it.That's exactly what Jack Danger Canty (@jackdanger ) did at GoGaRuCo 2012; share knowledge and experience. Well, all of the speakers did that, but, this is one of the talks I enjoyed the most, why?

efigarolam

Crowdfunding your project with Rails

22/Ene/2013

I was reading the Lockitron story, and I found it amusing.When Kickstarter came out, I thought it was a great idea and a great way to give DIY inventors a shot in the market.

efigarolam

Rabl with Padrino

22/Ene/2013

Have you ever wanted to create an API without much hassle? And with that in mind, do you think that using Rails for it is an overkill?Well, I'm going to show you a quick and easy way to create a simple API using Padrino + Rabl.Padrino is a Ruby web framework built on top of Sinatra that makes it Rails-like, while Rabl (Ruby API Builder Language) is a Ruby templating engine that can generate JSON, XML and other formats with a simple DSL.

efigarolam

Using Warden to login/logout within your cucumber tests

22/Ene/2013

Recently we had to implement some tests to see if the user session had expired, and to do that we used Capybara to open a new window, follow the logout link, close that window and then go back to the first window, which was already logged in.... kind of messy right?

efigarolam

3 killer features that are coming in Ruby 2.0

22/Ene/2013

Ruby 2.0 will be released on 2/24/2013, exactly 20 years after development on it began.Akira Matsuda during his excellent talk at Rubyconf, brought to my attention 3 very interesting features that will make it more elegant than it already is, specially for Ruby on Rails applications.

efigarolam

Receive payments with Stripe

22/Ene/2013

There are some applications to help you receive payments online. Some of them are really complex and complete in functionalities, others are simpler and easier to use. In this post, I'll show you the implementation provided by Stripe, one of easiest ways to do this.

efigarolam