fastladder/fastladder — pull request #185 by laiso (2014-10-02 17:39:24+00:00)
Title: [Sign Up] Error of a blank username

![2014-10-03 2 38 12 am](https://cloud.githubusercontent.com/assets/39830/4495373/efa3712a-4a5a-11e4-9008-3006d008fedc.png)

1. Visit `/signup`
2. Click `[Sign Up]`

![2014-10-03 2 14 05 am](https://cloud.githubusercontent.com/assets/39830/4495333/8c37f0f2-4a5a-11e4-9402-0918ae699f8f.png)

```
Started POST "/members" for 127.0.0.1 at 2014-10-03 02:13:29 +0900
Processing by MembersController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"hk4zsTY0djU/GhWo76EnzJ9wwxIxaNZVmGCrTSJdmHM=", "member"=>{"username"=>"", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign Up"}
(0.4ms) begin transaction
Member Exists (0.4ms) SELECT 1 AS one FROM "members" WHERE LOWER("members"."username") = LOWER('') LIMIT 1
(0.2ms) rollback transaction
Rendered members/new.html.haml within layouts/application (4.8ms)
Completed 500 Internal Server Error in 207ms

ActionView::Template::Error (No route matches {:action=>"index", :controller=>"user", :login_name=>""} missing required keys: [:login_name]):
15:

<%= link_to "Fastladder", root_path %>

16: <% if current_member.present? -%>
17:

18:
Wellcome <%= link_to current_member.username, user_path(current_member.username) %>

19:
<%= link_to "My Feeds", reader_path %>

20:
<%= link_to "Account", account_index_path %>

21:
<%= link_to "Sign Out", logout_path %>

app/views/layouts/application.html.erb:18:in `_app_views_layouts_application_html_erb__3429277943917853170_70124438573740'
app/controllers/members_controller.rb:19:in `rescue in create'
app/controllers/members_controller.rb:7:in `create'

Rendered /Users/kstg/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.2ms)
Rendered /Users/kstg/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (2.8ms)
Rendered /Users/kstg/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (25.9ms)
```

:arrow_down:

![2014-10-03 2 12 19 am](https://cloud.githubusercontent.com/assets/39830/4495360/caeff916-4a5a-11e4-966a-554dea9d6e2e.png)