我通过M Hartl的教程来了解Ruby on Rails.
我已经完成了第6章和git pushgit-hub的工作,但是我收到了这个错误:
rene @ Linux-Ubuntu:〜/ rails_projets/sample_app $ git push Permission denied(publickey).
致命:远程端意外挂断
我重新安装了一个新的公钥作为Help-Git指令
debug1: Next authentication method: publickey
debug1: Offering DSA public key: rene@Linux-Ubuntu
debug1: Authentications that can continue: publickey
debug1: Offering RSA public key: rene@Linux-Ubuntu
debug1: Authentications that can continue: publickey
debug1: Trying private key: [~/.ssh/id_rsa]
debug1: Trying private key: [~/.ssh/id_dsa]
debug1: No more authentication methods to try.
Permission denied (publickey).
Run Code Online (Sandbox Code Playgroud)
我在存储库中有文件:
rene @ Linux-Ubuntu:〜/ .ssh $ ls
ak.bak config id_dsa id_dsa.pub id_rsa …
如何将法语字符放在Ruby文件中?这是一个错误:
SyntaxError in ArticlesController#show
/.../app/controllers/articles_controller.rb:47: invalid multibyte char (US-ASCII)
/.../app/controllers/articles_controller.rb:47: invalid multibyte char (US-ASCII)
/.../app/controllers/articles_controller.rb:47: syntax error, unexpected $end, expecting '}'
...@article, notice: 'Article a été créé avec succes.' }
Run Code Online (Sandbox Code Playgroud)
在HTML文件中,将其置于头部并且重音符号有效:
<!DOCTYPE html>
<head>
<meta http-equiv="content-type" content="text/html"; charset="utf8">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Style-Type" content="text/css">
<!-- ... autres mentions de l'entête de fichier ... -->
</head>
Run Code Online (Sandbox Code Playgroud)