Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8397987
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T20:55:14+00:00 2026-06-09T20:55:14+00:00

<%= link_to ‘New Post’, new_post_path %> This produces link to new_post_path . Previously i

  • 0
<%= 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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T20:55:16+00:00Added an answer on June 9, 2026 at 8:55 pm

    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.

    <%= link_to '<button type="button">New Post</button>'.html_safe, new_post_path %>
    

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

//Html - page containing link to open dialog <input type=text value=something id=inputbox_id /> <a
I used this link to get started with Sencha: http://www.sencha.com/learn/getting-started-with-sencha-touch-2/ My Main.js is as
I followed this link to gzip my php driven website It's working fine but
I found this link Link to another page using Twitter Bootstrap jquery modal in
Need button to link to other app in the app store. I use this...
How to open a new window with link to OutSide of MVC and take
I want to include link to download file in my html-page like this <a
I want to use link_to to create a new article and set the article's
Trying to link to an object name with <%= link_to '<%= museum.name %>', museum
Link to my actual flash demo: http://nside-elite.techiedesign.net/redbox/flashtest.html I created this navigation using Adobe Flash

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.