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

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

inno setup - TLabel or TNewStaticText - change .Font.Style on Focus like Cursor changes with .Cursor -