Moved users into new admin-namespace and made the controller restful. Also moved some logic from the controller into the user-model (dry it up..).

This commit is contained in:
Benjamin Meichsner 2009-01-12 18:26:09 +01:00
parent 47398c6a70
commit 461dfa8531
19 changed files with 242 additions and 94 deletions

View file

@ -0,0 +1,13 @@
- title "Neue Benutzerin"
#newUser
.box_title
%h2 Neue Benutzerin
.column_content#userForm
- form_for([:admin, @user]) do |@form|
= render :partial => 'shared/user_form'
%p{:style => "clear:both" }
= submit_tag "Speichern"
|
= link_to('Abbrechen', admin_users_path )
%p= link_to 'Benutzerinnenübersicht', admin_users_path