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.
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:
On one occasion, I had a problem with a couple of ActiveRecord scopes. The problem showed up when creating the database (rake db:create) and running migrations (rake db:migrate).
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.
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?
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.
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.
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?
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.
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.