Browse Source

Fix landing page sign up form ignoring username field

closed-social-glitch-2
Eugen Rochko 7 years ago
parent
commit
433cb198fa
2 changed files with 4 additions and 1 deletions
  1. +3
    -0
      app/controllers/about_controller.rb
  2. +1
    -1
      app/views/about/index.html.haml

+ 3
- 0
app/controllers/about_controller.rb View File

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

+ 1
- 1
app/views/about/index.html.haml View File

@ -24,7 +24,7 @@
.screenshot-with-signup
.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|
= ff.input :username, autofocus: true, placeholder: t('simple_form.labels.defaults.username'), required: true, input_html: { 'aria-label' => t('simple_form.labels.defaults.username') }

Loading…
Cancel
Save