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 8351269
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T08:34:57+00:00 2026-06-09T08:34:57+00:00

I created this html : %a.btn.btn-large.btn-primary.getting-started %i.icon-arrow-right.icon-white = t(‘header.getting-started’) Now, i want to specify

  • 0

I created this html :

%a.btn.btn-large.btn-primary.getting-started
    %i.icon-arrow-right.icon-white
    = t('header.getting-started')

Now, i want to specify the href of my a tag using my rails router. How can i do that? I tried that :

%a.btn.btn-large.btn-primary.getting-started{:href => =url_for(pdf_path)}
    %i.icon-arrow-right.icon-white
    = t('header.getting-started')

But it fails. And using link_to, i don’t know how to write inner html into the a tag.

  • 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-09T08:34:58+00:00Added an answer on June 9, 2026 at 8:34 am

    I would suggest using the link_to syntax like this:

    = link_to target_path(), class: 'foo' do
      %i.icon-arrow-right.icon-white
      = t('header.getting-started')
    

    This will actually route to the target path and will assign the link body to the attributes defined under do

    Have fun

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

Sidebar

Related Questions

I have dialog created like this $('#add_error').click(function(e) { $('<div>') .load('/someaction/format/html/') .dialog({ title: 'Some title',
This is an HTML scrip that I created. I am trying to include a
I had created one HTML page for my experiance. In this i had use
i have created a java project in eclipse,in this project i have an html
I have followed this guide: http://maven.apache.org/guides/plugin/guide-java-plugin-development.html I have created a maven-plugin project hello-maven-plugin with
I've created this html form and need the fields to send to my email
Using lxml in python I created this xpath syntax htmlPage.xpath(/html/body//a/text()) It gets me all
I'm new to cakephp and following this tutorial. http://book.cakephp.org/2.0/en/tutorials-and-examples/blog-auth-example/auth.html I have created the blog
This is the HTML I'm trying to create: <td> Tiana is <select name=U4>...</select> keen
So I have Html like this http://trac.edgewall.org/wiki/RecentChanges (I want to create some Flash Track

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.