mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-20 09:10:12 +01:00
Installing jrails
This commit is contained in:
parent
66de0f9fd8
commit
be43b3ded8
20 changed files with 1269 additions and 0 deletions
15
vendor/plugins/jrails/rails/init.rb
vendored
Normal file
15
vendor/plugins/jrails/rails/init.rb
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# The following options can be changed by creating an initializer in config/initializers/jrails.rb
|
||||
|
||||
# jRails uses jQuery.noConflict() by default
|
||||
# to use the default jQuery varibale, use:
|
||||
# ActionView::Helpers::PrototypeHelper::JQUERY_VAR = '$'
|
||||
|
||||
# ActionView::Helpers::PrototypeHelper:: DISABLE_JQUERY_FORGERY_PROTECTION
|
||||
# Set this to disable forgery protection in ajax calls
|
||||
# This is handy if you want to use caching with ajax by injecting the forgery token via another means
|
||||
# for an example, see http://henrik.nyh.se/2008/05/rails-authenticity-token-with-jquery
|
||||
# ActionView::Helpers::PrototypeHelper::DISABLE_JQUERY_FORGERY_PROTECTION = true
|
||||
|
||||
ActionView::Helpers::AssetTagHelper::JAVASCRIPT_DEFAULT_SOURCES = ['jquery','jquery-ui','jrails']
|
||||
ActionView::Helpers::AssetTagHelper::reset_javascript_include_default
|
||||
require 'jrails'
|
||||
Loading…
Add table
Add a link
Reference in a new issue