How to render css files placed external(outside war) to the application(in my local file path) to be rendered in the response….
How to render css files placed external(outside war) to the application(in my local file
Share
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.
From your comments I guess you are using jruby and assuming you are running Rails 3.1 you should read about the asset pipeline. You can learn about it here
You can also setup Rails to use an outsidea asset server by using this:
in the appropriate environment file
For simply loading css files outside your rails directories you can point stylesheet_link_tag to an absolute url like this: