I have a fyle object which is using paperclip plugin to store filz.
I want of ofcourse download the file from the application.
Now the problem I face is my application is not being able to find the
- I have actionpack in ruby gems and I can see the send_file function
- I have done require ‘actionpack’ in the file where i m calling
- Stil i m getting error - undefined method `send_file’
Note: I have presently defined send_file in Fyle model.
send_file filz.url, :type=> filz_content_type
I am presently on Mongrel
Does any one know about send_file method and how and where should it