Retrieving Blob data.

Just pass the ID of that row where you stored that pdf

<%= url_for(:action => ‘index’, :id => @pdf.id) %>