def render_field(field_name, method, options={}, html_options={}, &block)
      case field_name
      when 'check_box'
        template = field_name
      else
        template = 'default_field'
      end
      @template.render(:partial => "#{BootstrapBuilder.config.template_folder}/#{template}", :locals  => {
        :builder        => self,
        :method         => method,
        :field          => @template.capture(&block),
        :label_text     => label_text(method, html_options[:label]),
        :required       => html_options[:required],
        :prepend        => html_options[:prepend],
        :append         => html_options[:append],
        :help_block     => html_options[:help_block],
        :error_messages => error_messages_for(method)
      })
    end
def render_field(field_name, method, options={}, html_options={}, &block)
      case field_name
      when 'check_box'
        template = field_name
      else
        template = 'default_field'
      end
      @template.render(:partial => "#{BootstrapBuilder.config.template_folder}/#{template}", :locals  => {
        :builder        => self,
        :method         => method,
        :field          => @template.capture(&block),
        :label_text     => label_text(method, html_options[:label]),
        :required       => html_options[:required],
        :prepend        => html_options[:prepend],
        :append         => html_options[:append],
        :help_block     => html_options[:help_block],
        :error_messages => error_messages_for(method)
      })
    end
Main rendering method