ruby初心者ですが、今回HTMLに関しての質問です。
実現したいこと
index.htmlから他のページに遷移したいです。
index.html.erbにある画像にaタグを付与し、リンク先のmovie.htmlと設定し画面を遷移したいです。
しかしルーティングエラーが出てしまいます。
発生しているエラー
Routing Error
No route matches [GET] "/movie.html"
Rails.root: /Users/takagikaname/projects/hosokawa
該当のソースコード
html
1<div class="row"> 2 <div class="container"> 3 <div class="col-md-6 col-md-offset-3"> 4 5 <div class = "pictour"><h1 class="text-center name" style ="color:#DCDCDC">Pict<span style = "color:red;">o</span>ur </h1> 6 <small style ="color:#DCDCDC; font-size:20px;"><p class="sub">Make your trip unforgettable</p></small> 7 </div> 8 <div class="row piture"> 9 <div class="col-md-6 movie"><a href="http://localhost:3000/movie.html"><img src="http://flat-icon-design.com/f/f_event_50/s512_f_event_50_2bg.png" class="img-responsive center-block" alt=""></a></div> 10 </div> 11 </div> 12 </div> 13</div>
かなり初歩的なエラーで申しわけございませんが、もし分かる方がいらっしゃれば教えていただけると幸いです。
よろしくお願いいたします。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/10/19 13:58