Created
October 27, 2015 16:45
-
-
Save mikecmpbll/5b6a8b72533e5a378912 to your computer and use it in GitHub Desktop.
trying to embed erb inside yml locale file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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