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.29 example/rails-tutorial/app/assets/javascripts/application.rb
reactive-ruby-0.7.28 example/rails-tutorial/app/assets/javascripts/application.rb
reactive-ruby-0.7.27 example/rails-tutorial/app/assets/javascripts/application.rb
reactive-ruby-0.7.26 example/rails-tutorial/app/assets/javascripts/application.rb
reactive-ruby-0.7.25 example/rails-tutorial/app/assets/javascripts/application.rb
reactive-ruby-0.7.24 example/rails-tutorial/app/assets/javascripts/application.rb
reactive-ruby-0.7.23 example/rails-tutorial/app/assets/javascripts/application.rb
reactive-ruby-0.7.22 example/rails-tutorial/app/assets/javascripts/application.rb
reactive-ruby-0.7.21 example/rails-tutorial/app/assets/javascripts/application.rb
reactive-ruby-0.7.20 example/rails-tutorial/app/assets/javascripts/application.rb
reactive-ruby-0.7.19 example/rails-tutorial/app/assets/javascripts/application.rb
reactive-ruby-0.7.18 example/rails-tutorial/app/assets/javascripts/application.rb
reactive-ruby-0.7.17 example/rails-tutorial/app/assets/javascripts/application.rb
reactive-ruby-0.7.16 example/rails-tutorial/app/assets/javascripts/application.rb
reactive-ruby-0.7.15 example/rails-tutorial/app/assets/javascripts/application.rb
reactive-ruby-0.7.14 example/rails-tutorial/app/assets/javascripts/application.rb
reactive-ruby-0.7.13 example/rails-tutorial/app/assets/javascripts/application.rb
reactive-ruby-0.7.12 example/rails-tutorial/app/assets/javascripts/application.rb
reactive-ruby-0.7.11 example/rails-tutorial/app/assets/javascripts/application.rb
reactive-ruby-0.7.10 example/rails-tutorial/app/assets/javascripts/application.rb