Search code examples
javajqueryruby-on-railswebserverjcrop

How to place files on a web server?


I'm new to web development, so sorry if this is very basic. I'm trying to install jCrop, an it says I need to "Place the files on your web server so you can request them from your page." How exactly do I do this? I've tried researching this but I can't find an explanation anywhere. I'm using Rails 4.0.10, if that helps.


Solution

  • If it is javascript files put it in app/assets/javascripts directory in your rails project.
    In application.js write //= require_tree .

    More info you can get here http://guides.rubyonrails.org/asset_pipeline.html