Module: Phlexible

Defined in:
lib/phlexible/rails/button_to.rb,
lib/phlexible.rb,
lib/phlexible/version.rb,
lib/phlexible/callbacks.rb,
lib/phlexible/alias_view.rb,
lib/phlexible/page_title.rb,
lib/phlexible/rails/a_element.rb,
lib/phlexible/rails/responder.rb,
lib/phlexible/rails/view_assigns.rb,
lib/phlexible/rails/button_to_concerns.rb,
lib/phlexible/rails/meta_tags_component.rb,
lib/phlexible/rails/controller_variables.rb,
lib/phlexible/rails/action_controller/meta_tags.rb,
lib/phlexible/rails/action_controller/implicit_render.rb

Overview

Adds support for default and action_missing rendering of Phlex views. So instead of this:

class UsersController
  def index
    render Views::Users::Index.new
  end

  def show
    render Views::Users::Show.new(user)
  end
end

You can do this:

class UsersController
  include Phlexible::Rails::ActionController::ImplicitRender
end

Defined Under Namespace

Modules: AliasView, Callbacks, PageTitle, Rails

Constant Summary collapse

VERSION =
'3.0.0'