I have a site with the Slidedeck jquery plugin on it. When I serve it locally it works just fine and looks great. After I push it to Heroku, though, it doesn't work at all.
I'm including all my files using sprockets, and I also use a gem that takes care of themes (themes_for_rails). I have an initializer in config:
ThemesForRails.config do |config|
# themes_dir is used to allow ThemesForRails to list available themes. It is not used to resolve any paths or routes.
config.themes_dir = ":root/app/assets/themes"
# assets_dir is the path to your theme assets.
config.assets_dir = ":root/app/assets/themes/halo"
# views_dir is the path to your theme views
config.views_dir = ":root/app/views/themes/halo"
# themes_routes_dir is the asset pipeline route base.
# Because of the way the asset pipeline resolves paths, you do
# not need to include the 'themes' folder in your route dir.
#
# for example, to get application.css for the default theme,
# your URL route should be : /assets/default/stylesheets/application.css
config.themes_routes_dir = "assets"
end
This is in my application.js:
//= require jquery
//= require jquery_ujs
//= require_tree .
//= require_tree ../themes/halo/javascripts
Maybe my problem is that I am using relative paths in Heroku. I don't know exactly how to do absolute paths, though.