File tree 7 files changed +22
-29
lines changed
7 files changed +22
-29
lines changed Original file line number Diff line number Diff line change @@ -4,15 +4,13 @@ gem 'rails'
4
4
5
5
gem 'sqlite3'
6
6
7
- group :assets do
8
- gem 'sass-rails' , '~> 3.2.3'
9
- gem 'coffee-rails' , '~> 3.2.1'
7
+ gem 'sass-rails'
8
+ gem 'coffee-rails'
10
9
11
- # See https://github.com/sstephenson/execjs#readme for more supported runtimes
12
- # gem 'therubyracer', :platform => :ruby
10
+ # See https://github.com/sstephenson/execjs#readme for more supported runtimes
11
+ # gem 'therubyracer', :platform => :ruby
13
12
14
- gem 'uglifier' , '>= 1.0.3'
15
- gem 'anjlab-bootstrap-rails' , '>= 2.1' , :require => 'bootstrap-rails'
16
- gem 'bootstrap-wysihtml5-rails' , :path => '../'
17
- gem 'jquery-rails'
18
- end
13
+ gem 'uglifier'
14
+ gem 'anjlab-bootstrap-rails' , '>= 2.1' , :require => 'bootstrap-rails'
15
+ gem 'bootstrap-wysihtml5-rails' , :path => '../'
16
+ gem 'jquery-rails'
Original file line number Diff line number Diff line change 1
1
< h1 > Home#index</ h1 >
2
2
< p > Find me in app/views/home/index.html.erb</ p >
3
3
4
- < textarea id ="some-textarea " placeholder ="Enter text ... "> </ textarea >
4
+ < textarea id ="some-textarea " style =" width: 810px; height: 200px; " placeholder ="Enter text ... "> </ textarea >
5
5
6
6
< script type ="text/javascript ">
7
7
$ ( '#some-textarea' ) . wysihtml5 ( {
11
11
"html" : true , //Button which allows you to edit the generated HTML. Default false
12
12
"link" : true , //Button to insert a link. Default true
13
13
"image" : true , //Button to insert an image. Default true,
14
- "color" : true //Button to change color of font
14
+ "color" : true //Button to change color of font
15
15
} ) ;
16
16
</ script >
Original file line number Diff line number Diff line change 4
4
5
5
if defined? ( Bundler )
6
6
# If you precompile assets before deploying to production, use this line
7
- Bundler . require ( *Rails . groups ( :assets => %w( development test ) ) )
7
+ # Bundler.require(*Rails.groups(:assets => %w(development test)))
8
8
# If you want your assets lazily compiled in production, use this line
9
- # Bundler.require(:default, :assets , Rails.env)
9
+ Bundler . require ( :default , Rails . env )
10
10
end
11
11
12
12
module Testapp
@@ -48,7 +48,7 @@ class Application < Rails::Application
48
48
# This will create an empty whitelist of attributes available for mass-assignment for all models
49
49
# in your app. As such, your models will need to explicitly whitelist or blacklist accessible
50
50
# parameters by using an attr_accessible or attr_protected declaration.
51
- config . active_record . whitelist_attributes = true
51
+ # config.active_record.whitelist_attributes = true
52
52
53
53
# Enable the asset pipeline
54
54
config . assets . enabled = true
Original file line number Diff line number Diff line change 7
7
config . cache_classes = false
8
8
9
9
# Log error messages when you accidentally call methods on nil.
10
- config . whiny_nils = true
10
+ # config.whiny_nils = true
11
11
12
12
# Show full error reports and disable caching
13
13
config . consider_all_requests_local = true
14
14
config . action_controller . perform_caching = false
15
15
16
16
# Don't care if the mailer can't send
17
17
config . action_mailer . raise_delivery_errors = false
18
-
18
+
19
+ config . eager_load = false
20
+
19
21
# config.action_controller.asset_host = 'testing'
20
22
21
23
# Print deprecation notices to the Rails logger
25
27
config . action_dispatch . best_standards_support = :builtin
26
28
27
29
# Raise exception on mass assignment protection for Active Record models
28
- config . active_record . mass_assignment_sanitizer = :strict
29
-
30
- # Log the query plan for queries taking more than this (works
31
- # with SQLite, MySQL, and PostgreSQL)
32
- config . active_record . auto_explain_threshold_in_seconds = 0.5
30
+ # config.active_record.mass_assignment_sanitizer = :strict
33
31
34
32
# Do not compress assets
35
33
config . assets . compress = false
Original file line number Diff line number Diff line change 18
18
config . assets . compile = false
19
19
20
20
config . serve_static_assets = true
21
-
21
+
22
22
# Generate digests for assets URLs
23
23
config . assets . digest = true
24
24
62
62
63
63
# Send deprecation notices to registered listeners
64
64
config . active_support . deprecation = :notify
65
-
66
- # Log the query plan for queries taking more than this (works
67
- # with SQLite, MySQL, and PostgreSQL)
68
- # config.active_record.auto_explain_threshold_in_seconds = 0.5
69
65
end
Original file line number Diff line number Diff line change 12
12
config . static_cache_control = "public, max-age=3600"
13
13
14
14
# Log error messages when you accidentally call methods on nil
15
- config . whiny_nils = true
15
+ # config.whiny_nils = true
16
16
17
17
# Show full error reports and disable caching
18
18
config . consider_all_requests_local = true
30
30
config . action_mailer . delivery_method = :test
31
31
32
32
# Raise exception on mass assignment protection for Active Record models
33
- config . active_record . mass_assignment_sanitizer = :strict
33
+ # config.active_record.mass_assignment_sanitizer = :strict
34
34
35
35
# Print deprecation notices to the stderr
36
36
config . active_support . deprecation = :stderr
Original file line number Diff line number Diff line change 5
5
# Make sure the secret is at least 30 characters and all random,
6
6
# no regular words or you'll be exposed to dictionary attacks.
7
7
Testapp ::Application . config . secret_token = '412cfb8d8bc8bdf1ebd1d91b077635cd9eaae339ee4f2fd2bd8882172fda7ac99a34e80974328a567ba6764c5dc2febbda4075ef9cae80baa29ba7632ab51ee9'
8
+ Testapp ::Application . config . secret_key_base = 'new secret key base'
You can’t perform that action at this time.
0 commit comments