lib/scaffolding_extensions/controller/ramaze.rb
# Renders user provided template if it exists, otherwise renders a scaffold template.
# If a layout is specified (either in the controller or as an render_option), use that layout,
# otherwise uses the scaffolded layout.  If :inline is one of the render_options,
# use the contents of it as the template without the layout.
Renders user provided template if it exists, otherwise renders a scaffold template.
If a layout is specified (either in the controller or as an render_option), use that layout,
otherwise uses the scaffolded layout.  If :inline is one of the render_options,
use the contents of it as the template without the layout.
Renders user provided template if it exists otherwise renders a scaffold template . If a layout is specified ( either in the controller or as an render_option ) use that layout otherwise uses the scaffolded layout . If : inline is one of the render_options use the contents of it as the template without 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]
        unless self.action.view
          if render_options.include?(:inline)
            response['Content-Type'] = 'text/javascript' if @scaffold_javascript
            render_options[:inline]
          else
            self.action.view = scaffold_path(action)
          end
        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 ] unless self . action . view if render_options . include? ( :inline ) response [ 'Content-Type' ] = 'text/javascript' if @scaffold_javascript render_options [ :inline ] else self . action . view = scaffold_path ( action ) end end end
Renders user provided template if it exists, otherwise renders a scaffold template.
Renders user provided template if it exists otherwise renders a scaffold template .
action
<not_specific>
options
<not_specific>
render_options
<not_specific>