Sha256: b846a34eee61c632cfbbaf2862d4a16cc462e250dd010bdc3f6ffaa5a84626a6

Contents?: true

Size: 359 Bytes

Versions: 1

Compression:

Stored size: 359 Bytes

Contents

- if valid?(attribute)
  %input{ :name => "user[#{attribute}]", :type => "hidden", :value => @user.send(attribute) }
- else
  .field
    %label{ :for => "user_#{attribute}" }
      = question
    - if errors_on(attribute)
      .validation
        = errors_on(attribute)
    %input{ :id => "user_#{attribute}", :name => "user[#{attribute}]", :type => "text" }

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
winton-sum-0.1.0 lib/sum/view/field.haml