gearheads
/
mastodon
Archived
2
0
Fork 0

Fix landing page sign up form ignoring username field

gh/stable
Eugen Rochko 2017-04-02 04:10:22 +02:00
parent 3ffa27e812
commit 433cb198fa
2 changed files with 4 additions and 1 deletions

View File

@ -5,6 +5,9 @@ class AboutController < ApplicationController
def index def index
@description = Setting.site_description @description = Setting.site_description
@user = User.new
@user.build_account
end end
def more def more

View File

@ -24,7 +24,7 @@
.screenshot-with-signup .screenshot-with-signup
.mascot= image_tag 'fluffy-elephant-friend.png' .mascot= image_tag 'fluffy-elephant-friend.png'
= simple_form_for(:user, url: user_registration_path) do |f| = simple_form_for(@user, url: user_registration_path) do |f|
= f.simple_fields_for :account do |ff| = f.simple_fields_for :account do |ff|
= ff.input :username, autofocus: true, placeholder: t('simple_form.labels.defaults.username'), required: true, input_html: { 'aria-label' => t('simple_form.labels.defaults.username') } = ff.input :username, autofocus: true, placeholder: t('simple_form.labels.defaults.username'), required: true, input_html: { 'aria-label' => t('simple_form.labels.defaults.username') }