Sha256: 228c4f0752c540c3332e50937d2757cfc91070e49e60fc8b6f7de26f46877300
Contents?: true
Size: 963 Bytes
Versions: 40
Compression:
Stored size: 963 Bytes
Contents
<% column = if render_field.is_a? ActiveScaffold::DataStructures::Column render_field else active_scaffold_config.columns[render_field.to_sym] unless render_field.is_a? ActiveScaffold::DataStructures::Column end @rendered ||= Set.new return if @rendered.include? column.name @rendered << column.name if column_renders_as(column) == :subform options = {:is_subform => true, :field_class => "#{column.name}-sub-form"} else options = {:is_subform => false, :field_class => "#{column.name}-input"} end -%> ActiveScaffold.render_form_field('<%= source_id %>','<%= escape_javascript(render(:partial => form_partial_for_column(column), :locals => { :column => column, :scope => scope })) %>', <%= options.to_json.html_safe %>); <%if column.update_columns && !column.update_columns.empty?%> <%= render(:partial => "render_field", :collection => column.update_columns, :locals => {:source_id => source_id, :scope => scope})%> <%end%>
Version data entries
40 entries across 40 versions & 2 rubygems