html - Ruby on rails links, navigation -


i have problem ruby on rails link effects. current code is:

<header class="navbar navbarfixed navbar-default navstyle> <%= link_to "cocktails",root_path, class:"btn btn-lg", id: "logo" %> <nav class="cl-effect-5 container"> <a href="#"><span data-hover="new">new</span></a> <a href="#"><span data-hover="test">test</span></a> <a href="#"><span data-hover="test">test</span></a> </nav> </header> 

so need convert current html link style ruby, effect still there(cl-effect-5). tried using this solution, syntax error reason, though double checked everything...

one difference noted code , linked solution have hovers in <span> versus in <a> tag.

= link_to '#', data: { hover: 'test' }    'test'  

i think that's may looking (not span wrong per se). also, make sure application.css , application.js manifests including bootstrap (or whatever front end ui kit you're using)!


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -