weppos / breadcrumbs_on_rails

A simple Ruby on Rails plugin for creating and managing a breadcrumb navigation.
https://simonecarletti.com/code/breadcrumbs-on-rails
MIT License
942 stars 187 forks source link

Can you add css class to this? #120

Closed spacerobotTR closed 6 years ago

spacerobotTR commented 6 years ago

I haven't been able to get it to work so far. Is there a certain way you need to do it?

weppos commented 6 years ago

https://github.com/weppos/breadcrumbs_on_rails/blob/d389feac27b507e857462127118da46447be8136/lib/breadcrumbs_on_rails/action_controller.rb#L27

options accepts any option you would pass to a link_to helper. For more sophisticated styles you need a custom renderer.

spacerobotTR commented 6 years ago

Ok thanks. I see what is going on now. The class I am using is specifying content: "\e649"; for a separator in the CSS. It still doesn't seem to be working though. Do you know if there is another way to use an icon for a separator?