質問編集履歴
1
ソースの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -67,3 +67,105 @@
|
|
67
67
|
どういうことなのでしょうか。。。
|
68
68
|
|
69
69
|
ご教授願います。
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
以下がbundle exec rake routesの結果です
|
76
|
+
|
77
|
+
```
|
78
|
+
|
79
|
+
Prefix Verb URI Pattern Controller#Action
|
80
|
+
|
81
|
+
user_new GET /user/new(.:format) user#new
|
82
|
+
|
83
|
+
root GET / satic_pages#home
|
84
|
+
|
85
|
+
help GET /help(.:format) satic_pages#help
|
86
|
+
|
87
|
+
about GET /about(.:format) satic_pages#about
|
88
|
+
|
89
|
+
contact GET /contact(.:format) satic_pages#contact
|
90
|
+
|
91
|
+
signup GET /signup(.:format) user#new
|
92
|
+
|
93
|
+
user_index GET /user(.:format) user#index
|
94
|
+
|
95
|
+
POST /user(.:format) user#create
|
96
|
+
|
97
|
+
new_user GET /user/new(.:format) user#new
|
98
|
+
|
99
|
+
edit_user GET /user/:id/edit(.:format) user#edit
|
100
|
+
|
101
|
+
user GET /user/:id(.:format) user#show
|
102
|
+
|
103
|
+
PATCH /user/:id(.:format) user#update
|
104
|
+
|
105
|
+
PUT /user/:id(.:format) user#update
|
106
|
+
|
107
|
+
DELETE /user/:id(.:format) user#destroy
|
108
|
+
|
109
|
+
```
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
次がapp/view/user/new.html.erbです
|
114
|
+
|
115
|
+
```ここに言語を入力
|
116
|
+
|
117
|
+
<% provide(:title,'Sign up') %>
|
118
|
+
|
119
|
+
<h1>新規登録</h1>
|
120
|
+
|
121
|
+
<p>新しくアカウントつくるとこやで。</p>
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
<div class="row">
|
126
|
+
|
127
|
+
<div class="col-md-6 col-md-offset-3">
|
128
|
+
|
129
|
+
<%= form_for(@user) do |f| %>
|
130
|
+
|
131
|
+
<%= render 'shared/error_messages' %>
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
<%= f.label :name %>
|
136
|
+
|
137
|
+
<%= f.text_field :name, class: 'form-control' %>
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
<%= f.label :email %>
|
142
|
+
|
143
|
+
<%= f.email_field :email, class: 'form-control' %>
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
<%= f.label :password %>
|
148
|
+
|
149
|
+
<%= f.password_field :password, class: 'form-control' %>
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
<%= f.label :password_confirmation, "Confirmation" %>
|
154
|
+
|
155
|
+
<%= f.password_field :password_confirmation, class: 'form-control' %>
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
<%= f.submit "Create my account", class: "btn btn-primary" %>
|
160
|
+
|
161
|
+
<% end %>
|
162
|
+
|
163
|
+
</div>
|
164
|
+
|
165
|
+
</div>
|
166
|
+
|
167
|
+
```
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
お願いします。
|