├── .gitignore ├── .rspec ├── .ruby-version ├── Gemfile ├── Gemfile.lock ├── README.md ├── Rakefile ├── app ├── assets │ ├── config │ │ └── manifest.js │ ├── images │ │ ├── .keep │ │ └── alipay.png │ ├── javascripts │ │ ├── admin.js │ │ ├── application.js │ │ ├── cable.js │ │ ├── channels │ │ │ └── .keep │ │ └── home.js │ └── stylesheets │ │ ├── admin.scss │ │ ├── application.scss │ │ └── home.scss ├── channels │ └── application_cable │ │ ├── channel.rb │ │ └── connection.rb ├── controllers │ ├── addresses_controller.rb │ ├── admin │ │ ├── base_controller.rb │ │ ├── categories_controller.rb │ │ ├── product_images_controller.rb │ │ ├── products_controller.rb │ │ └── sessions_controller.rb │ ├── application_controller.rb │ ├── categories_controller.rb │ ├── cellphone_tokens_controller.rb │ ├── concerns │ │ └── .keep │ ├── dashboard │ │ ├── addresses_controller.rb │ │ ├── base_controller.rb │ │ ├── orders_controller.rb │ │ └── profile_controller.rb │ ├── orders_controller.rb │ ├── payments_controller.rb │ ├── products_controller.rb │ ├── sessions_controller.rb │ ├── shopping_carts_controller.rb │ ├── users_controller.rb │ └── welcome_controller.rb ├── helpers │ ├── admin │ │ ├── categories_helper.rb │ │ └── sessions_helper.rb │ ├── application_helper.rb │ ├── cellphone_tokens_helper.rb │ ├── dashboard │ │ ├── addresses_helper.rb │ │ ├── base_helper.rb │ │ ├── orders_helper.rb │ │ └── profile_helper.rb │ └── welcome_helper.rb ├── jobs │ └── application_job.rb ├── mailers │ ├── application_mailer.rb │ └── user_mailer.rb ├── models │ ├── address.rb │ ├── application_record.rb │ ├── category.rb │ ├── concerns │ │ └── .keep │ ├── order.rb │ ├── payment.rb │ ├── product.rb │ ├── product_image.rb │ ├── shopping_cart.rb │ ├── user.rb │ └── verify_token.rb └── views │ ├── addresses │ ├── index.html.erb │ └── new.html.erb │ ├── admin │ ├── categories │ │ ├── index.html.erb │ │ └── new.html.erb │ ├── layouts │ │ ├── _menu.html.erb │ │ └── admin.html.erb │ ├── product_images │ │ └── index.html.erb │ ├── products │ │ ├── index.html.erb │ │ └── new.html.erb │ └── sessions │ │ └── new.html.erb │ ├── categories │ └── show.html.erb │ ├── dashboard │ ├── addresses │ │ └── index.html.erb │ ├── orders │ │ └── index.html.erb │ └── profile │ │ └── password.html.erb │ ├── layouts │ ├── _menu.html.erb │ ├── application.html.erb │ ├── mailer.html.erb │ └── mailer.text.erb │ ├── orders │ └── new.html.erb │ ├── payments │ ├── failed.html.erb │ ├── index.html.erb │ └── success.html.erb │ ├── products │ └── show.html.erb │ ├── sessions │ └── new.html.erb │ ├── shared │ ├── _categories.html.erb │ └── _products.html.erb │ ├── shopping_carts │ ├── create.html.erb │ └── index.html.erb │ ├── users │ └── new.html.erb │ └── welcome │ └── index.html.erb ├── bin ├── bundle ├── rails ├── rake ├── setup └── update ├── config.ru ├── config ├── application.rb ├── boot.rb ├── cable.yml ├── database.yml ├── environment.rb ├── environments │ ├── development.rb │ ├── production.rb │ └── test.rb ├── initializers │ ├── application_controller_renderer.rb │ ├── assets.rb │ ├── backtrace_silencers.rb │ ├── cookies_serializer.rb │ ├── filter_parameter_logging.rb │ ├── inflections.rb │ ├── mime_types.rb │ ├── new_framework_defaults.rb │ ├── session_store.rb │ ├── sorcery.rb │ └── wrap_parameters.rb ├── locales │ └── en.yml ├── routes.rb ├── secrets.yml └── spring.rb ├── db ├── migrate │ ├── 20161227023120_sorcery_core.rb │ ├── 20161227023313_sorcery_user_activation.rb │ ├── 20161227023314_sorcery_remember_me.rb │ ├── 20161227023315_sorcery_reset_password.rb │ ├── 20170101055849_create_categories.rb │ ├── 20170101055859_create_products.rb │ ├── 20170101073948_add_ancestry_to_category.rb │ ├── 20170119082225_create_product_images.rb │ ├── 20170119093958_add_product_images_index.rb │ ├── 20170124074352_create_shopping_carts.rb │ ├── 20170124075100_add_user_uuid_column.rb │ ├── 20170204235256_create_addresses.rb │ ├── 20170204235350_add_user_default_address_id.rb │ ├── 20170206061855_create_orders.rb │ ├── 20170207065026_create_payments.rb │ ├── 20170207065526_add_order_payment_id_column.rb │ ├── 20170214090921_add_users_cellphone.rb │ ├── 20170214090948_create_verify_tokens.rb │ └── 20170216073235_add_users_is_admin_column.rb ├── schema.rb └── seeds.rb ├── lib ├── assets │ └── .keep ├── random_code.rb ├── send_sms.rb └── tasks │ └── .keep ├── public ├── 404.html ├── 422.html ├── 500.html ├── apple-touch-icon-precomposed.png ├── apple-touch-icon.png ├── favicon.ico └── robots.txt ├── spec ├── controllers │ └── users_controller_spec.rb ├── models │ └── product_spec.rb ├── rails_helper.rb └── spec_helper.rb ├── test ├── controllers │ └── .keep ├── fixtures │ ├── .keep │ └── files │ │ └── .keep ├── helpers │ └── .keep ├── integration │ └── .keep ├── mailers │ └── .keep ├── models │ └── .keep └── test_helper.rb └── vendor └── assets ├── javascripts └── .keep └── stylesheets └── .keep /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/.gitignore -------------------------------------------------------------------------------- /.rspec: -------------------------------------------------------------------------------- 1 | --color 2 | --require spec_helper 3 | -f d 4 | -------------------------------------------------------------------------------- /.ruby-version: -------------------------------------------------------------------------------- 1 | 2.3.0 2 | -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/Gemfile -------------------------------------------------------------------------------- /Gemfile.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/Gemfile.lock -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/Rakefile -------------------------------------------------------------------------------- /app/assets/config/manifest.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/assets/config/manifest.js -------------------------------------------------------------------------------- /app/assets/images/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/assets/images/alipay.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/assets/images/alipay.png -------------------------------------------------------------------------------- /app/assets/javascripts/admin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/assets/javascripts/admin.js -------------------------------------------------------------------------------- /app/assets/javascripts/application.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/assets/javascripts/application.js -------------------------------------------------------------------------------- /app/assets/javascripts/cable.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/assets/javascripts/cable.js -------------------------------------------------------------------------------- /app/assets/javascripts/channels/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/assets/javascripts/home.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/assets/javascripts/home.js -------------------------------------------------------------------------------- /app/assets/stylesheets/admin.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/assets/stylesheets/admin.scss -------------------------------------------------------------------------------- /app/assets/stylesheets/application.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/assets/stylesheets/application.scss -------------------------------------------------------------------------------- /app/assets/stylesheets/home.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/assets/stylesheets/home.scss -------------------------------------------------------------------------------- /app/channels/application_cable/channel.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/channels/application_cable/channel.rb -------------------------------------------------------------------------------- /app/channels/application_cable/connection.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/channels/application_cable/connection.rb -------------------------------------------------------------------------------- /app/controllers/addresses_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/controllers/addresses_controller.rb -------------------------------------------------------------------------------- /app/controllers/admin/base_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/controllers/admin/base_controller.rb -------------------------------------------------------------------------------- /app/controllers/admin/categories_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/controllers/admin/categories_controller.rb -------------------------------------------------------------------------------- /app/controllers/admin/product_images_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/controllers/admin/product_images_controller.rb -------------------------------------------------------------------------------- /app/controllers/admin/products_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/controllers/admin/products_controller.rb -------------------------------------------------------------------------------- /app/controllers/admin/sessions_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/controllers/admin/sessions_controller.rb -------------------------------------------------------------------------------- /app/controllers/application_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/controllers/application_controller.rb -------------------------------------------------------------------------------- /app/controllers/categories_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/controllers/categories_controller.rb -------------------------------------------------------------------------------- /app/controllers/cellphone_tokens_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/controllers/cellphone_tokens_controller.rb -------------------------------------------------------------------------------- /app/controllers/concerns/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/controllers/dashboard/addresses_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/controllers/dashboard/addresses_controller.rb -------------------------------------------------------------------------------- /app/controllers/dashboard/base_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/controllers/dashboard/base_controller.rb -------------------------------------------------------------------------------- /app/controllers/dashboard/orders_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/controllers/dashboard/orders_controller.rb -------------------------------------------------------------------------------- /app/controllers/dashboard/profile_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/controllers/dashboard/profile_controller.rb -------------------------------------------------------------------------------- /app/controllers/orders_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/controllers/orders_controller.rb -------------------------------------------------------------------------------- /app/controllers/payments_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/controllers/payments_controller.rb -------------------------------------------------------------------------------- /app/controllers/products_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/controllers/products_controller.rb -------------------------------------------------------------------------------- /app/controllers/sessions_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/controllers/sessions_controller.rb -------------------------------------------------------------------------------- /app/controllers/shopping_carts_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/controllers/shopping_carts_controller.rb -------------------------------------------------------------------------------- /app/controllers/users_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/controllers/users_controller.rb -------------------------------------------------------------------------------- /app/controllers/welcome_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/controllers/welcome_controller.rb -------------------------------------------------------------------------------- /app/helpers/admin/categories_helper.rb: -------------------------------------------------------------------------------- 1 | module Admin::CategoriesHelper 2 | end 3 | -------------------------------------------------------------------------------- /app/helpers/admin/sessions_helper.rb: -------------------------------------------------------------------------------- 1 | module Admin::SessionsHelper 2 | end 3 | -------------------------------------------------------------------------------- /app/helpers/application_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/helpers/application_helper.rb -------------------------------------------------------------------------------- /app/helpers/cellphone_tokens_helper.rb: -------------------------------------------------------------------------------- 1 | module CellphoneTokensHelper 2 | end 3 | -------------------------------------------------------------------------------- /app/helpers/dashboard/addresses_helper.rb: -------------------------------------------------------------------------------- 1 | module Dashboard::AddressesHelper 2 | end 3 | -------------------------------------------------------------------------------- /app/helpers/dashboard/base_helper.rb: -------------------------------------------------------------------------------- 1 | module Dashboard::BaseHelper 2 | end 3 | -------------------------------------------------------------------------------- /app/helpers/dashboard/orders_helper.rb: -------------------------------------------------------------------------------- 1 | module Dashboard::OrdersHelper 2 | end 3 | -------------------------------------------------------------------------------- /app/helpers/dashboard/profile_helper.rb: -------------------------------------------------------------------------------- 1 | module Dashboard::ProfileHelper 2 | end 3 | -------------------------------------------------------------------------------- /app/helpers/welcome_helper.rb: -------------------------------------------------------------------------------- 1 | module WelcomeHelper 2 | end 3 | -------------------------------------------------------------------------------- /app/jobs/application_job.rb: -------------------------------------------------------------------------------- 1 | class ApplicationJob < ActiveJob::Base 2 | end 3 | -------------------------------------------------------------------------------- /app/mailers/application_mailer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/mailers/application_mailer.rb -------------------------------------------------------------------------------- /app/mailers/user_mailer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/mailers/user_mailer.rb -------------------------------------------------------------------------------- /app/models/address.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/models/address.rb -------------------------------------------------------------------------------- /app/models/application_record.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/models/application_record.rb -------------------------------------------------------------------------------- /app/models/category.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/models/category.rb -------------------------------------------------------------------------------- /app/models/concerns/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/models/order.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/models/order.rb -------------------------------------------------------------------------------- /app/models/payment.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/models/payment.rb -------------------------------------------------------------------------------- /app/models/product.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/models/product.rb -------------------------------------------------------------------------------- /app/models/product_image.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/models/product_image.rb -------------------------------------------------------------------------------- /app/models/shopping_cart.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/models/shopping_cart.rb -------------------------------------------------------------------------------- /app/models/user.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/models/user.rb -------------------------------------------------------------------------------- /app/models/verify_token.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/models/verify_token.rb -------------------------------------------------------------------------------- /app/views/addresses/index.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/views/addresses/index.html.erb -------------------------------------------------------------------------------- /app/views/addresses/new.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/views/addresses/new.html.erb -------------------------------------------------------------------------------- /app/views/admin/categories/index.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/views/admin/categories/index.html.erb -------------------------------------------------------------------------------- /app/views/admin/categories/new.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/views/admin/categories/new.html.erb -------------------------------------------------------------------------------- /app/views/admin/layouts/_menu.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/views/admin/layouts/_menu.html.erb -------------------------------------------------------------------------------- /app/views/admin/layouts/admin.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/views/admin/layouts/admin.html.erb -------------------------------------------------------------------------------- /app/views/admin/product_images/index.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/views/admin/product_images/index.html.erb -------------------------------------------------------------------------------- /app/views/admin/products/index.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/views/admin/products/index.html.erb -------------------------------------------------------------------------------- /app/views/admin/products/new.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/views/admin/products/new.html.erb -------------------------------------------------------------------------------- /app/views/admin/sessions/new.html.erb: -------------------------------------------------------------------------------- 1 | 欢迎你: <%= current_user.username %> 2 | -------------------------------------------------------------------------------- /app/views/categories/show.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/views/categories/show.html.erb -------------------------------------------------------------------------------- /app/views/dashboard/addresses/index.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/views/dashboard/addresses/index.html.erb -------------------------------------------------------------------------------- /app/views/dashboard/orders/index.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/views/dashboard/orders/index.html.erb -------------------------------------------------------------------------------- /app/views/dashboard/profile/password.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/views/dashboard/profile/password.html.erb -------------------------------------------------------------------------------- /app/views/layouts/_menu.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/views/layouts/_menu.html.erb -------------------------------------------------------------------------------- /app/views/layouts/application.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/views/layouts/application.html.erb -------------------------------------------------------------------------------- /app/views/layouts/mailer.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/views/layouts/mailer.html.erb -------------------------------------------------------------------------------- /app/views/layouts/mailer.text.erb: -------------------------------------------------------------------------------- 1 | <%= yield %> 2 | -------------------------------------------------------------------------------- /app/views/orders/new.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/views/orders/new.html.erb -------------------------------------------------------------------------------- /app/views/payments/failed.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/views/payments/failed.html.erb -------------------------------------------------------------------------------- /app/views/payments/index.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/views/payments/index.html.erb -------------------------------------------------------------------------------- /app/views/payments/success.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/views/payments/success.html.erb -------------------------------------------------------------------------------- /app/views/products/show.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/views/products/show.html.erb -------------------------------------------------------------------------------- /app/views/sessions/new.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/views/sessions/new.html.erb -------------------------------------------------------------------------------- /app/views/shared/_categories.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/views/shared/_categories.html.erb -------------------------------------------------------------------------------- /app/views/shared/_products.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/views/shared/_products.html.erb -------------------------------------------------------------------------------- /app/views/shopping_carts/create.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/views/shopping_carts/create.html.erb -------------------------------------------------------------------------------- /app/views/shopping_carts/index.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/views/shopping_carts/index.html.erb -------------------------------------------------------------------------------- /app/views/users/new.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/views/users/new.html.erb -------------------------------------------------------------------------------- /app/views/welcome/index.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/app/views/welcome/index.html.erb -------------------------------------------------------------------------------- /bin/bundle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/bin/bundle -------------------------------------------------------------------------------- /bin/rails: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/bin/rails -------------------------------------------------------------------------------- /bin/rake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/bin/rake -------------------------------------------------------------------------------- /bin/setup: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/bin/setup -------------------------------------------------------------------------------- /bin/update: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/bin/update -------------------------------------------------------------------------------- /config.ru: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/config.ru -------------------------------------------------------------------------------- /config/application.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/config/application.rb -------------------------------------------------------------------------------- /config/boot.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/config/boot.rb -------------------------------------------------------------------------------- /config/cable.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/config/cable.yml -------------------------------------------------------------------------------- /config/database.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/config/database.yml -------------------------------------------------------------------------------- /config/environment.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/config/environment.rb -------------------------------------------------------------------------------- /config/environments/development.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/config/environments/development.rb -------------------------------------------------------------------------------- /config/environments/production.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/config/environments/production.rb -------------------------------------------------------------------------------- /config/environments/test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/config/environments/test.rb -------------------------------------------------------------------------------- /config/initializers/application_controller_renderer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/config/initializers/application_controller_renderer.rb -------------------------------------------------------------------------------- /config/initializers/assets.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/config/initializers/assets.rb -------------------------------------------------------------------------------- /config/initializers/backtrace_silencers.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/config/initializers/backtrace_silencers.rb -------------------------------------------------------------------------------- /config/initializers/cookies_serializer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/config/initializers/cookies_serializer.rb -------------------------------------------------------------------------------- /config/initializers/filter_parameter_logging.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/config/initializers/filter_parameter_logging.rb -------------------------------------------------------------------------------- /config/initializers/inflections.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/config/initializers/inflections.rb -------------------------------------------------------------------------------- /config/initializers/mime_types.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/config/initializers/mime_types.rb -------------------------------------------------------------------------------- /config/initializers/new_framework_defaults.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/config/initializers/new_framework_defaults.rb -------------------------------------------------------------------------------- /config/initializers/session_store.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/config/initializers/session_store.rb -------------------------------------------------------------------------------- /config/initializers/sorcery.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/config/initializers/sorcery.rb -------------------------------------------------------------------------------- /config/initializers/wrap_parameters.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/config/initializers/wrap_parameters.rb -------------------------------------------------------------------------------- /config/locales/en.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/config/locales/en.yml -------------------------------------------------------------------------------- /config/routes.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/config/routes.rb -------------------------------------------------------------------------------- /config/secrets.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/config/secrets.yml -------------------------------------------------------------------------------- /config/spring.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/config/spring.rb -------------------------------------------------------------------------------- /db/migrate/20161227023120_sorcery_core.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/db/migrate/20161227023120_sorcery_core.rb -------------------------------------------------------------------------------- /db/migrate/20161227023313_sorcery_user_activation.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/db/migrate/20161227023313_sorcery_user_activation.rb -------------------------------------------------------------------------------- /db/migrate/20161227023314_sorcery_remember_me.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/db/migrate/20161227023314_sorcery_remember_me.rb -------------------------------------------------------------------------------- /db/migrate/20161227023315_sorcery_reset_password.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/db/migrate/20161227023315_sorcery_reset_password.rb -------------------------------------------------------------------------------- /db/migrate/20170101055849_create_categories.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/db/migrate/20170101055849_create_categories.rb -------------------------------------------------------------------------------- /db/migrate/20170101055859_create_products.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/db/migrate/20170101055859_create_products.rb -------------------------------------------------------------------------------- /db/migrate/20170101073948_add_ancestry_to_category.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/db/migrate/20170101073948_add_ancestry_to_category.rb -------------------------------------------------------------------------------- /db/migrate/20170119082225_create_product_images.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/db/migrate/20170119082225_create_product_images.rb -------------------------------------------------------------------------------- /db/migrate/20170119093958_add_product_images_index.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/db/migrate/20170119093958_add_product_images_index.rb -------------------------------------------------------------------------------- /db/migrate/20170124074352_create_shopping_carts.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/db/migrate/20170124074352_create_shopping_carts.rb -------------------------------------------------------------------------------- /db/migrate/20170124075100_add_user_uuid_column.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/db/migrate/20170124075100_add_user_uuid_column.rb -------------------------------------------------------------------------------- /db/migrate/20170204235256_create_addresses.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/db/migrate/20170204235256_create_addresses.rb -------------------------------------------------------------------------------- /db/migrate/20170204235350_add_user_default_address_id.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/db/migrate/20170204235350_add_user_default_address_id.rb -------------------------------------------------------------------------------- /db/migrate/20170206061855_create_orders.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/db/migrate/20170206061855_create_orders.rb -------------------------------------------------------------------------------- /db/migrate/20170207065026_create_payments.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/db/migrate/20170207065026_create_payments.rb -------------------------------------------------------------------------------- /db/migrate/20170207065526_add_order_payment_id_column.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/db/migrate/20170207065526_add_order_payment_id_column.rb -------------------------------------------------------------------------------- /db/migrate/20170214090921_add_users_cellphone.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/db/migrate/20170214090921_add_users_cellphone.rb -------------------------------------------------------------------------------- /db/migrate/20170214090948_create_verify_tokens.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/db/migrate/20170214090948_create_verify_tokens.rb -------------------------------------------------------------------------------- /db/migrate/20170216073235_add_users_is_admin_column.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/db/migrate/20170216073235_add_users_is_admin_column.rb -------------------------------------------------------------------------------- /db/schema.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/db/schema.rb -------------------------------------------------------------------------------- /db/seeds.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/db/seeds.rb -------------------------------------------------------------------------------- /lib/assets/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/random_code.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/lib/random_code.rb -------------------------------------------------------------------------------- /lib/send_sms.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/lib/send_sms.rb -------------------------------------------------------------------------------- /lib/tasks/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /public/404.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/public/404.html -------------------------------------------------------------------------------- /public/422.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/public/422.html -------------------------------------------------------------------------------- /public/500.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/public/500.html -------------------------------------------------------------------------------- /public/apple-touch-icon-precomposed.png: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /public/apple-touch-icon.png: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/public/robots.txt -------------------------------------------------------------------------------- /spec/controllers/users_controller_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/spec/controllers/users_controller_spec.rb -------------------------------------------------------------------------------- /spec/models/product_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/spec/models/product_spec.rb -------------------------------------------------------------------------------- /spec/rails_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/spec/rails_helper.rb -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/spec/spec_helper.rb -------------------------------------------------------------------------------- /test/controllers/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/files/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/helpers/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/integration/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/mailers/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/models/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/test_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggmantv/master_rails_by_actions/HEAD/test/test_helper.rb -------------------------------------------------------------------------------- /vendor/assets/javascripts/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/.keep: -------------------------------------------------------------------------------- 1 | --------------------------------------------------------------------------------