Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 947b45113a
Fetching contributors…

Cannot retrieve contributors at this time

37 lines (33 sloc) 1.098 kb
<%= form_for(@user, :as => :user, :url => @user.new_record? ? users_path() : user_path(@user) ) do |f| %>
<% if @user.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(@user.errors.count, "error") %> prohibited this user from being saved:</h2>
<% @user.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% end %>
<% end %>
<td><%= f.label :name, 'Name:' %></td>
<td><%= f.text_field :name, 'data-autofocus' => 'true' %></td>
<td><%= f.label :email, 'Email:' %></td>
<td><%= f.text_field :email %></td>
<td><%= f.label :active, 'Active Flag:' %></td>
<%= f.radio_button :active, 'true' %><%= f.label :active_true, 'Ja' %>
<%= f.radio_button :active, 'false' %><%= f.label :active_false, 'Nein' %>
<div class="actions">
<%= f.submit 'Speichern', :class => 'btn-primary' %>
<%= link_to 'Zurück', users_path(), :class => 'btn' %>
<% end %>
Jump to Line
Something went wrong with that request. Please try again.