我正在尝试访问我的localhost,并且在浏览器中出现以下错误:
You must set config.secret_key_base in your app's config
Run Code Online (Sandbox Code Playgroud)
我环顾四周,人们说你必须掏出密钥然后把它放进去,config/initializers/secret_token.rb但我的secret_token.rb文件夹中没有文件.我正在运行ruby版本ruby 2.1.2p9和rails版本Rails 4.0.8我正在按照教程,railstutorial.org如果这有助于2.2
ruby ruby-on-rails secret-key railstutorial.org ruby-on-rails-4
我知道php是服务器端的,但有没有办法让这个窗口在3秒后关闭?
<link rel="stylesheet" type="text/css" href="style1.css" />
<?php
$contact_message=$_POST['message'];
$errpage = $_POST['frompage'];
$ip=$_SERVER['REMOTE_ADDR'];
$message = "$contact_message -SENT FROM THIS IP: $ip";
mail("maxgee@me.com", "$Error Reported on: $errpage", $message);
echo "We have documented the web address of the problem and thank you for helping us improve our site!"
?>
Run Code Online (Sandbox Code Playgroud)