Skip to content

Instantly share code, notes, and snippets.

Avatar

Thomas Carter thomascarterx

View GitHub Profile
View gemspec
This is the gemspec provided by the enginex gem when I used it to create the 'api' engine
# Provide a simple gemspec so you can easily use your enginex
# project in your rails apps through git.
Gem::Specification.new do |s|
s.name = "api"
s.summary = "Insert Api summary."
s.description = "Insert Api description."
s.files = Dir["{app,lib,config}/**/*"] + ["MIT-LICENSE", "Rakefile", "Gemfile", "README.rdoc"]
s.version = "0.0.1"
View gist:07d613fea46d0d855f1c
This is what I need to be rendered
<li>
<a href="#"><i class="fa fa-magic"></i> Link</a>
</li>
I'm using the <a href="https://github.com/bokmann/font-awesome-rails">font-awesome-rails</a> gem
Here is the helper section from the README, note there isn't a mention of how to use it with a link_to which is what I need.
fa_icon "camera-retro"