質問編集履歴
2
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -62,8 +62,6 @@
|
|
62
62
|
|
63
63
|
<div class="search-results">
|
64
64
|
|
65
|
-
<p><%=@artists[0]%></p>
|
66
|
-
|
67
65
|
<% @artists.each do |artist| %>
|
68
66
|
|
69
67
|
<div class="search-info">
|
1
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
検索結果を表示するところまではできたのですが、そこからどのようにしてお気に入りリストに追加するのかが全くわかりません。
|
4
4
|
|
5
|
-
定番のTwitterのように、Userモデル・Postモデル・Likeモデルを関連つけるということを
|
5
|
+
定番のTwitterのように、Userモデル・Postモデル・Likeモデルを関連つけるということを考えたのですが、Postモデルに代わるモデル(Musicモデルのようなもの)がないため、どのように実装すればいいのか困っています。
|
6
6
|
|
7
7
|
アドバイスいただけると嬉しいです。
|
8
8
|
|
@@ -62,8 +62,6 @@
|
|
62
62
|
|
63
63
|
<div class="search-results">
|
64
64
|
|
65
|
-
<!-- 検索結果がないときを条件分岐で書く -->
|
66
|
-
|
67
65
|
<p><%=@artists[0]%></p>
|
68
66
|
|
69
67
|
<% @artists.each do |artist| %>
|