<%= link_to 'New Post', new_post_path %>
This produces link to new_post_path. Previously i used <input type="submit" class="new" name="Addlist" value="Add New" /> which resembled like a button. So how can i make the link look like button in erb?
Just to throw another option out there since I had a scenario where the button_to option didn’t work. This looks kind of similar to that.
What I basically wanted is a button that doesn’t turn into a submit, since I have multiple buttons on the page that aren’t related to a form, and I really just want it to just go to another page.