一 06
2011年一月6日,星期四,下午 1:01 | 分类:
Advanced Rails |
给我留言 |
一时想不起来如何拼写了,写在这里作为笔记。 has_attached_file :icon, :styles => { :original => “74×74″ }, # 将paperclip上传原图做大小限制 :url => “/:class/:attachment/:id/:style_:basename.:extension”, :path => “:rails_root/public/:class/:attachment/:id/:style_:basename.:extension”, :default_url => “/images/sample_icon.png”
(阅读更多精彩内容...)
一 02
2011年一月2日,星期日,下午 9:09 | 分类:
default |
给我留言 |
/Library/Ruby/Site/1.8/rubygems/remote_fetcher.rb:176:in `fetch_path’: timed out (http://rubygems.org/quick/Marshal.4.8/mail-2.2.13.gemspec.rz) (Gem::RemoteFetcher::FetchError) 先把Gemfile.lock中的 mail (2.2.6.1) 改成 mail (2.2.5) 然后bundle update 一下 (这是参照 http://stackoverflow.com/questions/4574176/heroku-push-rejected-failed-to-install-gems-via-bundler 的意见) 这时mail的一行已经改为 mail(2.2.13) 然后再次部署,搞定。yeah!! ps:我的rails是3.0.0,这是一个小项目,页面是客户设计的,很漂亮。为了保持磨沙的效果,png比较大,以后再去优化图片吧。
(阅读更多精彩内容...)