アニメーションの下にあるhtmlボタンを押すと、Flashアニメーションを全画面表示したいと思います。私は../views/layout/viewer.rhtmlを持っています(これはすべてのメニューを読み込みます)。私は./views/layout/fullscreen.rhtmlを持っています(このメニューには100%の幅と100%の高さとフラッシュオブジェクトしかありません)。私はJavascriptメソッドを避けたいと思います。Ruby- URLを変更せずにボタンのリリースのレイアウトを変更
私はshow_controllerを持っている:
layout "viewer"
def index
h = Histoire.find_by_label(params[:story_name])
# Checks if current_user has a subscription which allows the story whose ID is passed by param to be seen
if h.price != 0 && (current_user.nil? || current_user.abonnement.histoires.delete_if{|histoire| histoire.label != params[:story_name]}.length == 0)
flash[:notice] = "Sorry, your subscription doesn't allow you to access this story, please contact sales service"
redirect_to index_url
else
@histoire = Histoire.find_by_label(params[:story_name])
render :action => :show
end
end
私はフラッシュオブジェクトを持っている:
私のフラッシュアニメーションを実行するために固定されたURLを持っている必要があります:/ショー/ Story_Name、現在のレイアウトはビューアです。フルスクリーンボタンを押すと、「ビューア」から「フルスクリーン」にレイアウトを変更したいと思っています。
ボタンを押したときにレイアウトをビューアからフルスクリーンに変更する方法はありますか?
私はこの問題で初心者です。私を助ける人におかげさまであります。
あなたの答えとあなたのアドバイスについては、 。 – Pierre