├── .gitignore ├── .hound.yml ├── README.md ├── simpleapp ├── .gitignore ├── Gemfile ├── Gemfile.lock ├── README.md ├── app │ ├── controllers │ │ ├── friends_controller.rb │ │ ├── products_controller.rb │ │ └── welcome_controller.rb │ ├── helpers │ │ └── helper.rb │ ├── models │ │ └── product.rb │ └── views │ │ ├── friends │ │ ├── _sidebar.html.erb │ │ ├── index.html.erb │ │ └── show.html.erb │ │ ├── layouts │ │ └── application.html.erb │ │ ├── products │ │ ├── index.html.erb │ │ └── show.html.erb │ │ └── welcome │ │ └── index.html.erb ├── config.ru ├── config │ ├── application.rb │ └── database.yml └── public │ ├── css │ ├── bootstrap-theme.css │ ├── bootstrap-theme.css.map │ ├── bootstrap-theme.min.css │ ├── bootstrap.css │ ├── bootstrap.css.map │ ├── bootstrap.min.css │ └── theme.css │ ├── fonts │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.svg │ ├── glyphicons-halflings-regular.ttf │ └── glyphicons-halflings-regular.woff │ └── js │ ├── bootstrap.js │ ├── bootstrap.min.js │ ├── ie-emulation-modes-warning.js │ └── ie10-viewport-bug-workaround.js └── srbmvc ├── .gitignore ├── Gemfile ├── LICENSE.txt ├── README.md ├── Rakefile ├── lib ├── srbmvc.rb └── srbmvc │ ├── controller.rb │ ├── helpers.rb │ ├── routing.rb │ ├── utils.rb │ └── version.rb └── srbmvc.gemspec /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BoZhuM/learnmvc/HEAD/.gitignore -------------------------------------------------------------------------------- /.hound.yml: -------------------------------------------------------------------------------- 1 | ruby: 2 | enabled: true 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BoZhuM/learnmvc/HEAD/README.md -------------------------------------------------------------------------------- /simpleapp/.gitignore: -------------------------------------------------------------------------------- 1 | db/*.sqlite3 -------------------------------------------------------------------------------- /simpleapp/Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BoZhuM/learnmvc/HEAD/simpleapp/Gemfile -------------------------------------------------------------------------------- /simpleapp/Gemfile.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BoZhuM/learnmvc/HEAD/simpleapp/Gemfile.lock -------------------------------------------------------------------------------- /simpleapp/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BoZhuM/learnmvc/HEAD/simpleapp/README.md -------------------------------------------------------------------------------- /simpleapp/app/controllers/friends_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BoZhuM/learnmvc/HEAD/simpleapp/app/controllers/friends_controller.rb -------------------------------------------------------------------------------- /simpleapp/app/controllers/products_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BoZhuM/learnmvc/HEAD/simpleapp/app/controllers/products_controller.rb -------------------------------------------------------------------------------- /simpleapp/app/controllers/welcome_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BoZhuM/learnmvc/HEAD/simpleapp/app/controllers/welcome_controller.rb -------------------------------------------------------------------------------- /simpleapp/app/helpers/helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BoZhuM/learnmvc/HEAD/simpleapp/app/helpers/helper.rb -------------------------------------------------------------------------------- /simpleapp/app/models/product.rb: -------------------------------------------------------------------------------- 1 | class Product < ActiveRecord::Base 2 | end -------------------------------------------------------------------------------- /simpleapp/app/views/friends/_sidebar.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BoZhuM/learnmvc/HEAD/simpleapp/app/views/friends/_sidebar.html.erb -------------------------------------------------------------------------------- /simpleapp/app/views/friends/index.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BoZhuM/learnmvc/HEAD/simpleapp/app/views/friends/index.html.erb -------------------------------------------------------------------------------- /simpleapp/app/views/friends/show.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BoZhuM/learnmvc/HEAD/simpleapp/app/views/friends/show.html.erb -------------------------------------------------------------------------------- /simpleapp/app/views/layouts/application.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BoZhuM/learnmvc/HEAD/simpleapp/app/views/layouts/application.html.erb -------------------------------------------------------------------------------- /simpleapp/app/views/products/index.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BoZhuM/learnmvc/HEAD/simpleapp/app/views/products/index.html.erb -------------------------------------------------------------------------------- /simpleapp/app/views/products/show.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BoZhuM/learnmvc/HEAD/simpleapp/app/views/products/show.html.erb -------------------------------------------------------------------------------- /simpleapp/app/views/welcome/index.html.erb: -------------------------------------------------------------------------------- 1 |

Welcome

-------------------------------------------------------------------------------- /simpleapp/config.ru: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BoZhuM/learnmvc/HEAD/simpleapp/config.ru -------------------------------------------------------------------------------- /simpleapp/config/application.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BoZhuM/learnmvc/HEAD/simpleapp/config/application.rb -------------------------------------------------------------------------------- /simpleapp/config/database.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BoZhuM/learnmvc/HEAD/simpleapp/config/database.yml -------------------------------------------------------------------------------- /simpleapp/public/css/bootstrap-theme.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BoZhuM/learnmvc/HEAD/simpleapp/public/css/bootstrap-theme.css -------------------------------------------------------------------------------- /simpleapp/public/css/bootstrap-theme.css.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BoZhuM/learnmvc/HEAD/simpleapp/public/css/bootstrap-theme.css.map -------------------------------------------------------------------------------- /simpleapp/public/css/bootstrap-theme.min.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BoZhuM/learnmvc/HEAD/simpleapp/public/css/bootstrap-theme.min.css -------------------------------------------------------------------------------- /simpleapp/public/css/bootstrap.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BoZhuM/learnmvc/HEAD/simpleapp/public/css/bootstrap.css -------------------------------------------------------------------------------- /simpleapp/public/css/bootstrap.css.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BoZhuM/learnmvc/HEAD/simpleapp/public/css/bootstrap.css.map -------------------------------------------------------------------------------- /simpleapp/public/css/bootstrap.min.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BoZhuM/learnmvc/HEAD/simpleapp/public/css/bootstrap.min.css -------------------------------------------------------------------------------- /simpleapp/public/css/theme.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BoZhuM/learnmvc/HEAD/simpleapp/public/css/theme.css -------------------------------------------------------------------------------- /simpleapp/public/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BoZhuM/learnmvc/HEAD/simpleapp/public/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /simpleapp/public/fonts/glyphicons-halflings-regular.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BoZhuM/learnmvc/HEAD/simpleapp/public/fonts/glyphicons-halflings-regular.svg -------------------------------------------------------------------------------- /simpleapp/public/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BoZhuM/learnmvc/HEAD/simpleapp/public/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /simpleapp/public/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BoZhuM/learnmvc/HEAD/simpleapp/public/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /simpleapp/public/js/bootstrap.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BoZhuM/learnmvc/HEAD/simpleapp/public/js/bootstrap.js -------------------------------------------------------------------------------- /simpleapp/public/js/bootstrap.min.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BoZhuM/learnmvc/HEAD/simpleapp/public/js/bootstrap.min.js -------------------------------------------------------------------------------- /simpleapp/public/js/ie-emulation-modes-warning.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BoZhuM/learnmvc/HEAD/simpleapp/public/js/ie-emulation-modes-warning.js -------------------------------------------------------------------------------- /simpleapp/public/js/ie10-viewport-bug-workaround.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BoZhuM/learnmvc/HEAD/simpleapp/public/js/ie10-viewport-bug-workaround.js -------------------------------------------------------------------------------- /srbmvc/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BoZhuM/learnmvc/HEAD/srbmvc/.gitignore -------------------------------------------------------------------------------- /srbmvc/Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BoZhuM/learnmvc/HEAD/srbmvc/Gemfile -------------------------------------------------------------------------------- /srbmvc/LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BoZhuM/learnmvc/HEAD/srbmvc/LICENSE.txt -------------------------------------------------------------------------------- /srbmvc/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BoZhuM/learnmvc/HEAD/srbmvc/README.md -------------------------------------------------------------------------------- /srbmvc/Rakefile: -------------------------------------------------------------------------------- 1 | require "bundler/gem_tasks" 2 | -------------------------------------------------------------------------------- /srbmvc/lib/srbmvc.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BoZhuM/learnmvc/HEAD/srbmvc/lib/srbmvc.rb -------------------------------------------------------------------------------- /srbmvc/lib/srbmvc/controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BoZhuM/learnmvc/HEAD/srbmvc/lib/srbmvc/controller.rb -------------------------------------------------------------------------------- /srbmvc/lib/srbmvc/helpers.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BoZhuM/learnmvc/HEAD/srbmvc/lib/srbmvc/helpers.rb -------------------------------------------------------------------------------- /srbmvc/lib/srbmvc/routing.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BoZhuM/learnmvc/HEAD/srbmvc/lib/srbmvc/routing.rb -------------------------------------------------------------------------------- /srbmvc/lib/srbmvc/utils.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BoZhuM/learnmvc/HEAD/srbmvc/lib/srbmvc/utils.rb -------------------------------------------------------------------------------- /srbmvc/lib/srbmvc/version.rb: -------------------------------------------------------------------------------- 1 | module Srbmvc 2 | VERSION = "0.0.1" 3 | end 4 | -------------------------------------------------------------------------------- /srbmvc/srbmvc.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BoZhuM/learnmvc/HEAD/srbmvc/srbmvc.gemspec --------------------------------------------------------------------------------