07/04/23 14:22:03
フォームのセレクトの使い方がわからない。。
<p><label for="user_type">タイプ</label>
<%= select 'user', 'type', [ "タイプ1", "タイプ2", "タイプ3" ] %></p>
とすると、こんなんでます。
TypeError in users#create
Showing app/views/users/_form.rhtml where line #8 raised:
wrong argument type String (expected Module)
どなたかご教授ください。