Put double quote the around the erb tags? or better use the rails helpers, maybe button_tag
http://api.rubyonrails.org/classes/ActionView/Helpers/FormTagHelper.html#method-i-button_tag
<%= button_tag t(:add_category),
id: "admin-button",
data: {
add: t(:add_category),
save: t(:save)
}
%>
this renders a <button>
if you must have input type="button"
, maybe this would work
<%= content_tag :input,
t(:add_category),
type: "button",
id: "admin-button",
data: {
add: t(:add_category),
save: t(:save)
}
%>
http://api.rubyonrails.org/classes/ActionView/Helpers/TagHelper.html#method-i-content_tag
Also I recommend using all lower case with underscores - i.e. :add_category
vs :Add_Category
- it is more in the ruby style