Nosuch code error,

I am getting this error while clicking on continue reading button,for
only one article.there is also a difference url in frontend and backend
like

https://example.com/uploads/research_article/pdf/54efa4101106f2193c000008/Even_Moderate_Visual_Impairments_degrade_drivers_ability_to_see_pedestrians_at_night.pdf
in front end

and while uploading the file is
https://vii-production.s3.amazonaws.com/uploads/research_article/pdf/54efa4181106f29c97000023/Even_Moderate_Visual_Impairments_degrade_drivers_ability_to_see_pedestrians_at_night.pdf

errror is

This XML file does not appear to have any style information

associated with it. The document tree is shown below.
NoSuchKeyThe specified key does not
exist.
uploads/research_article/pdf/54efa4101106f2193c000008/Even_Moderate_Visual_Impairments_degrade_drivers_ability_to_see_pedestrians_at_night.pdfD82A8EFA8D8FE524Js3D/1559nLIQ8CmCyIsV99bDc3sPy/jj+UHPZuaDo3g8glLysboi9Xs5UxqNt+B

app\controllers\research_controller.rb

def download
@article = ResearchArticle.where(:url_fragment =>

params[:url_fragment]).first
send_remote_carrierwave_file(@article.pdf)
end

app\views\home\index_report.html.erb

div class=‘supporting_text’>
<%= strip_tags(truncate_html(atom.summary, :length => 120)) %>

<%= render :partial => '/components/minimal_call_to_action', :locals

=> {:atom => atom, :call_to_action_text => ‘Continue Reading’,
:call_to_action_url => research_article_path(:url_fragment =>
atom.url_fragment) } %>

app\views\research\index_article.html.erb

<%= ((atom.population_categories.map {|category| "#{category.title}" } + atom.geographic_regions.map {|region| "#{region.title}" }) * ' ').html_safe %>

<% if defined?(longform) && longform %>
<% if atom.pdf.present? %>
<%= render :partial => ‘/components/minimal_call_to_action’, :locals
=> {:atom => atom, :call_to_action_url => atom.pdf_url,
:call_to_action_text => ‘Continue Reading’, :target => :_blank} %>
<% end %>
<% else %>
<%= render :partial => ‘/components/minimal_call_to_action’, :locals
=> {:atom => atom, :call_to_action_url =>
research_article_path(:url_fragment => atom.url_fragment),
:call_to_action_text => ‘Continue Reading’} %>
<% end %>

On Thu, Feb 26, 2015 at 11:33 PM, Sailatha K. [email protected]
wrote:

I am getting this error while clicking on continue reading button,for
only one article.

This XML file does not appear to have any style information

associated with it. The document tree is shown below.
NoSuchKeyThe specified key does not
exist.

uploads/research_article/pdf/54efa4101106f2193c000008/Even_Moderate_Visual_Impairments_degrade_drivers_ability_to_see_pedestrians_at_night.pdf

That’s an Amazon S3 message - you need to figure out the correct
URL for your bucket/objects.


Hassan S. ------------------------ [email protected]

twitter: @hassan
Consulting Availability : Silicon Valley or remote