diff --git a/lib/obit_widget_controller.rb b/lib/obit_widget_controller.rb deleted file mode 100644 index c9789775..00000000 --- a/lib/obit_widget_controller.rb +++ /dev/null @@ -1,6 +0,0 @@ -class ObitWidgetController< ApplicationController - before_filter {|c| c.front_end_available(@app_title)} - layout 'production' - - -end \ No newline at end of file diff --git a/vendor/built_in_modules/NewBlog/NewBlog.json b/vendor/built_in_modules/NewBlog/NewBlog.json deleted file mode 100755 index 32734d3b..00000000 --- a/vendor/built_in_modules/NewBlog/NewBlog.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "title": "NewBlog", - "version": "0.1", - "organization": "Rulingcom", - "author": "RD dep", - "intro": "A simple blog……", - "update_info": "Some info", - "create_date": "11-11-2011", - "app_pages": ["/panel/blog/front_end/"], - "widgets": ["/panel/blog/widget/latest_post","/panel/blog/widget/"] -} diff --git a/vendor/built_in_modules/NewBlog/app/controllers/panel/blog/front_end/comments_controller.rb b/vendor/built_in_modules/NewBlog/app/controllers/panel/blog/front_end/comments_controller.rb deleted file mode 100644 index 78a28b01..00000000 --- a/vendor/built_in_modules/NewBlog/app/controllers/panel/blog/front_end/comments_controller.rb +++ /dev/null @@ -1,7 +0,0 @@ -class Panel::Blog::FrontEnd::CommentsController < ApplicationController - def create - @post = Post.find(params[:post_id]) - @comment = @post.comments.create!(params[:comment]) - redirect_to panel_blog_front_end_post_url(@post) - end -end \ No newline at end of file diff --git a/vendor/built_in_modules/NewBlog/app/controllers/panel/blog/front_end/posts_controller.rb b/vendor/built_in_modules/NewBlog/app/controllers/panel/blog/front_end/posts_controller.rb deleted file mode 100644 index fd83cc34..00000000 --- a/vendor/built_in_modules/NewBlog/app/controllers/panel/blog/front_end/posts_controller.rb +++ /dev/null @@ -1,21 +0,0 @@ -class Panel::Blog::FrontEnd::PostsController < ObitWidgetController - - - def initialize - super - @app_title = NewBlog::MOUDLEAPP_TITLE - end - - # GET /posts - # GET /posts.xml - - def index - @posts = Post.all - end - - def show - @post = Post.find(params[:id]) - end - - -end diff --git a/vendor/built_in_modules/NewBlog/config/initializers/app_config.rb b/vendor/built_in_modules/NewBlog/config/initializers/app_config.rb deleted file mode 100644 index b218d15d..00000000 --- a/vendor/built_in_modules/NewBlog/config/initializers/app_config.rb +++ /dev/null @@ -1,18 +0,0 @@ -# module NewBlog -# class MyEngine < Rails::Engine -# # Add a load path for this specific Engine -# # config.autoload_paths << File.expand_path("../lib/some/path", __FILE__) -# put "ABC" -# PrototypeR4::Application::Orbit_Apps << "NewBlog" -# -# # initializer "my_engine.add_middleware" do |app| -# # app.middleware.use MyEngine::Middleware -# # end -# end -# -# end -module NewBlog - VERSION = "0.0.1" - MOUDLEAPP_TITLE = "NewBlog" -end -PrototypeR4::Application::Orbit_Apps << "NewBlog" \ No newline at end of file diff --git a/vendor/built_in_modules/NewBlog/config/routes.rb b/vendor/built_in_modules/NewBlog/config/routes.rb deleted file mode 100644 index 22cef244..00000000 --- a/vendor/built_in_modules/NewBlog/config/routes.rb +++ /dev/null @@ -1,25 +0,0 @@ -Rails.application.routes.draw do - - namespace :panel do - namespace :blog do - namespace :back_end do - root :to => "posts#index" - resources :posts - resources :comments - end - namespace :front_end do - root :to => "posts#index" - match "show/:id" => "posts#show" ,:as => :post - match "comments" => "comments#create",:as => :comments - end - namespace :widget do - root :to => "posts#index" - match "latest_post" => "posts#latest_post" - end - end - end - - # match "appfront/blog/front_end/show/:id" => "posts#frontend_show" ,:as => :appfront_blog_show - - match "/appfront/*path" => redirect("/panel/*path") -end