Search code examples
ruby-on-railsruby-on-rails-3ruby-on-rails-3.1asset-pipeline

how do I make public assets in Rails without using the assets pipeline?


I want to bypass the assets pipeline since a very, very silly processing error is completely preventing my app from working.

For example, I want to replace this:

<%= javascript_include_tag 'jquery' %>

with something like

<script type="text/javascript" src="public/javascripts/jquery.js"></script>

How would I go about doing this? whenever I try to use this, the link just ends up pointing to a nonexistent .js file even if I actually put the file in public/javascripts


Solution

  • Remove public, correct path is /javascripts/jquery.js.