<%- attributes.each do |attribute| -%> ", "<%= attribute.name %>") %> class="bs-col-<%= attribute.name %> <%%= align_attribute("<%= attribute.type %>") %>"> <%- if @beautiful_attributes.include?(attribute.name + ':price') -%> <%%= number_to_currency(<%= singular_table_name %>.<%= attribute.name %>, :locale => I18n.locale) %> <%- elsif @beautiful_attributes.include?(attribute.name + ':boolean') -%> <%%= t((<%= singular_table_name %>.<%= attribute.name %> ? "yes" : "no").to_sym) %> <%- elsif @beautiful_attributes.include?(attribute.name + ':references') -%> <%% if !<%= singular_table_name %>.<%= attribute.name %>_id.nil? %> <%%= link_to <%= singular_table_name %>.<%= attribute.name %>.caption, <%= namespace_for_route %><%= attribute.name %>_path(<%= singular_table_name %>.<%= attribute.name %>_id) %> <%% else %> <%%= t(:any, :default => "Any") %> <%% end %> <%- else -%> <%%= <%= singular_table_name %>.<%= attribute.name %> %> <%- end -%> <%- end -%>