I am trying to connect to remote MySQL server through rails. It is able
to create table through db:migrate. but it gives following error
can not connect to local mysql server through socket
while inserting data. we are trying to insert data through rhtml form .
i.e.
controller
SubController
def r_save
@sub = Sub.new
@sub.name = params[:sub][:name]
end
@sub.save
end
plz. help me to solve the query…
we have made necessary correction in database.yml