Reputation: 1061
I'm working on a gem that houses common CSS styles. It used to have fonts embedded and added them to the asset pipeline, but I'm trying to switch to Google Fonts.
What I want to do is add a <link href='http://fonts.googleapis.com/…' rel='stylesheet' type='text/css'>
tag to the <head>
automatically, i.e. adding the gem would add this extra stylesheet. Is that possible, or would users of the gem have to manually add this?
Upvotes: 1
Views: 80
Reputation: 2489
You need to create some helper function and place it in your application layout. It can't be added automatically.
Upvotes: 1