Sha256: f83c7249a848bac5a599411ac77928b49bac9b5bc7e6da489daeab0618073a70
Contents?: true
Size: 586 Bytes
Versions: 3
Compression:
Stored size: 586 Bytes
Contents
ActionView::Base.class_eval do # name is ClassName of form you want # options are optional # options = { # :internal_identifier => 'iid of exact form you want' (a model can have multiple forms) # :width => 'width of form in pixels' # } def render_dynamic_form(name, options={}) form = DynamicForm.get_form(name.to_s, options[:internal_identifier]).to_extjs_widget( { :url => build_widget_url(:new), :widget_result_id => widget_result_id, :width => options[:width] }) form end end
Version data entries
3 entries across 3 versions & 1 rubygems