I have a ActiveRecord::Base model called "Entry". It has a file attached to it. I am uploading files using Paperclip. Now, everything is merry when I using Views and using serverside code in the views. But now, I want to use the JSON and AJAX, render the front end in pure HTML5. So, for that, I will need the URL of the file. But paperclip only stores the file name, file content type etc and I can retrieve the url of the file with,I have a ActiveRecord::Base model called "Entry