Module: Padrino::Helpers

Defined in:
padrino-helpers/lib/padrino-helpers.rb,
padrino-helpers/lib/padrino-helpers/tag_helpers.rb,
padrino-helpers/lib/padrino-helpers/form_helpers.rb,
padrino-helpers/lib/padrino-helpers/format_helpers.rb,
padrino-helpers/lib/padrino-helpers/number_helpers.rb,
padrino-helpers/lib/padrino-helpers/output_helpers.rb,
padrino-helpers/lib/padrino-helpers/render_helpers.rb,
padrino-helpers/lib/padrino-helpers/asset_tag_helpers.rb,
padrino-helpers/lib/padrino-helpers/form_helpers/errors.rb,
padrino-helpers/lib/padrino-helpers/translation_helpers.rb,
padrino-helpers/lib/padrino-helpers/form_helpers/options.rb,
padrino-helpers/lib/padrino-helpers/form_helpers/security.rb,
padrino-helpers/lib/padrino-helpers/output_helpers/erb_handler.rb,
padrino-helpers/lib/padrino-helpers/output_helpers/haml_handler.rb,
padrino-helpers/lib/padrino-helpers/output_helpers/slim_handler.rb,
padrino-helpers/lib/padrino-helpers/output_helpers/abstract_handler.rb,
padrino-helpers/lib/padrino-helpers/form_builder/abstract_form_builder.rb,
padrino-helpers/lib/padrino-helpers/form_builder/standard_form_builder.rb

Overview

This component provides a variety of view helpers related to html markup generation. There are helpers for generating tags, forms, links, images, and more. Most of the basic methods should be very familiar to anyone who has used rails view helpers.

Defined Under Namespace

Modules: AssetTagHelpers, FormBuilder, FormHelpers, FormatHelpers, NumberHelpers, OutputHelpers, RenderHelpers, TagHelpers, TranslationHelpers

Class Method Summary collapse

Class Method Details

.registered(app) ⇒ Object

Examples:

Register the helper module

require 'padrino-helpers'
class Padrino::Application
  register Padrino::Helpers
end

Parameters:

  • app (Sinatra::Application)

    The specified Padrino application.



41
42
43
44
45
46
# File 'padrino-helpers/lib/padrino-helpers.rb', line 41

def registered(app)
  require 'padrino/rendering'
  app.register Padrino::Rendering
  app.set :default_builder, 'StandardFormBuilder' unless app.respond_to?(:default_builder)
  included(app)
end