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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:05:14+00:00 2026-06-18T00:05:14+00:00

In Rails, I’d like to be able to escape all my URLs using link_to

  • 0

In Rails, I’d like to be able to escape all my URLs using link_to across the board. What is the best way to do this?

Currently, the permalinks are stored in UTF-8. e.g. it’s stored as: 水-water

I’m running Spree, so I would like to avoid overriding all the template files with CGI.escapes to achieve the same thing.

Other considerations:

  • Store the Escaped url in the permalinks column? (params encodes it to UTF-8 and then the sequel can’t find it because it was stored in the DB as escaped)

Thanks in advanced!
Justin

  • 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-18T00:05:15+00:00Added an answer on June 18, 2026 at 12:05 am

    Nevermind, link_to already escapes the UTF-8 properly. It was the browser already interpreting it making me perceive it as unescaped.

    Using a Raw HTTP Viewer such as: http://www.rexswain.com/httpview.html

    Helped see that.

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

Sidebar

Related Questions

Rails 2.3.11. I have a search form like this... - form_for(@search) do |form| #
Rails likes to get column attributes for each table you're using. On MySQL this
Rails -v 3.2.3 im using kaminari to do pagination but i keep getting a
Rails 3.2.2 app, using the most recent shopify gem on github. I've looked at
Rails 3.1 now requires you to use image_tag when rendering an image using the
Rails has no way of creating foreign keys in migrations (there are plugins to
[Rails] Where to put this code? I have a user1 and when another registered
Rails provides a timestamp like follows: 2012-12-21T01:09:32Z How can I use JavaScript to determine
Rails 3 noob here. Currently the code in my controller below is getting the
Rails has the link_to helper, and I'm aware that its output is determined by

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.