lib/comfortable_mexican_sofa/form_builder.rb
# Capturing all calls of cms_tag_* type. For those we'll try to render
# a form element. Everything else can trigger MethodNotFound error.
Capturing all calls of cms_tag_* type. For those we'll try to render
a form element. Everything else can trigger MethodNotFound error.
Capturing all calls of cms_tag_ * type . For those we ' ll try to render a form element . Everything else can trigger MethodNotFound error .
def method_missing(method_name, *args)
    if m = method_name.to_s.match(/^cms_tag_(\w+)$/)
      send(m[1], *args) if respond_to?(m[1])
    else
      super
    end
  end
def method_missing ( method_name , * args ) if m = method_name . to_s . match ( / ^cms_tag_( \w +)$ / ) send ( m [ 1 ] , * args ) if respond_to? ( m [ 1 ] ) else super end end
Capturing all calls of cms_tag_* type.
Capturing all calls of cms_tag_ * type .
method_name
<not_specific>
args
<not_specific>