What’s the correct way to embed a flash swf in a rails view?
I see:
image_tag and video_tag but I don’t see swf_tag
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you are using the pipeline then you must use the rails asset helpers to access the file. This is because the file will get a fingerprint added to it in production, so if you hard code it, it won’t work.
You can put SWFs in their own directory as outlined in this answer, then do this in the view: