sgruhier/foundation_rails_helper — pull request #46 by frenkel (2014-01-23 15:59:54+00:00)
Title: Fix problems with namespaced models and radio buttons

Current master with this code:

<%= form_for Admin::User.new do |f| %>
<%= f.radio_button active, 'true' %>
<%= f.radio_button active, 'false' %>
<% end %>

will produce:

True
False

This is caused by the object name being in a namespace (the Admin:: part). This problem is fixed by using the object name derived by Rails itself, which is exactly what this pull_request does.