Sha256: 639c0739b7321c9154344b67b7af6edb1c70db85bcb652c9f6b8b23bcd3ba9d7

Contents?: true

Size: 316 Bytes

Versions: 3

Compression:

Stored size: 316 Bytes

Contents

class Dashboards::NewPresenter < Curly::Presenter
  presents :name

  def form(&block)
    form_for(:dashboard, &block)
  end

  class FormPresenter < Curly::Presenter
    presents :form, :name

    def name_label
      "Name"
    end

    def name_input
      @form.text_field :name, value: @name
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
curly-templates-2.1.0 spec/dummy/app/presenters/dashboards/new_presenter.rb
curly-templates-2.1.0.beta2 spec/dummy/app/presenters/dashboards/new_presenter.rb
curly-templates-2.1.0.beta1 spec/dummy/app/presenters/dashboards/new_presenter.rb