开发者

Undefined Method 'original_path' Rails 3.0.4

开发者 https://www.devze.com 2023-02-14 18:18 出处:网络
I was previously using Rails \'3.0.0.rc\' but just upgraded to 3.0.4. When I import a csv file, I now see an error:

I was previously using Rails '3.0.0.rc' but just upgraded to 3.0.4. When I import a csv file, I now see an error:

undefined method `original_path' for #<ActionDispatch::Http::UploadedFile:0x00000100ae5398>

Have had a look around and can't see what I'm supposed to alter in the later version of rai开发者_运维知识库ls.

I can post files if required.

Bob


You should now use original_filename

0

精彩评论

暂无评论...
验证码 换一张
取 消