Giter VIP home page Giter VIP logo

easyxdm-rails's Introduction

easyxdm-rails

easyxdm-rails is the easiest way to include easyXDM in your rail app.

Currently includes files from : easyXDM-2.4.16.3.zip

Installation

Add this to your Gemfile:

gem 'easyxdm-rails'

Then, of course, you need to run:

bundle install

Then you can add this to one of your js manifest files (like app/assets/javascripts/application.js)

//= require easyXDM

Or if you're still in development mode, you may want to do this:

//= require 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.js )

Then you could refer to :

http://your-host/assets/easyXDM.js

Or you could create a new manifest, bookmarklet.js for example, in app/assets/javascripts and include both easyXDM.js and your code.

//= require easyXDM
//= require your-bookmarklet-code.js

Then you could get both easyXDM and your code by refering to:

http://your-host/assets/bookmarklet.js

Example

You can check the source for the easyxdm-rails-example project:

https://github.com/Octo-Labs/easyxdm-rails-example

You can also see that project deployed here:

http://easyxdm-rails-example.herokuapp.com/

You can see easyXDM included in the application.js here:

http://easyxdm-rails-example.herokuapp.com/assets/application.js

And you can see it delivered by itself here:

http://easyxdm-rails-example.herokuapp.com/assets/easyXDM.js

This project rocks and uses MIT-LICENSE.

easyxdm-rails's People

Contributors

jagthedrummer avatar

Watchers

Bogumil Wrona avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.