search for: action_pack

Displaying 5 results from an estimated 5 matches for "action_pack".

2010 May 05
2
Add method to get at captured content_for
...(for instance to provide a default value). 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:...
2008 Mar 04
4
ActionView 2.0.2 broken without ActionController
Hello all, You can easily reproduce with Rails 2.0.2 gems: $ irb >> require ''rubygems'' >> require ''active_support'' >> require ''action_pack'' >> require ''action_view'' *BOOM* You should get an error: MissingSourceFile: no such file to load -- html/document This is because html/document.rb is in lib/action_controller/vendor/html-scanner, and that directory is added to load paths only when action_c...
2011 Apr 15
0
Suppressing log line for partials
I have a lot of partials, so I find that my production.log file gets pretty cluttered and large quickly and it makes it more difficult to use. I like most of the messages, I just don''t see a need for taking up a line for each partial that is rendered. The logging is done in action_pack in the log_subscriber file here: class LogSubscriber < ActiveSupport::LogSubscriber def render_template(event) message = "Rendered #{from_rails_root(event.payload[:identifier])}" message << " within #{from_rails_root(event.payload[:layout])}" if event...
2006 Oct 22
3
Date Helpers?
Does anyone have any ideas off the top of there head how to easily construct a date helper as one would see in Rails? Thanks, Michael Gorsuch http://www.styledbits.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/camping-list/attachments/20061022/7dda5a52/attachment.html
2006 Jun 03
12
How to get dynamically created inputs from html form back to rails app
Thank you in advance. Although I have many years of experience in general, including cross- platform processing, I am not an HTML/Javascript programmer. As a result, I do not have certain specific baseline skills and/or knowledge that are presumed in the Rails and Ajax documentation. I am experienced with DOM manipulations, so the bare mechanics of manipulating the browser GUI via Javascript