Displaying 3 results from an estimated 3 matches for "get_bind".
Did you mean:
get_kind
2006 Apr 03
0
documentation question (ri and binding vs. get_binding vd getBinding)
I was reading up on ERB documentation and a snippet on rhtml
requiring the use of Object.get_binding caught my attention:
...
rhtml = ERB.new("someTemplate")
rhtml.run(someObject.get_binding)
...
Curious about tools I have at my disposal to learn more about things
I don''t know about Ruby, i typed the following into my DOS console:
ri get_binding
and got the following disa...
2010 Nov 20
0
Enabling preprocessing in Erubis makes views much faster
...quot; and
"javascript_include_tag" which is a shame because those would be
excellent candidates to eval at compile time. Perhaps someone with a
deeper knowledge of Rails can say what would be needed to make that
work.
https://gist.github.com/707461
module ActionView
class Base
def get_binding;return binding;end
end
class Template
module Handlers
class Erubis < ::Erubis::Eruby
def add_expr_debug(src, code)
src << "@output_buffer.safe_concat(''" <<
escape_text(eval(code,ActionView::Base.new.get_binding).to_s) << &q...
2008 Feb 07
11
Multiple Views within subfolders
Hi,
I am creating an application in which I am allowing users to have
customized views of a form. These forms do not have to be customized
at this point by the user, but will for now be customized by us, and
uploaded to the server.
My idea was to take the similar approach done by the plug in
acts_as_attachment, and, have a default layout stored in the normal
views/controller_name folder, but