I am trying to use asset_path in my controller to generate the path for a  pdf that is placed in my assets/data/ directory. Is this obsolete in Rails 4? 
Here is my controller code that throws the error:
  def beg_1
    File.open(asset_path("ee-beg-1.pdf"), 'r') do |f|
      send_data f.read.force_encoding('BINARY'), :filename => "ee-beg-1.pdf", :type => "application/pdf"
    end
  end  
 
     
    