アプリでカスタムレイアウトファイルを使用するには、次のコードを使用しています。
set :views, File.dirname(__FILE__) + "/../views"
set :public_folder, File.dirname(__FILE__) + "/../public"
get '/' do
if !Db.empty? then
haml :home, {:layout => :nosetup-layout}
elsif request.ip == "127.0.0.1" then
haml :setup, {:layout => :nosetup-layout}
else
haml :nosetup, {:layout => :nosetup-layout}
end
end
レイアウトオプションに問題があるようです
次のエラーが発生します
undefined local variable or method `layout' for #<TabPlayer::Server:0x000000024509c8>
それで、私はどこで間違ったのですか?