Şimdiden teşekkürler.
Öğrendiğim şekli ile şu adımları uyguladım:
ssh ile bağlanıp şu komutla projemi oluşturdum;
ana dizinde;
rails deneme
yazıp ,
ln -s ~/deneme/public ~/public_html/deneme
yönlendirmesini d eyaptım ama
www.siteadi.com/deneme
yazdığımda tuhaftır
The requested URL /deneme was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
hatası alıyorum.
-----------------
ilgili dosyaları app içindeki contorlers ve views klasörleri içine attım
-----------------------------------------------------
app/controllers/
Dosya adi: deneme_controller.rb
-----------------------------
class denemeController < ApplicationController
def index
@zaman= Time.now
end
end
---------------------------
app/views/deneme/
Dosya adi:index.rhtml
-----------------------
<html>
<head>
<title>Merhaba</title>
</head>
<body>
<h1>Merhaba</h1>
<p>Saat suan: <%= @zaman %>
</body>
</html>