Configure standard rails javascript behavior
This commit is contained in:
parent
780dbc8942
commit
e647aa257f
3
Gemfile
3
Gemfile
@ -8,6 +8,9 @@ gem 'unicorn-rails'
|
|||||||
gem 'haml'
|
gem 'haml'
|
||||||
gem 'rabl'
|
gem 'rabl'
|
||||||
|
|
||||||
|
gem 'uglifier'
|
||||||
|
gem 'jquery-rails'
|
||||||
|
|
||||||
|
|
||||||
group :development, :test do
|
group :development, :test do
|
||||||
gem 'pry-rails'
|
gem 'pry-rails'
|
||||||
|
10
Gemfile.lock
10
Gemfile.lock
@ -59,6 +59,7 @@ GEM
|
|||||||
coderay (1.1.0)
|
coderay (1.1.0)
|
||||||
diff-lcs (1.2.5)
|
diff-lcs (1.2.5)
|
||||||
erubis (2.7.0)
|
erubis (2.7.0)
|
||||||
|
execjs (2.5.2)
|
||||||
factory_girl (4.5.0)
|
factory_girl (4.5.0)
|
||||||
activesupport (>= 3.0.0)
|
activesupport (>= 3.0.0)
|
||||||
factory_girl_rails (4.5.0)
|
factory_girl_rails (4.5.0)
|
||||||
@ -91,6 +92,10 @@ GEM
|
|||||||
tilt
|
tilt
|
||||||
hitimes (1.2.2)
|
hitimes (1.2.2)
|
||||||
i18n (0.7.0)
|
i18n (0.7.0)
|
||||||
|
jquery-rails (4.0.3)
|
||||||
|
rails-dom-testing (~> 1.0)
|
||||||
|
railties (>= 4.2.0)
|
||||||
|
thor (>= 0.14, < 2.0)
|
||||||
json (1.8.2)
|
json (1.8.2)
|
||||||
kgio (2.9.3)
|
kgio (2.9.3)
|
||||||
listen (2.10.0)
|
listen (2.10.0)
|
||||||
@ -197,6 +202,9 @@ GEM
|
|||||||
hitimes
|
hitimes
|
||||||
tzinfo (1.2.2)
|
tzinfo (1.2.2)
|
||||||
thread_safe (~> 0.1)
|
thread_safe (~> 0.1)
|
||||||
|
uglifier (2.7.1)
|
||||||
|
execjs (>= 0.3.0)
|
||||||
|
json (>= 1.8.0)
|
||||||
unicorn (4.9.0)
|
unicorn (4.9.0)
|
||||||
kgio (~> 2.6)
|
kgio (~> 2.6)
|
||||||
rack
|
rack
|
||||||
@ -218,6 +226,7 @@ DEPENDENCIES
|
|||||||
guard-rspec
|
guard-rspec
|
||||||
guard-spork
|
guard-spork
|
||||||
haml
|
haml
|
||||||
|
jquery-rails
|
||||||
pg
|
pg
|
||||||
pry-rails
|
pry-rails
|
||||||
rabl
|
rabl
|
||||||
@ -227,4 +236,5 @@ DEPENDENCIES
|
|||||||
rspec-rails
|
rspec-rails
|
||||||
shoulda-matchers
|
shoulda-matchers
|
||||||
spork!
|
spork!
|
||||||
|
uglifier
|
||||||
unicorn-rails
|
unicorn-rails
|
||||||
|
2
app/assets/javascripts/application.js
Normal file
2
app/assets/javascripts/application.js
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
//= require jquery
|
||||||
|
//= require jquery_ujs
|
@ -3,6 +3,8 @@
|
|||||||
%head
|
%head
|
||||||
%meta{charset: 'utf-8'}
|
%meta{charset: 'utf-8'}
|
||||||
%title scube
|
%title scube
|
||||||
|
|
||||||
|
= javascript_include_tag 'application'
|
||||||
= csrf_meta_tag
|
= csrf_meta_tag
|
||||||
|
|
||||||
%body
|
%body
|
||||||
|
Loading…
x
Reference in New Issue
Block a user