Question

I'm working on a Rails 2.3X website, and I am looking in my FTP system for this file:

activesupport/lib/active_support/core_ext/string/output_safety.rb

However, it doesn't seem to be showing up in the web code. How can I get to the file and edit it for my website?

I'm trying to update this file because apostrophes that appear in my field form are showing up as

    ' 

and I believe it's related to an issue with the version of Rails. More details are here https://github.com/rails/rails/commit/88331c575bf5a7ef2451e008881641322ee562b4

Maybe I'm misunderstanding how to update this file? I'm new to Rails, and my plan was to open the file, edit it in Notepad++, and then overwrite the existing file. I appreciate any help you can offer.

View in Rails

<label id="savedmap_name_label" for="savemap_name">Map Title</label>

<% if params[:newsavedmap_id] %>
    <%= f.text_field :name, {:id=>"savemap_name", :size=>30, :value=> @newsavedmap.name }%></p>
<% else %>
    <%= f.text_field :name, {:id=>"savemap_name", :size=>30, :value=>"New Map"}%></p>
<% end %>
    </div>
Was it helpful?

Solution

Never try to update the Framework files, may I know what exactly the issue is?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top