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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T05:10:49+00:00 2026-06-09T05:10:49+00:00

I am making a Rails application and I have question regarding stripping text for

  • 0

I am making a Rails application and I have question regarding stripping text for tags. Is it normal to use the strip_tags method everywhere the view is showing text that the user have submitted? Or should all input be validated in the model and then you don’t need the strip_tags method in the view? It will be many places to add this and therefore I wonder if I am correct.

  • 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-09T05:10:51+00:00Added an answer on June 9, 2026 at 5:10 am

    If you’re working with Rails 3+, it automatically escapes everything outputted in views from Ruby. Nothing to do, you’re safe by default.

    If you’re working with Rails 2.3 and down, use <%= h some_var %> to escape potentially harmful variables.

    Also you could use the gem rails_xss with Rails 2.3 to add the protection from Rails 3

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

Sidebar

Related Questions

I'm making a simple search form in rails. In my search view I have
I have a rails app with a mobile view using jqtouch. If the application
I am making the paypal application with rails. I have create all the necessary
I have a simple Rails application with which I am trying to use the
I'm in the process of making a Rails application be able to run on
I'm new to Rails and making application where college members (teachers and students) can
I have been using the Rails console a fair bit lately and its making
I am making a rails cms and I have wondered if there is a
I am making a rails(3.0.11) application using youtube_it api. My index action of videos
I have a Rails application with numbered migrations 001_..., 002_..., etc. I have several

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.