I have put fancybox (jquery plugin ) inside the assets/javascripts/includes/jquery.fancybox-1.3.4
Before this location i also tried to put it under /vendor/assets/stylesheets/jquery directory.
I am getting this weird error & why isn’t rails able to get the particular file when its right there.
————- Development Log —————-
Started GET “/vendor/assets/stylesheets/jquery.fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4.pack.js” for 127.0.0.1 at 2011-11-25 13:30:42 -0800
ActionController::RoutingError (No route matches [GET] “/vendor/assets/stylesheets/jquery.fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4.pack.js”):
Rendered /Users/jayparteek/.rvm/gems/ruby-1.9.2-head@default/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.5ms)
————– Log 2 ————————-
ActionController::RoutingError (No route matches [GET] “/vendor/assets/javascripts/fancybox-1.3.4/jquery.fancybox-1.3.4.pack.js”):
Simply use the fancy box gem https://github.com/hecticjeff/fancybox-rails