Permalink
Browse files

+ clean up

  • Loading branch information...
1 parent 89c9d99 commit e06977dd2a4540d0a4bc4012e57a27d1e3ea8f43 @floere committed Jul 18, 2010
Showing with 4 additions and 10 deletions.
  1. +0 −1 padrino/app/app.rb
  2. +2 −0 padrino/app/controllers/examples.rb
  3. +2 −9 rails235/app/controllers/application_controller.rb
View
@@ -1,5 +1,4 @@
require 'view_models'
-# require File.join(File.dirname(__FILE__), '/../../gem/view_models.rb')
class Application < Padrino::Application
@@ -1,6 +1,8 @@
Application.controller :examples do
+
get :index do
@items = Items.all
render 'examples/index'
end
+
end
@@ -1,11 +1,4 @@
-# Filters added to this controller apply to all controllers in the application.
-# Likewise, all the methods added will be available for all controllers.
-
class ApplicationController < ActionController::Base
- helper :all # include all helpers, all the time
- protect_from_forgery # See ActionController::RequestForgeryProtection for details
-
- # Scrub sensitive parameters from your log
- # filter_parameter_logging :password
-
+ helper :all
+ protect_from_forgery
end

0 comments on commit e06977d

Please sign in to comment.