Skip to content

Instantly share code, notes, and snippets.

@mikecmpbll
Created October 27, 2015 16:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikecmpbll/5b6a8b72533e5a378912 to your computer and use it in GitHub Desktop.
Save mikecmpbll/5b6a8b72533e5a378912 to your computer and use it in GitHub Desktop.
trying to embed erb inside yml locale file
.form-actions
- if params[:action] == "new"
= button_tag type: "submit", class: "btn btn-success btn-cons",
id: "submit" do
= fa_icon "check"
%span  Create
= link_to courses_path, class: "btn btn-danger btn-cons" do
= fa_icon "close"
%span  Cancel
- elsif params[:action] == "edit"
= button_tag type: "submit", class: "btn btn-warning btn-cons",
id: "submit" do
= fa_icon "pencil"
%span  Edit
= link_to @course, class: "btn btn-danger btn-cons" do
= fa_icon "close"
%span  Cancel
en:
helpers:
submit:
create: hello <%= fa_icon "pencil" %>
update: hello <%= fa_icon "user" %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment