hi! thanks for the reply..
I actually tried this earlier and was able to do what I want using send_file.. Actually the scenario would be to display the files normally as if they were in public. So my code was something like this (just a pseudo code only):
:type => [// I did some logic for determining the type of object to present],
:disposition => "inline"
and in my views (let say an image):
<%= image_tag url_for(:controller => 'controller_name', :action =>'show_file_by_send') %>
The said image was shown successfully, but the problem is, when a user views the page source and see or know the URL generated by URL_FOR, the file still shows up and still accessible from the public for downloading/saving locally. Doing so does not resolve my problem.
What I actually wanted to do is let the site display this files but disallow users from seing my files when accessing it directly. Is this possible to do via RoR code?