where to put the external css and js in rails
<p>I am just starting in rails and loading external resources like <code>css</code> and <code>js</code> has been an issue for me. Reading in few places, i found out that, <code>css</code> should be placed in <code>app/assets/stylesheets</code> and <code>js</code> inside <code>app/assets/javascripts</code>. After doing this i called my <code>css</code> and <code>js</code> in my view file like</p>

<pre><code>&lt;%= stylesheet_link_tag "&lt;&lt;path to my css&gt;&gt;" %&gt; 
</code></pre>

<p>for css and</p>

<pre><code>&lt;%= javascript_include_tag "&lt;&lt;path to my js&gt;&gt;"  %&gt;
</code></pre>

<p>and i included this line inside my <code>config/initializers/assets.rb</code></p>

<pre><code>Rails.application.config.assets.precompile += [/.*\.js/,/.*\.css/]
</code></pre>

<p>but doing this gave me some sort of compilation error. But i am not sure whether its the correct way or not to load external resource.Where are the other place that i need to change in order to load <code>css</code> and <code>js</code> and the best practice to include external resources in <code>rails</code> in terms of performance as well.</p>