我知道这个问题并不新鲜,我一直在寻找答案,但是到目前为止,对我来说没有任何作用。
问题是每次我尝试使用a git clone或git pullcommand时,都会收到以下错误:
error: Failed connect to github.com:8080; Connection refused while accessing https://github.com/mxcl/homebrew.git/info/refs?service=git-upload-pack
fatal: HTTP request failed
Run Code Online (Sandbox Code Playgroud)
(这里是https://github.com/mxcl/homebrew.git/info/refs?service=git-upload-pack,但这只是一个例子,我遇到了所有网址都存在此问题)
我无法弄清楚这个问题,即使它看起来并不复杂......
我想制作一个表单来在我的rails应用程序中发送电子邮件,但这个不起作用.我收到以下错误:
TypeError in MessagesController#create:
#<Message content: "test", email: "test@test.fr", name: "test"> is not a symbol
发生错误: app/controllers/messages_controller.rb:10:in 'create'
我是messages_controller:
class MessagesController < ApplicationController
def new
@message = Message.new
end
def create
@message = Message.new(params[:message])
if @message.valid?
Messenger.send(@message).deliver
redirect_to root_url, notice: "Message sent! Thank you for contacting us."
else
render "new"
end
end
end
Run Code Online (Sandbox Code Playgroud)
形式new.html.erb:
<%= form_for @message do |f| %>
<%= f.text_field :name %>
<%= f.text_field :email %>
<%= f.text_area :content, :rows => 5 …Run Code Online (Sandbox Code Playgroud)