
RubyOnRails
文章平均质量分 65
爱因斯丹
干一行,爱一行,专一行
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
RubyOnRails 学习网站
ActiveRecord 验证和回调 http://hi.baidu.com/haifreeidea/blog/category/Rails/index/0 RubyOnRails 数据库操作 http://it.chinawin.net/softwaredev/article-e910.html RubyOnRails(非常好的网站,语法学习) http:原创 2012-05-31 17:18:42 · 824 阅读 · 0 评论 -
RubyOnRails 发送 mail 带附件
content_type "multipart/mixed" #邮件里带内容和附件 part "multipart/alternative" do |alternative| alternative.part "text/html" do |html| html.body = render_message("test.text.html",原创 2012-06-01 09:36:04 · 872 阅读 · 0 评论 -
RubyOnRails 文件下载
页面: <%= link_to @filename, {:controller => 'test', :action => 'download', :filename => @filename} %>controller: def download unless params[:filename].blank? send_file RAILS_RO原创 2012-06-01 09:51:49 · 649 阅读 · 0 评论