summaryrefslogtreecommitdiff
path: root/users/app/helpers
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2012-12-09 13:19:54 +0100
committerAzul <azul@leap.se>2012-12-09 13:19:54 +0100
commit9d99d340cfd3c55f21d38c1ba9f3f4574e40c46c (patch)
tree702e054dd3ba027795cd57ff980311a52a575016 /users/app/helpers
parent4dffda05477f74c90197948bb6f13bedc8b2a19f (diff)
basic form added to user settings, simple model created
Diffstat (limited to 'users/app/helpers')
-rw-r--r--users/app/helpers/email_aliases_helper.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/users/app/helpers/email_aliases_helper.rb b/users/app/helpers/email_aliases_helper.rb
new file mode 100644
index 0000000..b56b068
--- /dev/null
+++ b/users/app/helpers/email_aliases_helper.rb
@@ -0,0 +1,11 @@
+module EmailAliasesHelper
+
+ def email_alias_form(options = {})
+ simple_form_for [@user, EmailAlias.new()],
+ :html => {:class => "form-horizontal email-alias form"},
+ :validate => true do |f|
+ yield f
+ end
+ end
+
+end