Displaying 6 results from an estimated 6 matches for "with_output_buffer".
2011 Sep 13
3
Accessing Rails helper method with_output_buffer
Hi all,
I cannot figure out how to correctly use the with_output_buffer helper
method (located in ActionView::Helpers::CaptureHelper) inside a custom
FormBuilder.
Below follows a simplified example.
I''m trying to achieve the following behavior in an ERB as suggested in
the form_for helper docs in the Rails source:
==========
<%= form_for @object, :builde...
2013 Mar 24
5
Rails 4.0 has_many_through and fields_for
...ctions/_form.html.erb:21:in `block (2 levels) in _app_views_controller_actions__form_html_erb__366592963_95670400''
actionpack (4.0.0.beta1) lib/action_view/helpers/capture_helper.rb:38:in `block in capture''
actionpack (4.0.0.beta1) lib/action_view/helpers/capture_helper.rb:200:in `with_output_buffer''
actionpack (4.0.0.beta1) lib/action_view/helpers/capture_helper.rb:38:in `capture''
actionpack (4.0.0.beta1) lib/action_view/helpers/form_helper.rb:707:in `fields_for''
actionpack (4.0.0.beta1) lib/action_view/helpers/form_helper.rb:1501:in `fields_for''
app/views/...
2011 Feb 09
16
rails 3.0.4 broke yield :javascript ?
hello,
I have today updated my rails app to 3.0.4 security release but now this
yield :javascripts
fails in the layout and I get my custom js escaped as text in the view.
anybody seeing this also?
tia,
jk
--
www.least-significant-bit.com
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To post to this group, send email to
2011 Jul 23
0
Rendering of Javascript updates with Rails > 2.1
...e)
do |page|
page["div[id=''foo'']"].removeClass("bar")
end
whihc results in an error because the @template variable is nil.
/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.12/lib/active_support/
whiny_nil.rb:52:in `method_missing'': undefined method
`with_output_buffer'' for nil:NilClass (NoMethodError)
from /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/action_view/
helpers/prototype_helper.rb:577:in `initialize''
from /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/action_view/
helpers/prototype_helper.rb:1029:in `new''
from /usr...
2009 Mar 15
0
rspec-rails 1.2.0 Released
...t edge rails (Jonathan Tron). Closes #685.
* create lib/tasks if not present when running script/generate
rspec. Closes #687.
* fixed regression (and added spec so it won''t regress again) where
render => :inline didn''t render unless integrate_views was set
* fixed nil.with_output_buffer bug in helper specs. Closes #719.
2009 Feb 25
9
local variables in partials lead to NameError
I know I must be doing something dumb, but I can''t seem to send a
local variable to my partial. The below code leads to the following
error:
NameError in Residential_listings#new
undefined local variable or method `foo'' for #<ActionView::Base:
0x3fb53f8>
I am trying to call the variable ''foo'' in a partial called
_attachment.html.erb, which is nested in