Displaying 4 results from an estimated 4 matches for "capture_help".
Did you mean:
capture_helper
2013 Mar 24
5
Rails 4.0 has_many_through and fields_for
...00/controller_actions/1/edit#> | Full Trace<http://localhost:3100/controller_actions/1/edit#>
app/views/controller_actions/_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:...
2008 Jul 01
4
Errno::EIO - Input/output error
.../views/reporter/index.rhtml:4:in
`_run_rhtml_47app47views47reporter47index46rhtml''
/home/dphansalkar/temp_upload/MergeDemoTRY/app/views/reporter/index.rhtml:4:in
`_run_rhtml_47app47views47reporter47index46rhtml''
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_view/helpers/capture_helper.rb:108:in
`call''
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_view/helpers/capture_helper.rb:108:in
`capture_erb_with_buffer''
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/action_view/helpers/capture_helper.rb:67:in
`capture''
/usr/lib/ruby/gems/1.8/gems/...
2010 May 05
2
Add method to get at captured content_for
...alue). Calling yield from
within the helper method won''t work, and accessing the @_content_for
variable directly is not encouraged.
Proposed solution: add a captured_content_for method so helper methods
can legitimately access captured content. Add to /action_pack/lib/
action_view/helpers/capture_helper.rb
# Get content previously captured with +content_for+. This is the
same as calling
# +yield+ inside a template except that this method can be used
inside helper methods.
def captured_content_for(name)
@_content_for(name)
end
Lighthouse ticket: https://rails.lighthouseapp.com/proje...
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