saberma/shopqi — Issue #194: 上传商品图片失败
Author: saberma
Created: 2011-10-18 09:16:40+00:00
State: open
Labels: 商品, 缺陷

商品没有任何图片时，上传图片前台直接报错

```ruby
The error occurred while evaluating nil.+

app/controllers/admin/photos_controller.rb:19:in `create'
```

删除图片时后台报错
```ruby
Completed 500 Internal Server Error in 125ms

ActionView::Template::Error (Missing partial products/upload_photos with {:handlers=>[:erb, :builder, :arb, :coffee, :haml], :formats=>[:js, :html], :locale=>[:cn, :cn]}. Searched in:
* "/home/saberma/Documents/shopqi/app/views"
```

需要增加相应的集成测试