foundation-icons-sass-rails icon indicating copy to clipboard operation
foundation-icons-sass-rails copied to clipboard

Broken in Rails 4

Open drdevnull opened this issue 9 years ago • 14 comments

Followed the instructions to the letter. Icons are not displayed - the assets are not in the pipeline.

drdevnull avatar Nov 27 '15 00:11 drdevnull

try change application.css to application.css.scss

victorsosa avatar Dec 16 '15 14:12 victorsosa

@victorsosa I'm having the same problem and renaming application.css did not help. Is there anything we need do do after running bundle? No install command and no lines of code need to be added?

calderJamNet avatar Feb 04 '16 16:02 calderJamNet

@drdevnull did you ever solve the issue?

calderJamNet avatar Feb 04 '16 16:02 calderJamNet

ok try to update the gem Ruby Sass to 3.4+; that issue was famous.

victorsosa avatar Feb 04 '16 16:02 victorsosa

@victorsosa do you mean sass-rails gem? thats at version 5.0.4

calderJamNet avatar Feb 04 '16 16:02 calderJamNet

or do you mean just the 'sass' gem? I don't have that in my gemfile because it wasn't listed in the documentation.

It is installed on my machine though. versions 3.4.21, 3.4.19

calderJamNet avatar Feb 04 '16 16:02 calderJamNet

@victorsosa I was able to get the icons to work (locally) by add @import 'foundation-icons'; to my application.css.scss file.

Is this something I should have done from the getgo? When reading the instructions you guys have posted it seemed to me that this was only necessary for those using a rails version < 4.

Thanks for your help.

calderJamNet avatar Feb 04 '16 16:02 calderJamNet

yep sass-rails gem

victorsosa avatar Feb 04 '16 17:02 victorsosa

OH I see, yep thats right. if you want to import any, you scss file need to use @import

victorsosa avatar Feb 04 '16 17:02 victorsosa

Ok cool! I went ahead and proposed a change to the readme that would make it a little easier to understand.

calderJamNet avatar Feb 04 '16 17:02 calderJamNet

I did everything perfectly and the icons doesnt appear.

rodrigorichter avatar Feb 17 '16 23:02 rodrigorichter

@rrrichter Are you using the right icon name?

victorsosa avatar Feb 19 '16 12:02 victorsosa

Turno out I mistyped the icon tag on the html file, sigh

rodrigorichter avatar Feb 19 '16 13:02 rodrigorichter

XD yea, it happened to me sometimes too.

victorsosa avatar Feb 19 '16 14:02 victorsosa