elstgav
elstgav

Reputation: 1061

Add stylesheet link from a gem

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

Answers (1)

Ahmad Hussain
Ahmad Hussain

Reputation: 2489

You need to create some helper function and place it in your application layout. It can't be added automatically.

Upvotes: 1

Related Questions