图片下传插件Acts As Attachment

图片上传插件Acts As Attachment开始也是下载 在项目目录下面运行? ? ? ? ? ? ##?app/controllers/dvd_cov

图片上传插件Acts As Attachment

开始也是下载
在项目目录下面运行

?图片下传插件Acts As Attachment图片下传插件Acts As Attachment
    ?图片下传插件Acts As Attachment图片下传插件Acts As Attachment
      ?图片下传插件Acts As Attachment图片下传插件Acts As Attachment
        ?图片下传插件Acts As Attachment图片下传插件Acts As Attachment
          ?图片下传插件Acts As Attachment图片下传插件Acts As Attachment
            ?图片下传插件Acts As Attachment图片下传插件Acts As Attachment
              ##?app/controllers/dvd_covers_controller.rb ??class?DvdCoversController?<?ApplicationController ?? ??def?index ?? ????@dvd_covers?=?DvdCover.find(:all) ?? ??end?? ????def?new?? ????@dvd_cover?=?DvdCover.new?? ??end?? ????def?show ?? ????@dvd_cover?=?DvdCover.find?params[:id] ?? ??end?? ????def?create ?? ????@dvd_cover?=?DvdCover.create!?params[:dvd_cover] ?? ????redirect_to?:action?=>?'show',?:id?=>?@dvd_cover?? ??rescue?ActiveRecord::RecordInvalid ?? ????render?:action?=>?'new'?? ??end?? end?? ??##?app/views/dvd_covers/index.rhtml ?? <h1>DVD?Covers</h1> ????<ul> ??<%?@dvd_covers.each?do?|dvd_cover|?-%> ?? ??<li><%=?link_to?dvd_cover.filename,?:action?=>?'show',?:id?=>?dvd_cover?%></li> ?? <%?end?-%> ?? </ul> ????<p><%=?link_to?'New',?:action?=>?'new'?%></p> ?? ??##?app/views/dvd_covers/new.rhtml ?? <h1>New?DVD?Cover</h1> ????<%?form_for?:dvd_cover,?:url?=>?{?:action?=>?'create'?},?:html?=>?{?:multipart?=>?true?}?do?|f|?-%> ?? ??<p><%=?f.file_field?:uploaded_data?%></p> ?? ??<p><%=?submit_tag?:Create?%></p> ??<%?end?-%> ?? ??##?app/views/dvd_covers/show.rhtml ?? <p><%=?@dvd_cover.filename?%></p> ?? <%=?image_tag?@dvd_cover.public_filename,?:size?=>?@dvd_cover.image_size?%>??