Module: Erubis::Helpers::RailsHelper

### Home Classes Methods

### In Files

- lib/erubis/helpers/rails_helper.rb

### Namespace

- MODULE Erubis::Helpers::RailsHelper::TemplateConverter

### Methods

- ::engine_class
- ::engine_class=
- ::init_properties
- ::init_properties=
- ::preprocessing
- ::preprocessing=
- ::show_src
- ::show_src=

### Class/Module Index

Quicksearch

- Erubis
- Erubis::ArrayBufferEnhancer
- Erubis::ArrayBufferEruby
- Erubis::ArrayEnhancer
- Erubis::ArrayEruby
- Erubis::Basic
- Erubis::Basic::Converter
- Erubis::Basic::Engine
- Erubis::BiPatternEnhancer
- Erubis::BiPatternEruby
- Erubis::CGenerator
- Erubis::CommandOptionError
- Erubis::Context
- Erubis::Converter
- Erubis::CppGenerator
- Erubis::DeleteIndentEnhancer
- Erubis::DeleteIndentEruby
- Erubis::Ec
- Erubis::Ecpp
- Erubis::Ejava
- Erubis::Ejavascript
- Erubis::Ejs
- Erubis::Engine
- Erubis::Eperl
- Erubis::Ephp
- Erubis::ErboutEnhancer
- Erubis::ErboutEruby
- Erubis::ErubisError
- Erubis::Eruby
- Erubis::EscapeEnhancer
- Erubis::EscapedEc
- Erubis::EscapedEcpp
- Erubis::EscapedEjava
- Erubis::EscapedEjavascript
- Erubis::EscapedEjs
- Erubis::EscapedEperl
- Erubis::EscapedEphp
- Erubis::EscapedEruby
- Erubis::EscapedEscheme
- Erubis::Escheme
- Erubis::Evaluator
- Erubis::FastEruby
- Erubis::Generator
- Erubis::HeaderFooterEnhancer
- Erubis::HeaderFooterEruby
- Erubis::Helpers
- Erubis::Helpers::RailsFormHelper
- Erubis::Helpers::RailsHelper
- Erubis::Helpers::RailsHelper::TemplateConverter
- Erubis::InterpolationEnhancer
- Erubis::InterpolationEruby
- Erubis::JavaGenerator
- Erubis::JavascriptGenerator
- Erubis::Main
- Erubis::NoCodeEnhancer
- Erubis::NoCodeEruby
- Erubis::NoTextEnhancer
- Erubis::NoTextEruby
- Erubis::NotSupportedError
- Erubis::OptimizedEruby
- Erubis::OptimizedGenerator
- Erubis::OptimizedXmlEruby
- Erubis::PI
- Erubis::PI::Converter
- Erubis::PI::Ec
- Erubis::PI::Ecpp
- Erubis::PI::Ejava
- Erubis::PI::Ejavascript
- Erubis::PI::Engine
- Erubis::PI::Eperl
- Erubis::PI::Ephp
- Erubis::PI::Eruby
- Erubis::PI::Escheme
- Erubis::PI::TinyEruby
- Erubis::PercentLineEnhancer
- Erubis::PercentLineEruby
- Erubis::PerlGenerator
- Erubis::PhpGenerator
- Erubis::PrefixedLineEnhancer
- Erubis::PrefixedLineEruby
- Erubis::PreprocessingEruby
- Erubis::PreprocessingHelper
- Erubis::PrintEnabledEnhancer
- Erubis::PrintEnabledEruby
- Erubis::PrintOutEnhancer
- Erubis::PrintOutEruby
- Erubis::PrintOutSimplifiedEruby
- Erubis::RubyEvaluator
- Erubis::RubyGenerator
- Erubis::SchemeGenerator
- Erubis::SimplifiedEruby
- Erubis::SimplifyEnhancer
- Erubis::StdoutEnhancer
- Erubis::StdoutEruby
- Erubis::StdoutSimplifiedEruby
- Erubis::StringBufferEnhancer
- Erubis::StringBufferEruby
- Erubis::StringIOEruby
- Erubis::TinyEruby
- Erubis::XmlEruby
- Erubis::XmlHelper
- ActionView
- ActionView::TemplateHandlers
- ActionView::TemplateHandlers::ErubisHandler
- ERB
- Kernel

No matching classes.

# Erubis::Helpers::RailsHelper

helper module for Ruby on Rails

howto:

1. add the folliwng code in your 'config/environment.rb'

       require 'erubis/helpers/rails_helper'
       #Erubis::Helpers::RailsHelper.engine_class = Erubis::Eruby # or Erubis::FastEruby
       #Erubis::Helpers::RailsHelper.init_properties = {}
       #Erubis::Helpers::RailsHelper.show_src = false       # set true for debugging
       #Erubis::Helpers::RailsHelper.preprocessing = true   # set true to enable preprocessing

2. restart web server.

if Erubis::Helper::Rails.show_src is true, Erubis prints converted Ruby code into log file ('log/development.log' or so). if false, it doesn't. if nil, Erubis prints converted Ruby code if ENV == 'development'.

### Public Class Methods

engine_class() click to toggle source

@@engine_class = ::Erubis::FastEruby

    # File lib/erubis/helpers/rails_helper.rb, line 47
    def self.engine_class
      @@engine_class
    end

engine_class=(klass) click to toggle source

    # File lib/erubis/helpers/rails_helper.rb, line 50
    def self.engine_class=(klass)
      @@engine_class = klass
    end

init_properties() click to toggle source

    # File lib/erubis/helpers/rails_helper.rb, line 56
    def self.init_properties
      @@init_properties
    end

init_properties=(hash) click to toggle source

    # File lib/erubis/helpers/rails_helper.rb, line 59
    def self.init_properties=(hash)
      @@init_properties = hash
    end

preprocessing() click to toggle source

    # File lib/erubis/helpers/rails_helper.rb, line 74
    def self.preprocessing
      @@preprocessing
    end

preprocessing=(flag) click to toggle source

    # File lib/erubis/helpers/rails_helper.rb, line 77
    def self.preprocessing=(flag)
      @@preprocessing = flag
    end

show_src() click to toggle source

    # File lib/erubis/helpers/rails_helper.rb, line 65
    def self.show_src
      @@show_src
    end

show_src=(flag) click to toggle source

    # File lib/erubis/helpers/rails_helper.rb, line 68
    def self.show_src=(flag)
      @@show_src = flag
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.