search for: safebuff

Displaying 6 results from an estimated 6 matches for "safebuff".

Did you mean: safebuffer
2010 May 26
3
Safebuffer with rails 2.3.8
Hi there! I''ve just migrated from rails 2.3.5 to 2.3.8 and now I have a lot (and I mean a lot!) of deprecation warnings like this one: "DEPRECATION WARNING: ActionView::SafeBuffer is deprecated! Use ActiveSupport::SafeBuffer instead." But I don''t understand how to remove this. I searched through installed plugins, and there is no reference to SafeBuffer :( Any help would be appreciated please. Thanks! -- ,= ,-_-. =. Loïc Guitaut ((_/)o o(\_)) http:...
2011 Jun 26
1
ActionView::Template::Error (Cannot modify SafeBuffer in place):
Hello, Trying to upgrade an app that was running fine in 3.0.3 to 3.0.9 and while everything works well, I get this error: ActionView::Template::Error (Cannot modify SafeBuffer in place): When passing a string to this function (in application_helper.rb) through a simple: <%= format_me(article[shortdesc])%> def format_me(text, html_options={}, options={}) text = ''''.html_safe if text.nil? start_tag = tag(''p class=grey'',...
2011 Jun 08
4
Cannot modify SafeBuffer in place
Upgraded from rails 3.0.7.rc1 to 3.0.8 today and ran into a problem when rendering haml: TypeError in Pages#home Cannot modify SafeBuffer in place Full Trace: activesupport (3.0.8) lib/active_support/core_ext/string/output_safety.rb:122:in `gsub!'' haml (3.1.1) lib/haml/compiler.rb:382:in `block in build_attributes'' haml (3.1.1) lib/haml/compiler.rb:358:in `each'' haml (3.1.1) lib/haml/compiler.rb:358:in...
2011 Jul 15
3
Ruby variable that embeds html tags
This seems very simple, but I can''t quite get it. Probably because I''m just starting out with RoR. My view has a slew of labels and text fields; many are "required": <%= f.text_field :screen_name %> <span class="required_field">Required field</span> (The "required_field" class turns the text red and smaller.) I''d like to
2011 Nov 22
4
A "strict Arel" mode for ActiveRecord to prevent SQL injection vulnerabilities
Hello rubyonrails-core, I’ve been looking into possible changes to ActiveRecord / Arel to make it easier to write Rails applications that are free of SQL injection vulnerabilities, and in particular do so in a way that makes it easy for a code reviewer to verify that the app is safe from such bugs. The concern: ----------------- With the ActiveRecord API as is, it’s relatively easy to write
2010 Nov 05
9
[patch] Let's use <%== %> instead of <%= raw() %>
...your views. I especially like the conciseness of <%=== ''<b>Alert</b>'' if level<0 %> better then the alternative with .html_safe. - It performs slightly better since it saves a method call and we can concat a String directly instead of coercing everything to a SafeBuffer - It re-enables the ability of Erubis to behave like Erb in Rails 2 which allows for easier upgrading (You can pass :escape => true to a new Erubis instance or glabally replace the <%= with <%==) https://rails.lighthouseapp.com/projects/8994/tickets/5918-fix-erubis-non-escaping-sequen...