Cannot modify SafeBuffer in place #1597

Closed
HelpfulCodes opened this Issue Jun 9, 2011 · 4 comments

Projects

None yet

2 participants

@HelpfulCodes

I become the Error Mesage "Cannot modify SafeBuffer in place" with the function number_with_delimiter and/or number_with_precision.
(<%= number_with_delimiter(number_with_precision(artikel.preis*anzahl("#{artikel.id}"), :precision => 2), :delimiter => ".", :separator => ",") %>)
I have the Problem with Rails 3.1 RC3 and the Master.

@pixeltrix
Member

Can you post a backtrace - having looked at the source code both those helpers coerce the first argument to a float before doing anything so shouldn't be working on a SafeBuffer. Also what is artikel.preis*anzahl("#{artikel.id}") doing?

@HelpfulCodes

i have the same problem on an other position and on the position i have only artikel.preis as value.
artikel.preis is a float variable from the database and have the value 172.3

i become the error everytime if i use number_with_delimiter with number_with_precision.
If i use only one of the two helpers it will work

@pixeltrix
Member

That's because number_with_delimiter and number_with_precision return HTML safe strings so you're feeding a safe string into the other helper. However if you look at the code here and here you can see that the string is coerced into a Float so when gsub! is called here then it should be a normal String rather than a SafeBuffer, e.g:

>> Float("123.00".html_safe).to_s.split(".")[0].html_safe?
=> false

Please post a backtrace so I can see exactly where the error is raised. Anyway why are you nesting the helpers, can't you just use number_with_precision? e.g:

>> helper.number_with_precision(1234.0, :separator => ',', :delimiter => '.', :precision => 2)
=> "1.234,00"
@HelpfulCodes

oh, i can use separator and delimiter with number_with_precision too?!
thx for this info :)

i have edit the code a little bit

how i write my code with color in github?

<%= price(artikel.preis) %>
def price(zahl)
x=number_with_precision(zahl, :precision => 2)
x=number_with_delimiter(x, :delimiter => ".", :separator => ",")
end

i think you mean the full trace with backtrace, correct?

