Caching of css and javascript for better speed results.
This commit is contained in:
parent
05d88d6178
commit
7a77d1aa66
4 changed files with 3 additions and 39 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -7,3 +7,4 @@ config/environments/development.rb
|
||||||
capfile
|
capfile
|
||||||
config/environments/fcschinke09.rb
|
config/environments/fcschinke09.rb
|
||||||
*.swp
|
*.swp
|
||||||
|
public/**/*_cached.*
|
||||||
|
|
|
@ -3,16 +3,12 @@
|
||||||
%head
|
%head
|
||||||
%meta{"http-equiv" => "content-type", :content => "text/html;charset=UTF-8"}
|
%meta{"http-equiv" => "content-type", :content => "text/html;charset=UTF-8"}
|
||||||
%title= "FoodSoft - " + (yield(:title) or controller.controller_name)
|
%title= "FoodSoft - " + (yield(:title) or controller.controller_name)
|
||||||
= stylesheet_link_tag 'foodsoft'
|
= stylesheet_link_tag 'main', 'rails_messages', 'nav', :cache => "all_cached"
|
||||||
= stylesheet_link_tag "print", :media => "print"
|
= stylesheet_link_tag "print", :media => "print"
|
||||||
<!--[if lte IE 7]>
|
<!--[if lte IE 7]>
|
||||||
= stylesheet_link_tag 'ie_hacks'
|
= stylesheet_link_tag 'ie_hacks'
|
||||||
<![endif]-->
|
<![endif]-->
|
||||||
= javascript_include_tag 'prototype'
|
= javascript_include_tag 'prototype', 'effects', 'controls', 'application', 'ordering', :cache => "all_cached"
|
||||||
= javascript_include_tag 'effects'
|
|
||||||
= javascript_include_tag 'controls'
|
|
||||||
= javascript_include_tag 'application'
|
|
||||||
= javascript_include_tag('ordering') if (controller.controller_name == "ordering")
|
|
||||||
= yield(:head)
|
= yield(:head)
|
||||||
%body
|
%body
|
||||||
#logininfo= render :partial => 'shared/loginInfo'
|
#logininfo= render :partial => 'shared/loginInfo'
|
||||||
|
|
|
@ -1,28 +0,0 @@
|
||||||
# Settings specified here will take precedence over those in config/environment.rb
|
|
||||||
|
|
||||||
# In the development environment your application's code is reloaded on
|
|
||||||
# every request. This slows down response time but is perfect for development
|
|
||||||
# since you don't have to restart the webserver when you make code changes.
|
|
||||||
config.cache_classes = false
|
|
||||||
|
|
||||||
# Log error messages when you accidentally call methods on nil.
|
|
||||||
config.whiny_nils = true
|
|
||||||
|
|
||||||
# Show full error reports and disable caching
|
|
||||||
config.action_controller.consider_all_requests_local = true
|
|
||||||
config.action_controller.perform_caching = false
|
|
||||||
config.action_view.debug_rjs = true
|
|
||||||
|
|
||||||
# Don't care if the mailer can't send
|
|
||||||
config.action_mailer.raise_delivery_errors = false
|
|
||||||
|
|
||||||
# Configure an SMTP server for email sending in development mode:
|
|
||||||
# (cf. http://rails.rubyonrails.com/classes/ActionMailer/Base.html for info on options)
|
|
||||||
config.action_mailer.smtp_settings = {
|
|
||||||
:address => "smtp.gmx.net",
|
|
||||||
:port => 25,
|
|
||||||
:domain => "gmx.net",
|
|
||||||
:authentication => :login,
|
|
||||||
:user_name => "benjamin.meichsner@gmx.de",
|
|
||||||
:password => "ben234go"
|
|
||||||
}
|
|
|
@ -1,5 +0,0 @@
|
||||||
/* FoodSoft Style-Sheet */
|
|
||||||
|
|
||||||
@import "main.css";
|
|
||||||
@import "rails_messages.css";
|
|
||||||
@import "nav.css";
|
|
Loading…
Reference in a new issue