diff --git a/.gitignore b/.gitignore index ef59d6f..cc9b953 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ *.sqlite3 *.log +*.*~ diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 5694a6b..3235d6d 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -1,6 +1,8 @@ + <%= csrf_meta_tag %> + <%= javascript_include_tag "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js", "http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js", :defaults %> diff --git a/config/environment.rb b/config/environment.rb index f3e6026..bba6b67 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -27,7 +27,7 @@ Rails::Initializer.run do |config| config.gem 'faker' config.gem 'mysql' config.gem "matthuhiggins-foreigner", :lib => "foreigner", :source => "http://gemcutter.org" - + config.gem 'rack-validate' # Only load the plugins named here, in the order given (default is alphabetical). # :all can be used as a placeholder for all plugins not explicitly named # config.plugins = [ :exception_notification, :ssl_requirement, :all ] @@ -42,8 +42,9 @@ Rails::Initializer.run do |config| # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone. # Run "rake -D time" for a list of tasks for finding time zone names. config.time_zone = 'UTC' - + require 'rack-validate' + config.middleware.use Rack::Validate # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}')] # config.i18n.default_locale = :de -end \ No newline at end of file +end diff --git a/public/stylesheets/style.css b/public/stylesheets/style.css index 7f5c37d..9067560 100644 --- a/public/stylesheets/style.css +++ b/public/stylesheets/style.css @@ -4,7 +4,7 @@ } h1 { - padding-top:10px + margin-top:10px } div.flash {