C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/activesupport/lib/active_support/core_ext/string/output_safety.rb:130:in gsub!' C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_view/helpers/number_helper.rb:215:innumber_with_delimiter'
app/helpers/application_helper.rb:58:in price' app/views/produkts/_produkt.html.erb:15:in_app_views_produkts__produkt_html_erb___263552572_20592372'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_view/template.rb:143:in block in render' C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/activesupport/lib/active_support/notifications.rb:57:ininstrument'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_view/template.rb:141:in render' C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_view/renderer/partial_renderer.rb:265:inrender_partial'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_view/renderer/partial_renderer.rb:237:in block (2 levels) in render' C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_view/renderer/abstract_renderer.rb:33:inblock in instrument'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/activesupport/lib/active_support/notifications.rb:55:in block in instrument' C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/activesupport/lib/active_support/notifications/instrumenter.rb:20:ininstrument'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/activesupport/lib/active_support/notifications.rb:55:in instrument' C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_view/renderer/abstract_renderer.rb:33:ininstrument'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_view/renderer/partial_renderer.rb:236:in block in render' C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_view/renderer/abstract_renderer.rb:22:inwrap_formats'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_view/renderer/partial_renderer.rb:228:in render' C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_view/renderer/renderer.rb:41:inrender_partial'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_view/renderer/renderer.rb:15:in render' C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_view/helpers/rendering_helper.rb:24:inrender'
app/views/warenkorb/index.html.erb:10:in block in _app_views_warenkorb_index_html_erb__214535296_19209312' app/views/warenkorb/index.html.erb:9:ineach'
app/views/warenkorb/index.html.erb:9:in _app_views_warenkorb_index_html_erb__214535296_19209312' C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_view/template.rb:143:inblock in render'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/activesupport/lib/active_support/notifications.rb:57:in instrument' C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_view/template.rb:141:inrender'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_view/renderer/template_renderer.rb:40:in block (2 levels) in render_template' C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_view/renderer/abstract_renderer.rb:33:inblock in instrument'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/activesupport/lib/active_support/notifications.rb:55:in block in instrument' C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/activesupport/lib/active_support/notifications/instrumenter.rb:20:ininstrument'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/activesupport/lib/active_support/notifications.rb:55:in instrument' C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_view/renderer/abstract_renderer.rb:33:ininstrument'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_view/renderer/template_renderer.rb:39:in block in render_template' C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_view/renderer/template_renderer.rb:47:inrender_with_layout'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_view/renderer/template_renderer.rb:38:in render_template' C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_view/renderer/template_renderer.rb:12:inblock in render'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_view/renderer/abstract_renderer.rb:22:in wrap_formats' C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_view/renderer/template_renderer.rb:9:inrender'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_view/renderer/renderer.rb:36:in render_template' C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_view/renderer/renderer.rb:17:inrender'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/abstract_controller/rendering.rb:120:in _render_template' C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_controller/metal/streaming.rb:258:in_render_template'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/abstract_controller/rendering.rb:114:in render_to_body' C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_controller/metal/renderers.rb:30:inrender_to_body'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_controller/metal/compatibility.rb:43:in render_to_body' C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/abstract_controller/rendering.rb:99:inrender'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_controller/metal/rendering.rb:16:in render' C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_controller/metal/instrumentation.rb:40:inblock (2 levels) in render'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/activesupport/lib/active_support/core_ext/benchmark.rb:5:in block in ms' C:/RailsInstaller/Ruby1.8.7/lib/ruby/1.9.1/benchmark.rb:309:inrealtime'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/activesupport/lib/active_support/core_ext/benchmark.rb:5:in ms' C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_controller/metal/instrumentation.rb:40:inblock in render'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_controller/metal/instrumentation.rb:78:in cleanup_view_runtime' C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/activerecord/lib/active_record/railties/controller_runtime.rb:24:incleanup_view_runtime'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_controller/metal/instrumentation.rb:39:in render' C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_controller/metal/implicit_render.rb:10:indefault_render'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_controller/metal/mime_responds.rb:268:in block in retrieve_response_from_mimes' C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_controller/metal/mime_responds.rb:195:incall'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_controller/metal/mime_responds.rb:195:in respond_to' app/controllers/warenkorb_controller.rb:27:inindex'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_controller/metal/implicit_render.rb:4:in send_action' C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/abstract_controller/base.rb:167:inprocess_action'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_controller/metal/rendering.rb:10:in process_action' C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/abstract_controller/callbacks.rb:18:inblock in process_action'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/activesupport/lib/active_support/callbacks.rb:425:in _run__992371585__process_action__436524014__callbacks' C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/activesupport/lib/active_support/callbacks.rb:386:in_run_process_action_callbacks'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/activesupport/lib/active_support/callbacks.rb:81:in run_callbacks' C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/abstract_controller/callbacks.rb:17:inprocess_action'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_controller/metal/instrumentation.rb:30:in block in process_action' C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/activesupport/lib/active_support/notifications.rb:55:inblock in instrument'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/activesupport/lib/active_support/notifications/instrumenter.rb:20:in instrument' C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/activesupport/lib/active_support/notifications.rb:55:ininstrument'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_controller/metal/instrumentation.rb:29:in process_action' C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_controller/metal/params_wrapper.rb:202:inprocess_action'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_controller/metal/rescue.rb:17:in process_action' C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/activerecord/lib/active_record/railties/controller_runtime.rb:18:inprocess_action'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/abstract_controller/base.rb:121:in process' C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/abstract_controller/rendering.rb:45:inprocess'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_controller/metal.rb:193:in dispatch' C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_controller/metal/rack_delegation.rb:14:indispatch'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_controller/metal.rb:236:in block in action' C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_dispatch/routing/route_set.rb:65:incall'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_dispatch/routing/route_set.rb:65:in dispatch' C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_dispatch/routing/route_set.rb:29:incall'
rack-mount (0.8.1) lib/rack/mount/route_set.rb:152:in block in call' rack-mount (0.8.1) lib/rack/mount/code_generation.rb:93:inblock in recognize'
rack-mount (0.8.1) lib/rack/mount/code_generation.rb:75:in optimized_each' rack-mount (0.8.1) lib/rack/mount/code_generation.rb:92:inrecognize'
rack-mount (0.8.1) lib/rack/mount/route_set.rb:141:in call' C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_dispatch/routing/route_set.rb:531:incall'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_dispatch/middleware/best_standards_support.rb:17:in call' rack (1.3.0) lib/rack/etag.rb:23:incall'
rack (1.3.0) lib/rack/conditionalget.rb:25:in call' C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_dispatch/middleware/head.rb:14:incall'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_dispatch/middleware/params_parser.rb:21:in call' C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_dispatch/middleware/flash.rb:243:incall'
rack (1.3.0) lib/rack/session/abstract/id.rb:195:in context' rack (1.3.0) lib/rack/session/abstract/id.rb:190:incall'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_dispatch/middleware/cookies.rb:332:in call' C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/activerecord/lib/active_record/query_cache.rb:54:incall'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:448:in call' C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_dispatch/middleware/callbacks.rb:28:inblock in call'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/activesupport/lib/active_support/callbacks.rb:392:in _run_call_callbacks' C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/activesupport/lib/active_support/callbacks.rb:81:inrun_callbacks'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_dispatch/middleware/callbacks.rb:27:in call' C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_dispatch/middleware/reloader.rb:68:incall'
rack (1.3.0) lib/rack/sendfile.rb:102:in call' C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_dispatch/middleware/remote_ip.rb:48:incall'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_dispatch/middleware/show_exceptions.rb:47:in call' C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/railties/lib/rails/rack/logger.rb:13:incall'
rack (1.3.0) lib/rack/methodoverride.rb:24:in call' rack (1.3.0) lib/rack/runtime.rb:17:incall'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/activesupport/lib/active_support/cache/strategy/local_cache.rb:72:in call' rack (1.3.0) lib/rack/lock.rb:34:incall'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/actionpack/lib/action_dispatch/middleware/static.rb:53:in call' C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/railties/lib/rails/engine.rb:446:incall'
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/railties/lib/rails/rack/content_length.rb:16:in call' C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.9.1/bundler/gems/rails-2bda229c2fa1/railties/lib/rails/rack/log_tailer.rb:14:incall'
rack (1.3.0) lib/rack/handler/mongrel.rb:77:in process' mongrel-1.2.0.pre2-x86 (mingw32) lib/mongrel.rb:165:inblock in process_client'
mongrel-1.2.0.pre2-x86 (mingw32) lib/mongrel.rb:164:in each' mongrel-1.2.0.pre2-x86 (mingw32) lib/mongrel.rb:164:inprocess_client'
mongrel-1.2.0.pre2-x86 (mingw32) lib/mongrel.rb:291:in `block (2 levels) in run'

But now, i change my code and use only the number_with_precision helper, thx again

@pixeltrix pixeltrix closed this in 9b80f8d Jun 10, 2011
@arunagw arunagw pushed a commit to arunagw/rails that referenced this issue Jun 16, 2011
@tenderlove tenderlove Merge branch '3-0-9' into 3-0-stable
* 3-0-9:
  Preparing for 3.0.9 release
  avoid false positives caused by release candidates
  Preparing for 3.0.9.rc5 release
  bumping to rc4
  Make sure that we don't perform in-place mutation on SafeBuffer string
  Update CHANGELOG to mention the json_escape change
  Ensure number helpers can handle HTML safe strings - closes #1597.
  bumping to rc3 since syck is not playing nicely
  bumping to 3.0.9.rc2
  ensuring that json_escape returns html safe strings when passed an html safe string
  Make sure `escape_javascript` return `SafeBuffer` if the incoming argument is already html_safe
  Fix issue #1598 by adding a dependency to the RDoc gem.
  bumping to 3.0.9.rc1
5e61d0b
@jmileham jmileham pushed a commit to jmileham/rails that referenced this issue Jun 16, 2011
@tenderlove tenderlove Merge branch '3-0-stable' into 3-0-9
* 3-0-stable:
  Add support for using an ARCONFIG environment variable to specify the location of the config.yml file for running the tests
  Define ActiveSupport#to_param as to_str - closes #1663
  Revert "Make sure that we don't perform in-place mutation on SafeBuffer string"
  Make sure that we don't perform in-place mutation on SafeBuffer string
  Update CHANGELOG to mention the json_escape change
  Ensure number helpers can handle HTML safe strings - closes #1597.
  ensuring that json_escape returns html safe strings when passed an html safe string
  Fix issue #1598 by adding a dependency to the RDoc gem.
  Make sure `escape_javascript` return `SafeBuffer` if the incoming argument is already html_safe

Conflicts:
	actionpack/CHANGELOG
d5e28c3
@jmileham jmileham pushed a commit to jmileham/rails that referenced this issue Jun 16, 2011
@tenderlove tenderlove Merge branch '3-0-9' of github.com:rails/rails into 3-0-9
* '3-0-9' of github.com:rails/rails:
  Make sure that we don't perform in-place mutation on SafeBuffer string
  Update CHANGELOG to mention the json_escape change
  Ensure number helpers can handle HTML safe strings - closes #1597.
d958428
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment