Sha256: 8c315bcd05e80baf3002954bf8b8d666e3627bd31ffb9d9ef1818de8f5933d5b

Contents?: true

Size: 750 Bytes

Versions: 44

Compression:

Stored size: 750 Bytes

Contents

#assets/javascript/application.rb

# only put files that are browser side only.

require 'components'  # this pulls in your components from the components.rb manifest file  
require 'react_ujs'   # this is required on the client side only and is part of the prerendering system

# require any thing else that is browser side only, typically  these 4 are all you need.  If you
# have client only sections of code that that do not contain requires wrap them in 
# if React::IsomorphicHelpers.on_opal_client? blocks.  

require 'jquery'           # you need both these files to access jQuery from Opal
require 'opal-jquery'      # they must be in this order, and after the components require
require 'browser/interval' # for #every, and #after methods

Version data entries

44 entries across 44 versions & 2 rubygems

Version Path
reactive-ruby-0.7.8 example/rails-tutorial/app/assets/javascripts/application.rb
reactive-ruby-0.7.7 example/rails-tutorial/app/assets/javascripts/application.rb
reactive-ruby-0.7.6 example/rails-tutorial/app/assets/javascripts/application.rb
reactive-ruby-0.7.5 example/rails-tutorial/app/assets/javascripts/application.rb