Sha256: b00a3e665443a12f2203c4439b0fb3267082ff5ebf1a3b802aafc22c5b4942f2

Contents?: true

Size: 655 Bytes

Versions: 4

Compression:

Stored size: 655 Bytes

Contents

<%= simple_form_for @user do |f| %>
  <%= f.input :username, :label_html => { :class => 'my_class' } %>
  <%= f.input :password, :hint => false, :error_html => { :id => "password_error"} %>
  <%= f.input :password_confirmation, :label => false %>
  <%= f.input :time_zone, :priority => /US/%>
  <%= f.error :username, :id => 'user_name_error' %>
  <%= f.hint 'No special characters, please!' %>
  <%= f.association :company %>
  <%= f.association :role %>
  
  <%= f.association :companies, :as => :radio %>
  <%= f.association :roles,   :as => :check_boxes %>
  
  <%= f.button :submit %>  
  <%= f.button :submit %>
  <%= f.submit 'Save' %>  
<% end %>

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
forms-spec-0.1.2 spec/forms-spec/fixtures/erb/simpleform-ex1.erb
forms-spec-0.1.1 spec/forms-spec/fixtures/erb/simpleform-ex1.erb
forms-spec-0.1.0 spec/forms-spec/fixtures/erb/simpleform-ex1.erb
code-spec-0.1.3 spec/code-spec/fixtures/erb/simpleform-ex1.erb