lib/scaffolding_extensions/controller/rack.rb
# Render's the scaffolded template.  A user can override both the template and the layout.
Render's the scaffolded template.  A user can override both the template and the layout.
Render ' s the scaffolded template . A user can override both the template and the layout .
def scaffold_render_template(action, options = {}, render_options = {})
        suffix = options[:suffix]
        suffix_action = "#{action}#{suffix}"
        @scaffold_options ||= options
        @scaffold_suffix ||= suffix
        @scaffold_class ||= @scaffold_options[:class]
        if render_options.include?(:inline)
          response['Content-Type'] = 'text/javascript' if @scaffold_javascript
          ERB.new(render_options[:inline]).result(binding)
        else
          @content = ERB.new(File.read(scaffold_path(action))).result(binding)
          ERB.new(File.read(scaffold_path(:layout))).result(binding)
        end
      end
def scaffold_render_template ( action , options = { } , render_options = { } ) suffix = options [ :suffix ] suffix_action = "#{action}#{suffix}" @scaffold_options ||= options @scaffold_suffix ||= suffix @scaffold_class ||= @scaffold_options [ :class ] if render_options . include? ( :inline ) response [ 'Content-Type' ] = 'text/javascript' if @scaffold_javascript ERB . new ( render_options [ :inline ] ) . result ( binding ) else @content = ERB . new ( File . read ( scaffold_path ( action ) ) ) . result ( binding ) ERB . new ( File . read ( scaffold_path ( :layout ) ) ) . result ( binding ) end end
Render's the scaffolded template.
Render ' s the scaffolded template .
action
<not_specific>
options
<not_specific>
render_options
<not_specific>