Button to an external link or styling a link tag to look like a button in Ruby on Rails -
i'm newbie ror, i'm looking create button takes users external url.
i've had trouble using link_to, because haven't been able style hyperlink button.
then, able button appear following code:
%a#about-join-our-team.button current open positions
but can't add url in format. (button text = "current open positions")
i'm sure i'm making silly ror mistake, can't find right answer in previous threads.
thanks help!
following should work(haml)
%a#about-join-our-team.button{href: your_url} current open positions
(erb)
<a class="button" href="<%= your_url %>" id="about-join-our-team">current open positions</a>
Comments
Post a Comment