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

  • SEARCH
  • Home
  • 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 7591719
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T20:43:14+00:00 2026-05-30T20:43:14+00:00

In my code I use the aristo design buttons, I insert them like: %button.aristo-default

  • 0

In my code I use the aristo design buttons, I insert them like:

    %button.aristo-default
      &laquo My button text

This works very inconvenient cause sometimes I need a link on the button and that is not possible with this code without using query on click events { :onclick => ” )

What would be a good way to implement a link in rails and make it look like a button, just plain CSS hacking or are there some other good methods?

UPDATE:
Since I’m only looking to make a link look like a button, I think I better look for a solution to do so in CSS. Using the button element implies a form post wich I don’t care about, just getting my link “buttoned”

  • 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-05-30T20:43:16+00:00Added an answer on May 30, 2026 at 8:43 pm

    Depending on what you are trying to do, suggest using the button_to helper. This helps implement a POST to a specified URL (or you can specify other HTTP verbs if those are appropriate). See here for Rails documentation on button_to

    Alternatively, if you want a form tag helper, try button_tag – you can read more about this here.

    If you are just looking to take a link and style it as a button (keeping in mind that the general philosophy is that buttons are meant for those links/actions that result in something changing), you could just give your <a> element a class of button and style that using CSS.

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

Sidebar

Related Questions

This is the code I use to setup my TCP server internal void Initialize(int
how does one use code to do this: produce 15 random numbers [EDIT: from
Many functions in my code use this structure: options = {param1: yes, param2 :
Why does this Django code use _ in front of 'has favicon' has_favicon =
I'm using this jQuery UI code use for a logarithmic slider: var minVal =
I have this code use strict; use warnings; my %hash; $hash{'1'}= {'Make' => 'Toyota','Color'
Javascript loop continue,or break to display? This is my code use for show or
Here is what I'd like to do. Read an html document into code Use
I have to admit, this one has me foxed. Consider this code: use version;
First, this could look like duplicate for How to prevent your JavaScript code from

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.