lib/phlex/rails/form.rb in phlex-rails-0.5.0 vs lib/phlex/rails/form.rb in phlex-rails-0.5.1

- old
+ new

@@ -27,11 +27,11 @@ def authenticity_token_field input( name: "authenticity_token", type: "hidden", - value: @_view_context.form_authenticity_token + value: helpers.form_authenticity_token ) end def submit(value) input( @@ -40,14 +40,14 @@ value: value ) end def url - @_view_context.url_for(@model) + helpers.url_for(@model) end def field_name(*field) - @_view_context.field_name(ActiveModel::Naming.param_key(@model.class), *field) + helpers.field_name(ActiveModel::Naming.param_key(@model.class), *field) end input_field :url_field, type: "url" input_field :text_field, type: "text" input_field :date_field, type: "date"