質問編集履歴
1
コードの詳細を追記しました
title
CHANGED
File without changes
|
body
CHANGED
@@ -8,9 +8,13 @@
|
|
8
8
|
よろしくお願いいたします。
|
9
9
|
|
10
10
|
```Ruby
|
11
|
-
|
11
|
+
@listsは"xxx,yyy,zzz"のような形でセレクトタグの表示するようのリストが文字列で入っており、strAryにカンマ区切りで格納しております。
|
12
12
|
show.html.erb
|
13
|
+
<%= form_with(model: @userinfo, local: true, html: {id: 'inform_save', class: 'form', method: "post", autocomplete: 'off'}) do |f| %>
|
14
|
+
<% strAry = @lists.split(",") %>
|
15
|
+
<%= select_tag 'move[point]', options_for_select(strAry) %>
|
13
|
-
<%= f.submit '画面を
|
16
|
+
<%= f.submit 'ホーム画面を見る', formtarget: "_blank" %>
|
17
|
+
<% end %>
|
14
18
|
|
15
19
|
xxx_controller.rb
|
16
20
|
def move
|