easyxdm-rails is the easiest way to include easyXDM in your rail app.
Currently includes files from : easyXDM-18.104.22.168.zip
Add this to your Gemfile:
Then, of course, you need to run:
//= require easyxdm-rails/easyXDM
Or if you're still in development mode, you may want to do this:
//= require easyxdm-rails/easyXDM.debug
Since you're using easyXDM, there's a good chance that you need to be able to serve easyXDM.js by itself, or in conjuction with your other scripts.
To serve it by itself you could add this to config/environments/production.rb
config.assets.precompile += %w( easyxdm-rails/easyXDM.js )
Then you could refer to :
//= require easyxdm-rails/easyXDM //= require your-bookmarklet-code.js
Then you could get both easyXDM and your code by refering to:
You can check the source for the easyxdm-rails-example project:
You can also see that project deployed here:
You can see easyXDM included in the application.js here:
And you can see it delivered by itself here:
This project rocks and uses MIT-LICENSE.