2
votes

Im having a strange problem with paperclip in my local development environment. I seem to be able to upload an image fine because I go to my public folder and the file is indeed there and it is not broken. However, when I try to see it on my VIEW, the image is broken. When I view the source, the path leads to the EXACT file location.

So Im wondering, do I need something special to "serve" up these images in my dev environment? I have read about ImageMagick being required with Paperclip, and so I installed it. But I never did anything to make them speak to one another (unless this just happens automatically).

The exact error I am getting is:

ActionController::RoutingError (No route matches [GET] "/system/taskfiles/taskfi
les/000/000/001/original/Forum_announcement_header.jpg"):

and so if on my computer I go into my app folder, and then to /public/system/taskfiles/taskfiles......jpg the file is indeed there.

I've searched for answers for HOURS and I can find nobody having this same problem. Thanks for your help!

1

1 Answers

0
votes

Can you tell how do you include an image into your view?

I had the same problem while I wanted to download the file, but this article helped me to solve it.