[Rails] Rails 3.1 assets path for video player Flash script 'player.swf'

2011-09-27 Thread Erwin
I was using a Flash video player within a previous Rails version app Moving to Rails 3.1.0 , I dob't know where I should put the script ... I tried to move it into an app asset sub-directory assets - jwplayer - - player.swf but this raises an error NetworkError: 406 Not Acceptable -

[Rails] Rails 3.1 assets path

2011-06-07 Thread paranormal
Hi all. I need directly access to the file. Like this: File.read(File.join(Rails.root,public/stylesheets/head.css)) Because I use https://github.com/mileszs/wicked_pdf/blob/master/lib/wicked_pdf_helper.rb How can I get the real path name of file, where I use assets. I need not assets_path. I