continue with the prior article, I'll try to add a sign up link to our home page.
?
?
<%= link_to "Sign up now!", '#', :class => "signup_button round" %>
Remember, # means a blank link, a link to itself.
?
?the generated html will be:
?
<a href="#" class="signup_button round">Sign up now!</a>
?
note:
?
right now, the <a> tag has two classed, seperated by a space.
?
<a href="#" class="signup_button round">
?this is convenient for the common case of an element with two kinds of styles.
?
?
Ok, we are done with adding a sign up button.