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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T22:49:41+00:00 2026-05-17T22:49:41+00:00

I am converting my fat Rails2 application to run on Rails3. After a long

  • 0

I am converting my fat Rails2 application to run on Rails3. After a long intense fight with an army of bugs and my bosses yells, the page is all rendered as an escaped html string. So all the divs, images etc. are written literally for the user.

For some reason this call of a partial renders an escaped string

<%= render :partial => 'something_really_interesting' %>

As all Ruby on Rails application this instruction is not called very much! So how would I handle all these calls to not render normally not as an escaped string?

  • 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-17T22:49:41+00:00Added an answer on May 17, 2026 at 10:49 pm

    Use <%= raw bla %> in inside the partial file.

    • http://github.com/rails/rails/blob/3270c58ebb3143b3ab3b349fe339cdd4587468ee/actionpack/lib/action_view/helpers/raw_output_helper.rb#L13

    Rails 3 automatically makes everything safe. You need to put raw to escape the behavior. That also means you don’t have to use h() method to make your string safe any more.

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

Sidebar

Related Questions

My project is converting a legacy fat-client desktop application into the web. The database
After converting an ASP.NET webform (v3.5) to use a master page, I started getting
After converting a 2D array from the CPU to the GPU's memory to run
After converting my Web Site Project to a Web Application Project , some of
While converting a desktop application to a web app, I've run across my ignorance
While converting TIFFs to PDFs, I noticed some of the PDFs were corrupted. After
After converting a Hybrid ASP.NET MVC1 app to MVC2 I'm getting the following error
After converting to Visual Studio 2010 with ReSharper5 some of my unit tests started
Converting large static site to Drupal 6.2 Page urls are now aliased like folder/
Converting an existing Android application to a library is incredibly simple : All I

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.