前提・実現したいこと
Ruby on RailsでWebサイトの開発をしています。
Gitはbitbucketを使用しています。
Web上で広告を表示したいです。
発生している問題・エラーメッセージ
問題点は、広告が表示されない点です。
Web上で見ると、何も表示されていないのですが、
bitbucketよりcloneをして、localhost:3000上で見ると、ちゃんと広告が
表示されています。
コードは何も変更しておらず、ローカルにcloneしただけです。
該当のソースコード(slim)
- cache(cache_key_for_category(:side_popular), expires_in: 10.minutes) do
.box
h3= link_to t("人気のスポット"), "#"
ol.ranking
- if @place
- ranks = Place.published.where(small_category_id: @place.small_category_id).order('views_in_week desc').limit(5)
- elsif @small_category
- ranks = Place.published.where(small_category_id: @small_category.id).order('views_in_week desc').limit(5)
- elsif @category
- ranks = Place.published.where(category_id: @category.id).order('views_in_week desc').limit(5)
- else
- ranks = Place.published.order('views_in_week desc').limit(5)
- ranks.each_with_index do |place, idx|
li( class=( "rank#{idx + 1}" ) )
label.rank
- if place.images[0]
.thumb
= image_tag place.images[0].image.url(:thumbnail)
= link_to place_path(place, :ranking) do
= truncate(place.ja_name, length: 28, omission: "")
.text-muted= place.copy
.clearfix
.box.box-center.box-with-top
javascript:
imobile_pid = "29820";
imobile_asid = "1016744";
imobile_width = 200;
imobile_height = 200;
script src="http://spdeliver.i-mobile.co.jp/script/ads.js?20101001"
回答1件
あなたの回答
tips
プレビュー