Posts in English
I’m pleased to say that we released SimpleForm 1.4. Like the last version, this release had a lot of contributions from the community, closing bugs and adding some nice features. Here is a brief introduction to some of the new features: Custom Form Builders Now you can set a custom form builder that inherits from SimpleForm::FormBuilder: … »
Tags: form, gems, html 5, open source, rails 3, simple_form, Posted in English, 2 Comments »
*This blog post tells about how we improved a VCS workflow to another one that suited our and the consumer needs. It was a great result: we minimized the chances of occurring one of the worst problems for a developer in a project: big integration while we maintained an ‘almost releasable branch’ all the time … »
Tags: git, project, workflow, Posted in English, 9 Comments »
It is common in Rails 3.0 applications that you want to provide default views for a group of controllers. Let’s say you have a bunch of controllers inside the Admin namespace and you would like each action to fallback to a default template. So if you are rendering the index action for Admin::PostsController and “app/views/admin/posts/index.html.*” … »
Tags: crafting rails applications, rails 3, rails 3.1, resolvers, template inheritance, Posted in English, 3 Comments »
There are only two hard things in Computer Science: cache invalidation and naming things. — Phil Karlton What is cognitive load? When I had Human-Computer Interaction classes in college, I got acquainted with the concepts of Cognition and Cognitive Load. My teacher showed us a very simple example to explain what are those concepts, compare … »
Tags: clean code, Posted in English, 4 Comments »
A while ago we were working on an application that had an entire version specially created for mobiles, such as the iPhone. This specific application was entirely tested with Capybara, Steak and Selenium Webdriver. Although the test suite wasn’t the fastest one in the world, the web application was very well tested, and to guarantee … »
Tags: acceptance tests, capybara, rails, selenium, tests, user agent, Posted in English, Comments Off on Configuring User Agents with Capybara + Selenium Webdriver
Erik DeBill has put two interesting benchmarks on his blog. The first one compares the performance of different Ruby implementations in Rails development mode while the second compares their performance in Rails boot time. If you haven’t read them yet, please do it now. Benchmarking code is an important practice, but it can be misleading … »
Tags: benchmark, rails, Posted in English, 7 Comments »