Re: [問題] 無法上傳檔案(但win下可以)
server網路目前是用學網的固定IP
apache httpd.conf
<VirtualHost *:80>
ServerName fongse.no-ip.org
DocumentRoot /home/peca/web/fongse/public
RailsEnv development
<Directory "/home/peca/web/fongse/public">
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
RailsBaseURI /
</VirtualHost>
程式碼我不確定你要哪些
model :
file_column :p_image
controller:
def new
@product = Product.new
@classify= Classify.find(:all)
end
def create
@product = Product.new(params[:product])
if @product.save
redirect_to :action => 'index'
else
redirect_to :action => 'index'
end
end
error.log
[2939:StandardApplicationPool.h:249] Cleaning idle app /home/peca/web/fongse
(PID 3287)
[2939:Application.h:274] Application 0x8362840: destroyed.
[2947:Hooks.cpp:400] Processing HTTP request: /messages
[2939:Application.h:264] Application 0x8362e80: created.
[3243:Hooks.cpp:400] Processing HTTP request: /messages/new
[3087:Hooks.cpp:400] Processing HTTP request: /messages/create
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.134.206.211
※ 編輯: fongse 來自: 220.134.206.211 (07/05 16:16)
→
07/05 16:22, , 1F
07/05 16:22, 1F
→
07/05 16:31, , 2F
07/05 16:31, 2F
→
07/05 16:32, , 3F
07/05 16:32, 3F
→
07/05 16:32, , 4F
07/05 16:32, 4F
※ 編輯: fongse 來自: 220.134.206.211 (07/05 16:37)
→
07/05 16:41, , 5F
07/05 16:41, 5F
→
07/05 16:42, , 6F
07/05 16:42, 6F
討論串 (同標題文章)
完整討論串 (本文為第 2 之 8 篇):
2
29
Ruby 近期熱門文章
PTT數位生活區 即時熱門文章