before do post :create, params: { produto: product.attributes.except(:id).merge( product_image:“spec/fixtures/logo.png”)) ) } end

If you are using rvm you may have encountered some performance issue with ruby. For some detailed information of the […]

I was usually using has_scope gem for exposing model scopes to application’s controllers. While it’s pretty convenient for building simple […]

Writing HTML code inside decorator/helper is sucks, right?. For example: class UserDecorator < ApplicationDecorator def foo f = h.content_tag :ul, […]

In Ruby, and other languages, we often do this def perform perform_action end def perform_action if should_perfom_action? action.perform end end […]

Today I found following error while bootstrapping a new chef client machine: ERROR: While executing gem … (RuntimeError) […]

I’ve recently been using as an alternative to rbenv-gemset. It works great to create gem isolation for legacy projects, […]

It is possible to launch a web server from command line in current directory not only with python one-liner, but […]