3
我遍歷電影集合在我的電影,像這樣:爲什麼Rails將'localhost:3000/assets'添加到我的圖像src中?
<li>
<%= link_to image_tag(movie.image.url), movie %>
<%= link_to sanitize(movie.title), movie %>
</li>
但它產生下面的HTML:
<img alt="3382" src="http://0.0.0.0:3000/assets/http//s3-eu-west-1.amazonaws.com/ramen-hut/pictures/3382.jpg?1344477777">
它把我難倒了,任何人都可以在這方面的幫助?爲什麼要加上http://0.0.0.0:3000/assets/
的網址?