app/views/entities/_title_bar.html.haml
- model_name = controller_name.singularize
- model_klass = model_name.camelcase.constantize
.title_tools
#buttons
= view_buttons
.create_asset
= link_to_inline("create_#{model_name}".to_sym, send("new_#{model_name}_path"), {text: t("create_#{model_name}".to_sym), class: 'btn-sm btn-primary'})
.title
%span{id: "create_#{model_name}_title"} #{t controller_name.to_sym}
= image_tag("loading.gif", size: :thumb, id: "loading", style: "display: none;")