Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

cailinanne's Profile

GitHub User: cailinanne

Comments by

Avatar

Note - this episode was written around version 0.6.x of the faye gem. If you're trying to upgrade to a current version (0.8.7 at time of writing) then you'll need to do the following:

First, add the following to your Gemfile

gem 'thin'

Second, add the following to your faye.ru file right after the require statements.

Faye::WebSocket.load_adapter('thin')
Avatar

Thanks for the great intro! I particularly appreciated the part about how to exclude "admin" javascript from your "public" application. However, it seemed like you only answered half the question.

You showed how to always prevent the inclusion of files in /app/assets/javascripts/admin from the compiled application.js file for all controllers/views.

However, you didn't show how you would go about including the /admin js files when viewing an admin view. How would you do that?