From e3002da53169aff994f4f0219a734a91d754b97f Mon Sep 17 00:00:00 2001
From: Koza <kiskoza@gmail.com>
Date: Sat, 3 Jun 2017 22:14:17 +0200
Subject: [PATCH] Add Omniauth-Authsch gem & remove old rails project

---
 README.md                                     |   1 +
 ruby-on-rails/--README.rdoc                   |  66 -----
 ruby-on-rails/.gitignore                      |  16 --
 ruby-on-rails/Gemfile                         |  50 ----
 ruby-on-rails/Gemfile.lock                    | 168 ------------
 ruby-on-rails/README.md                       |  66 -----
 ruby-on-rails/Rakefile                        |   6 -
 ruby-on-rails/app/assets/images/.keep         |   0
 .../app/assets/javascripts/application.js     |  16 --
 .../app/assets/javascripts/base.js.coffee     |   3 -
 .../app/assets/stylesheets/application.css    |  15 -
 .../app/assets/stylesheets/base.css.scss      |   3 -
 .../app/controllers/application_controller.rb |   5 -
 .../app/controllers/base_controller.rb        |  10 -
 ruby-on-rails/app/controllers/concerns/.keep  |   0
 .../users/omniauth_callbacks_controller.rb    |  20 --
 .../app/helpers/application_helper.rb         |   2 -
 ruby-on-rails/app/helpers/base_helper.rb      |   2 -
 ruby-on-rails/app/mailers/.keep               |   0
 ruby-on-rails/app/models/.keep                |   0
 ruby-on-rails/app/models/concerns/.keep       |   0
 ruby-on-rails/app/models/user.rb              |  27 --
 ruby-on-rails/app/views/base/index.html.erb   |   1 -
 ruby-on-rails/app/views/base/index2.html.erb  |   5 -
 .../app/views/layouts/application.html.erb    |  14 -
 ruby-on-rails/bin/bundle                      |   3 -
 ruby-on-rails/bin/rails                       |   4 -
 ruby-on-rails/bin/rake                        |   4 -
 ruby-on-rails/config.ru                       |   4 -
 ruby-on-rails/config/application.rb           |  23 --
 ruby-on-rails/config/boot.rb                  |   4 -
 ruby-on-rails/config/database.yml             |  25 --
 ruby-on-rails/config/environment.rb           |   5 -
 .../config/environments/development.rb        |  37 ---
 .../config/environments/production.rb         |  83 ------
 ruby-on-rails/config/environments/test.rb     |  39 ---
 .../initializers/backtrace_silencers.rb       |   7 -
 .../config/initializers/cookies_serializer.rb |   3 -
 ruby-on-rails/config/initializers/devise.rb   | 256 ------------------
 .../initializers/filter_parameter_logging.rb  |   4 -
 .../config/initializers/inflections.rb        |  16 --
 .../config/initializers/mime_types.rb         |   4 -
 ruby-on-rails/config/initializers/sch.rb      |  62 -----
 .../config/initializers/session_store.rb      |   3 -
 .../config/initializers/wrap_parameters.rb    |  14 -
 ruby-on-rails/config/locales/devise.en.yml    |  59 ----
 ruby-on-rails/config/locales/en.yml           |  23 --
 ruby-on-rails/config/routes.rb                |  69 -----
 ruby-on-rails/config/secrets.yml              |  22 --
 .../20140722164618_devise_create_users.rb     |  42 ---
 .../20140722164654_add_colums_to_users.rb     |   6 -
 ruby-on-rails/db/schema.rb                    |  36 ---
 ruby-on-rails/db/seeds.rb                     |   7 -
 ruby-on-rails/lib/assets/.keep                |   0
 ruby-on-rails/lib/tasks/.keep                 |   0
 ruby-on-rails/log/.keep                       |   0
 ruby-on-rails/public/404.html                 |  67 -----
 ruby-on-rails/public/422.html                 |  67 -----
 ruby-on-rails/public/500.html                 |  66 -----
 ruby-on-rails/public/favicon.ico              |   0
 ruby-on-rails/public/robots.txt               |   5 -
 ruby-on-rails/test/controllers/.keep          |   0
 .../test/controllers/base_controller_test.rb  |   7 -
 ruby-on-rails/test/fixtures/.keep             |   0
 ruby-on-rails/test/fixtures/users.yml         |  11 -
 ruby-on-rails/test/helpers/.keep              |   0
 .../test/helpers/base_helper_test.rb          |   4 -
 ruby-on-rails/test/integration/.keep          |   0
 ruby-on-rails/test/mailers/.keep              |   0
 ruby-on-rails/test/models/.keep               |   0
 ruby-on-rails/test/models/user_test.rb        |   7 -
 ruby-on-rails/test/test_helper.rb             |  13 -
 ruby-on-rails/vendor/assets/javascripts/.keep |   0
 ruby-on-rails/vendor/assets/stylesheets/.keep |   0
 74 files changed, 1 insertion(+), 1606 deletions(-)
 delete mode 100644 ruby-on-rails/--README.rdoc
 delete mode 100644 ruby-on-rails/.gitignore
 delete mode 100644 ruby-on-rails/Gemfile
 delete mode 100644 ruby-on-rails/Gemfile.lock
 delete mode 100644 ruby-on-rails/README.md
 delete mode 100644 ruby-on-rails/Rakefile
 delete mode 100644 ruby-on-rails/app/assets/images/.keep
 delete mode 100644 ruby-on-rails/app/assets/javascripts/application.js
 delete mode 100644 ruby-on-rails/app/assets/javascripts/base.js.coffee
 delete mode 100644 ruby-on-rails/app/assets/stylesheets/application.css
 delete mode 100644 ruby-on-rails/app/assets/stylesheets/base.css.scss
 delete mode 100644 ruby-on-rails/app/controllers/application_controller.rb
 delete mode 100644 ruby-on-rails/app/controllers/base_controller.rb
 delete mode 100644 ruby-on-rails/app/controllers/concerns/.keep
 delete mode 100644 ruby-on-rails/app/controllers/users/omniauth_callbacks_controller.rb
 delete mode 100644 ruby-on-rails/app/helpers/application_helper.rb
 delete mode 100644 ruby-on-rails/app/helpers/base_helper.rb
 delete mode 100644 ruby-on-rails/app/mailers/.keep
 delete mode 100644 ruby-on-rails/app/models/.keep
 delete mode 100644 ruby-on-rails/app/models/concerns/.keep
 delete mode 100644 ruby-on-rails/app/models/user.rb
 delete mode 100644 ruby-on-rails/app/views/base/index.html.erb
 delete mode 100644 ruby-on-rails/app/views/base/index2.html.erb
 delete mode 100644 ruby-on-rails/app/views/layouts/application.html.erb
 delete mode 100644 ruby-on-rails/bin/bundle
 delete mode 100644 ruby-on-rails/bin/rails
 delete mode 100644 ruby-on-rails/bin/rake
 delete mode 100644 ruby-on-rails/config.ru
 delete mode 100644 ruby-on-rails/config/application.rb
 delete mode 100644 ruby-on-rails/config/boot.rb
 delete mode 100644 ruby-on-rails/config/database.yml
 delete mode 100644 ruby-on-rails/config/environment.rb
 delete mode 100644 ruby-on-rails/config/environments/development.rb
 delete mode 100644 ruby-on-rails/config/environments/production.rb
 delete mode 100644 ruby-on-rails/config/environments/test.rb
 delete mode 100644 ruby-on-rails/config/initializers/backtrace_silencers.rb
 delete mode 100644 ruby-on-rails/config/initializers/cookies_serializer.rb
 delete mode 100644 ruby-on-rails/config/initializers/devise.rb
 delete mode 100644 ruby-on-rails/config/initializers/filter_parameter_logging.rb
 delete mode 100644 ruby-on-rails/config/initializers/inflections.rb
 delete mode 100644 ruby-on-rails/config/initializers/mime_types.rb
 delete mode 100644 ruby-on-rails/config/initializers/sch.rb
 delete mode 100644 ruby-on-rails/config/initializers/session_store.rb
 delete mode 100644 ruby-on-rails/config/initializers/wrap_parameters.rb
 delete mode 100644 ruby-on-rails/config/locales/devise.en.yml
 delete mode 100644 ruby-on-rails/config/locales/en.yml
 delete mode 100644 ruby-on-rails/config/routes.rb
 delete mode 100644 ruby-on-rails/config/secrets.yml
 delete mode 100644 ruby-on-rails/db/migrate/20140722164618_devise_create_users.rb
 delete mode 100644 ruby-on-rails/db/migrate/20140722164654_add_colums_to_users.rb
 delete mode 100644 ruby-on-rails/db/schema.rb
 delete mode 100644 ruby-on-rails/db/seeds.rb
 delete mode 100644 ruby-on-rails/lib/assets/.keep
 delete mode 100644 ruby-on-rails/lib/tasks/.keep
 delete mode 100644 ruby-on-rails/log/.keep
 delete mode 100644 ruby-on-rails/public/404.html
 delete mode 100644 ruby-on-rails/public/422.html
 delete mode 100644 ruby-on-rails/public/500.html
 delete mode 100644 ruby-on-rails/public/favicon.ico
 delete mode 100644 ruby-on-rails/public/robots.txt
 delete mode 100644 ruby-on-rails/test/controllers/.keep
 delete mode 100644 ruby-on-rails/test/controllers/base_controller_test.rb
 delete mode 100644 ruby-on-rails/test/fixtures/.keep
 delete mode 100644 ruby-on-rails/test/fixtures/users.yml
 delete mode 100644 ruby-on-rails/test/helpers/.keep
 delete mode 100644 ruby-on-rails/test/helpers/base_helper_test.rb
 delete mode 100644 ruby-on-rails/test/integration/.keep
 delete mode 100644 ruby-on-rails/test/mailers/.keep
 delete mode 100644 ruby-on-rails/test/models/.keep
 delete mode 100644 ruby-on-rails/test/models/user_test.rb
 delete mode 100644 ruby-on-rails/test/test_helper.rb
 delete mode 100644 ruby-on-rails/vendor/assets/javascripts/.keep
 delete mode 100644 ruby-on-rails/vendor/assets/stylesheets/.keep

diff --git a/README.md b/README.md
index eae53d8..171287b 100644
--- a/README.md
+++ b/README.md
@@ -4,6 +4,7 @@ Az [AuthSCH oldalhoz](https://git.sch.bme.hu/kszk/authsch) különböző nyelven
 ## Támogatott nyelvek
   * PHP5
   * Ruby on Rails
+    * [Omniauth-Authsch gem](https://github.com/kiskoza/omniauth-authsch)
 
 ## Kötelező ezeket használnom?
 Nem, de megkérnénk hogy ha olyan nyelven írsz klienst, amit nem látsz felsorolva, akkor merge request-tel "küldd be" a projekthez, hogy másnak ne kelljen újra megírnia.
\ No newline at end of file
diff --git a/ruby-on-rails/--README.rdoc b/ruby-on-rails/--README.rdoc
deleted file mode 100644
index 9c81d6f..0000000
--- a/ruby-on-rails/--README.rdoc
+++ /dev/null
@@ -1,66 +0,0 @@
-== README
-
-Ez egy teljes project, egy m�k�d� rails alkalmaz�s ahhoz, hogy legyen min fejleszteni tesztelni a rails klienst. Saj�t alkalmaz�s k�sz�t�s�hez k�vesd a lentebbi utas�t�sokat.
-
-
-== Haszn�lat
-
-El�sz�r is kell devise, omniauth �s omniauth-oauth2 gem a Gemfileba.
-
-Nagyj�b�l ezt a tutorialt lehet k�vetni: https://github.com/plataformatec/devise/wiki/OmniAuth:-Overview
-
-Deviseban gener�lunk saj�t usert:
-```
-rails generate devise:install
-rails generate devise User
-```
-(User helyett b�rmi lehet)
-
-Ezut�n kieg�sz�tj�k ezt a modellt �s migr�lunk is:
-```
-rails g migration AddColumnsToUsers provider uid
-rake db:migrate
-```
-config/initializers/devise.rb:
-```ruby
-config.omniauth :sch, 'APP_ID','APP_SECRET',scope: 'basic mail'
-```
-ha m�r abban a mapp�ban vagyunk, ebb�l a projectb�l a config/initializers/sch.rb -t m�soljuk is �t
-
-config/roots.rb:
-```ruby
-devise_for :users, :controllers => { :omniauth_callbacks => "users/omniauth_callbacks" }
-```
-(Ha fent nem User-t hoztunk l�tre akkor ezt is �rtelemszer�en m�dos�tani kell!)
-
-app/controllers/users/omniauth_callbacks_controller.rb:
-legegyszer�bb m�solni innen �gy ahogy van, �rdekl�d�k elolvashatj�k az Overview-s linket
-
-app/models/user.rb:
-L�nyeg�ben m�solhat�, nincs benne nagy var�zslat, a k�t f�ggv�ny ami benne van az kell ahhoz hogy m�k�dj�n, ugyancsak a fentebbi linkb�l meg�rthet�.
-
-Ezzel elvileg a keret fel van �p�tve. �rdemes m�g egy olyan view-al rendelkezni amin le is lehet tesztelni a dolgot:
-```ruby
-<% if user_signed_in? %>
-	<%= current_user.email%>
-	<br>
-	<%= link_to('Logout', destroy_user_session_path, :method=>'delete') %>
-<% else %>
-	<%= link_to "Sign in with SCH", user_omniauth_authorize_path(:sch) %>
-<% end %>
-```
-Ha csak bejelentkez�s ut�n akarsz tartalmat mutatni, akkor config/roots.rb:
-```ruby
-devise_scope :user do
-	authenticated :user do
-		root 'base#index2', as: :authenticated_root
-	end
-
-	unauthenticated do
-		root 'base#index', as: :unauthenticated_root
-	end
-end
-```
-
-
-
diff --git a/ruby-on-rails/.gitignore b/ruby-on-rails/.gitignore
deleted file mode 100644
index 6a502e9..0000000
--- a/ruby-on-rails/.gitignore
+++ /dev/null
@@ -1,16 +0,0 @@
-# See https://help.github.com/articles/ignoring-files for more about ignoring files.
-#
-# If you find yourself ignoring temporary files generated by your text editor
-# or operating system, you probably want to add a global ignore instead:
-#   git config --global core.excludesfile '~/.gitignore_global'
-
-# Ignore bundler config.
-/.bundle
-
-# Ignore the default SQLite database.
-/db/*.sqlite3
-/db/*.sqlite3-journal
-
-# Ignore all logfiles and tempfiles.
-/log/*.log
-/tmp
diff --git a/ruby-on-rails/Gemfile b/ruby-on-rails/Gemfile
deleted file mode 100644
index c0280ca..0000000
--- a/ruby-on-rails/Gemfile
+++ /dev/null
@@ -1,50 +0,0 @@
-source 'https://rubygems.org'
-
-
-# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
-gem 'rails', '4.1.1'
-# Use sqlite3 as the database for Active Record
-gem 'sqlite3'
-# Use SCSS for stylesheets
-gem 'sass-rails', '~> 4.0.3'
-# Use Uglifier as compressor for JavaScript assets
-gem 'uglifier', '>= 1.3.0'
-# Use CoffeeScript for .js.coffee assets and views
-gem 'coffee-rails', '~> 4.0.0'
-# See https://github.com/sstephenson/execjs#readme for more supported runtimes
-# gem 'therubyracer',  platforms: :ruby
-
-# Use jquery as the JavaScript library
-gem 'jquery-rails'
-# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
-gem 'turbolinks'
-# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
-gem 'jbuilder', '~> 2.0'
-# bundle exec rake doc:rails generates the API under doc/api.
-gem 'sdoc', '~> 0.4.0',          group: :doc
-
-# Use ActiveModel has_secure_password
-# gem 'bcrypt', '~> 3.1.7'
-
-# Use unicorn as the app server
-# gem 'unicorn'
-
-# Use Capistrano for deployment
-# gem 'capistrano-rails', group: :development
-
-# Use debugger
-# gem 'debugger', group: [:development, :test]
-
-# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
-gem 'tzinfo-data', platforms: [:mingw, :mswin]
-
-# Better errors
-gem 'better_errors', '~> 1.1.0'
-
-# Hibakezel� konzolhoz
-gem 'binding_of_caller', '~> 0.7.2'
-
-# devise loginhoz
-gem 'devise'
-gem 'omniauth'
-gem 'omniauth-oauth2'
\ No newline at end of file
diff --git a/ruby-on-rails/Gemfile.lock b/ruby-on-rails/Gemfile.lock
deleted file mode 100644
index 5e1c616..0000000
--- a/ruby-on-rails/Gemfile.lock
+++ /dev/null
@@ -1,168 +0,0 @@
-GEM
-  remote: https://rubygems.org/
-  specs:
-    actionmailer (4.1.1)
-      actionpack (= 4.1.1)
-      actionview (= 4.1.1)
-      mail (~> 2.5.4)
-    actionpack (4.1.1)
-      actionview (= 4.1.1)
-      activesupport (= 4.1.1)
-      rack (~> 1.5.2)
-      rack-test (~> 0.6.2)
-    actionview (4.1.1)
-      activesupport (= 4.1.1)
-      builder (~> 3.1)
-      erubis (~> 2.7.0)
-    activemodel (4.1.1)
-      activesupport (= 4.1.1)
-      builder (~> 3.1)
-    activerecord (4.1.1)
-      activemodel (= 4.1.1)
-      activesupport (= 4.1.1)
-      arel (~> 5.0.0)
-    activesupport (4.1.1)
-      i18n (~> 0.6, >= 0.6.9)
-      json (~> 1.7, >= 1.7.7)
-      minitest (~> 5.1)
-      thread_safe (~> 0.1)
-      tzinfo (~> 1.1)
-    arel (5.0.1.20140414130214)
-    bcrypt (3.1.7-x86-mingw32)
-    better_errors (1.1.0)
-      coderay (>= 1.0.0)
-      erubis (>= 2.6.6)
-    binding_of_caller (0.7.2)
-      debug_inspector (>= 0.0.1)
-    builder (3.2.2)
-    coderay (1.1.0)
-    coffee-rails (4.0.1)
-      coffee-script (>= 2.2.0)
-      railties (>= 4.0.0, < 5.0)
-    coffee-script (2.3.0)
-      coffee-script-source
-      execjs
-    coffee-script-source (1.7.1)
-    debug_inspector (0.0.2)
-    devise (3.2.4)
-      bcrypt (~> 3.0)
-      orm_adapter (~> 0.1)
-      railties (>= 3.2.6, < 5)
-      thread_safe (~> 0.1)
-      warden (~> 1.2.3)
-    erubis (2.7.0)
-    execjs (2.2.1)
-    faraday (0.9.0)
-      multipart-post (>= 1.2, < 3)
-    hashie (3.2.0)
-    hike (1.2.3)
-    i18n (0.6.11)
-    jbuilder (2.1.3)
-      activesupport (>= 3.0.0, < 5)
-      multi_json (~> 1.2)
-    jquery-rails (3.1.1)
-      railties (>= 3.0, < 5.0)
-      thor (>= 0.14, < 2.0)
-    json (1.8.1)
-    jwt (1.0.0)
-    mail (2.5.4)
-      mime-types (~> 1.16)
-      treetop (~> 1.4.8)
-    mime-types (1.25.1)
-    minitest (5.4.0)
-    multi_json (1.10.1)
-    multi_xml (0.5.5)
-    multipart-post (2.0.0)
-    oauth2 (1.0.0)
-      faraday (>= 0.8, < 0.10)
-      jwt (~> 1.0)
-      multi_json (~> 1.3)
-      multi_xml (~> 0.5)
-      rack (~> 1.2)
-    omniauth (1.2.2)
-      hashie (>= 1.2, < 4)
-      rack (~> 1.0)
-    omniauth-oauth2 (1.2.0)
-      faraday (>= 0.8, < 0.10)
-      multi_json (~> 1.3)
-      oauth2 (~> 1.0)
-      omniauth (~> 1.2)
-    orm_adapter (0.5.0)
-    polyglot (0.3.5)
-    rack (1.5.2)
-    rack-test (0.6.2)
-      rack (>= 1.0)
-    rails (4.1.1)
-      actionmailer (= 4.1.1)
-      actionpack (= 4.1.1)
-      actionview (= 4.1.1)
-      activemodel (= 4.1.1)
-      activerecord (= 4.1.1)
-      activesupport (= 4.1.1)
-      bundler (>= 1.3.0, < 2.0)
-      railties (= 4.1.1)
-      sprockets-rails (~> 2.0)
-    railties (4.1.1)
-      actionpack (= 4.1.1)
-      activesupport (= 4.1.1)
-      rake (>= 0.8.7)
-      thor (>= 0.18.1, < 2.0)
-    rake (10.3.2)
-    rdoc (4.1.1)
-      json (~> 1.4)
-    sass (3.2.19)
-    sass-rails (4.0.3)
-      railties (>= 4.0.0, < 5.0)
-      sass (~> 3.2.0)
-      sprockets (~> 2.8, <= 2.11.0)
-      sprockets-rails (~> 2.0)
-    sdoc (0.4.0)
-      json (~> 1.8)
-      rdoc (~> 4.0, < 5.0)
-    sprockets (2.11.0)
-      hike (~> 1.2)
-      multi_json (~> 1.0)
-      rack (~> 1.0)
-      tilt (~> 1.1, != 1.3.0)
-    sprockets-rails (2.1.3)
-      actionpack (>= 3.0)
-      activesupport (>= 3.0)
-      sprockets (~> 2.8)
-    sqlite3 (1.3.9-x86-mingw32)
-    thor (0.19.1)
-    thread_safe (0.3.4)
-    tilt (1.4.1)
-    treetop (1.4.15)
-      polyglot
-      polyglot (>= 0.3.1)
-    turbolinks (2.2.2)
-      coffee-rails
-    tzinfo (1.2.1)
-      thread_safe (~> 0.1)
-    tzinfo-data (1.2014.5)
-      tzinfo (>= 1.0.0)
-    uglifier (2.5.3)
-      execjs (>= 0.3.0)
-      json (>= 1.8.0)
-    warden (1.2.3)
-      rack (>= 1.0)
-
-PLATFORMS
-  x86-mingw32
-
-DEPENDENCIES
-  better_errors (~> 1.1.0)
-  binding_of_caller (~> 0.7.2)
-  coffee-rails (~> 4.0.0)
-  devise
-  jbuilder (~> 2.0)
-  jquery-rails
-  omniauth
-  omniauth-oauth2
-  rails (= 4.1.1)
-  sass-rails (~> 4.0.3)
-  sdoc (~> 0.4.0)
-  sqlite3
-  turbolinks
-  tzinfo-data
-  uglifier (>= 1.3.0)
diff --git a/ruby-on-rails/README.md b/ruby-on-rails/README.md
deleted file mode 100644
index fa903dc..0000000
--- a/ruby-on-rails/README.md
+++ /dev/null
@@ -1,66 +0,0 @@
-## README
-
-Ez egy teljes project, egy működő rails alkalmazás ahhoz, hogy legyen min fejleszteni tesztelni a rails klienst. Saját alkalmazás készítéséhez kövesd a lentebbi utasításokat.
-
-
-## Használat
-
-Először is kell devise, omniauth és omniauth-oauth2 gem a Gemfileba.
-
-Nagyjából ezt a tutorialt lehet követni: https://github.com/plataformatec/devise/wiki/OmniAuth:-Overview
-
-Deviseban generálunk saját usert:
-```
-rails generate devise:install
-rails generate devise User
-```
-(User helyett bármi lehet)
-
-Ezután kiegészítjük ezt a modellt és migrálunk is:
-```
-rails g migration AddColumnsToUsers provider uid
-rake db:migrate
-```
-config/initializers/devise.rb:
-```ruby
-config.omniauth :sch, 'APP_ID','APP_SECRET',scope: 'basic mail'
-```
-ha már abban a mappában vagyunk, ebből a projectből a config/initializers/sch.rb -t másoljuk is át
-
-config/roots.rb:
-```ruby
-devise_for :users, :controllers => { :omniauth_callbacks => "users/omniauth_callbacks" }
-```
-(Ha fent nem User-t hoztunk létre akkor ezt is értelemszerűen módosítani kell!)
-
-app/controllers/users/omniauth_callbacks_controller.rb:
-legegyszerűbb másolni innen úgy ahogy van, érdeklődők elolvashatják az Overview-s linket
-
-app/models/user.rb:
-Lényegében másolható, nincs benne nagy varázslat, a két függvény ami benne van az kell ahhoz hogy működjön, ugyancsak a fentebbi linkből megérthető.
-
-Ezzel elvileg a keret fel van építve. Érdemes még egy olyan view-al rendelkezni amin le is lehet tesztelni a dolgot:
-```ruby
-<% if user_signed_in? %>
-	<%= current_user.email%>
-	<br>
-	<%= link_to('Logout', destroy_user_session_path, :method=>'delete') %>
-<% else %>
-	<%= link_to "Sign in with SCH", user_omniauth_authorize_path(:sch) %>
-<% end %>
-```
-Ha csak bejelentkezés után akarsz tartalmat mutatni, akkor config/roots.rb:
-```ruby
-devise_scope :user do
-	authenticated :user do
-		root 'base#index2', as: :authenticated_root
-	end
-
-	unauthenticated do
-		root 'base#index', as: :unauthenticated_root
-	end
-end
-```
-
-## SSL Windows alatt
-  * https://gist.github.com/fnichol/867550
\ No newline at end of file
diff --git a/ruby-on-rails/Rakefile b/ruby-on-rails/Rakefile
deleted file mode 100644
index ba6b733..0000000
--- a/ruby-on-rails/Rakefile
+++ /dev/null
@@ -1,6 +0,0 @@
-# Add your own tasks in files placed in lib/tasks ending in .rake,
-# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
-
-require File.expand_path('../config/application', __FILE__)
-
-Rails.application.load_tasks
diff --git a/ruby-on-rails/app/assets/images/.keep b/ruby-on-rails/app/assets/images/.keep
deleted file mode 100644
index e69de29..0000000
diff --git a/ruby-on-rails/app/assets/javascripts/application.js b/ruby-on-rails/app/assets/javascripts/application.js
deleted file mode 100644
index d6925fa..0000000
--- a/ruby-on-rails/app/assets/javascripts/application.js
+++ /dev/null
@@ -1,16 +0,0 @@
-// This is a manifest file that'll be compiled into application.js, which will include all the files
-// listed below.
-//
-// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
-// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
-//
-// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
-// compiled file.
-//
-// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
-// about supported directives.
-//
-//= require jquery
-//= require jquery_ujs
-//= require turbolinks
-//= require_tree .
diff --git a/ruby-on-rails/app/assets/javascripts/base.js.coffee b/ruby-on-rails/app/assets/javascripts/base.js.coffee
deleted file mode 100644
index 24f83d1..0000000
--- a/ruby-on-rails/app/assets/javascripts/base.js.coffee
+++ /dev/null
@@ -1,3 +0,0 @@
-# Place all the behaviors and hooks related to the matching controller here.
-# All this logic will automatically be available in application.js.
-# You can use CoffeeScript in this file: http://coffeescript.org/
diff --git a/ruby-on-rails/app/assets/stylesheets/application.css b/ruby-on-rails/app/assets/stylesheets/application.css
deleted file mode 100644
index a443db3..0000000
--- a/ruby-on-rails/app/assets/stylesheets/application.css
+++ /dev/null
@@ -1,15 +0,0 @@
-/*
- * This is a manifest file that'll be compiled into application.css, which will include all the files
- * listed below.
- *
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
- * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
- *
- * You're free to add application-wide styles to this file and they'll appear at the bottom of the
- * compiled file so the styles you add here take precedence over styles defined in any styles
- * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
- * file per style scope.
- *
- *= require_tree .
- *= require_self
- */
diff --git a/ruby-on-rails/app/assets/stylesheets/base.css.scss b/ruby-on-rails/app/assets/stylesheets/base.css.scss
deleted file mode 100644
index 7c30fc3..0000000
--- a/ruby-on-rails/app/assets/stylesheets/base.css.scss
+++ /dev/null
@@ -1,3 +0,0 @@
-// Place all the styles related to the base controller here.
-// They will automatically be included in application.css.
-// You can use Sass (SCSS) here: http://sass-lang.com/
diff --git a/ruby-on-rails/app/controllers/application_controller.rb b/ruby-on-rails/app/controllers/application_controller.rb
deleted file mode 100644
index d83690e..0000000
--- a/ruby-on-rails/app/controllers/application_controller.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-class ApplicationController < ActionController::Base
-  # Prevent CSRF attacks by raising an exception.
-  # For APIs, you may want to use :null_session instead.
-  protect_from_forgery with: :exception
-end
diff --git a/ruby-on-rails/app/controllers/base_controller.rb b/ruby-on-rails/app/controllers/base_controller.rb
deleted file mode 100644
index 045e2c7..0000000
--- a/ruby-on-rails/app/controllers/base_controller.rb
+++ /dev/null
@@ -1,10 +0,0 @@
-class BaseController < ApplicationController
-
-	def index
-	
-	end
-	
-	def index2
-	
-	end
-end
diff --git a/ruby-on-rails/app/controllers/concerns/.keep b/ruby-on-rails/app/controllers/concerns/.keep
deleted file mode 100644
index e69de29..0000000
diff --git a/ruby-on-rails/app/controllers/users/omniauth_callbacks_controller.rb b/ruby-on-rails/app/controllers/users/omniauth_callbacks_controller.rb
deleted file mode 100644
index fcdd106..0000000
--- a/ruby-on-rails/app/controllers/users/omniauth_callbacks_controller.rb
+++ /dev/null
@@ -1,20 +0,0 @@
-class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
-  def sch
-	#debug
-    # You need to implement the method below in your model (e.g. app/models/user.rb)
-    @user = User.from_omniauth(request.env["omniauth.auth"])
-
-    if @user.persisted?
-      sign_in_and_redirect @user, :event => :authentication #this will throw if @user is not activated
-      set_flash_message(:notice, :success, :kind => "SCH") if is_navigational_format?
-    else
-      session["devise.sch_data"] = request.env["omniauth.auth"]
-      redirect_to 'base#index2'
-    end
-  end
-  def action_missing(provider)
-    # Set up authentication/authorizations here, and distribute tasks
-    # that are provider specific to other methods, leaving only tasks
-    # that work across all providers in this method. 
-  end
-end
\ No newline at end of file
diff --git a/ruby-on-rails/app/helpers/application_helper.rb b/ruby-on-rails/app/helpers/application_helper.rb
deleted file mode 100644
index de6be79..0000000
--- a/ruby-on-rails/app/helpers/application_helper.rb
+++ /dev/null
@@ -1,2 +0,0 @@
-module ApplicationHelper
-end
diff --git a/ruby-on-rails/app/helpers/base_helper.rb b/ruby-on-rails/app/helpers/base_helper.rb
deleted file mode 100644
index 79fff40..0000000
--- a/ruby-on-rails/app/helpers/base_helper.rb
+++ /dev/null
@@ -1,2 +0,0 @@
-module BaseHelper
-end
diff --git a/ruby-on-rails/app/mailers/.keep b/ruby-on-rails/app/mailers/.keep
deleted file mode 100644
index e69de29..0000000
diff --git a/ruby-on-rails/app/models/.keep b/ruby-on-rails/app/models/.keep
deleted file mode 100644
index e69de29..0000000
diff --git a/ruby-on-rails/app/models/concerns/.keep b/ruby-on-rails/app/models/concerns/.keep
deleted file mode 100644
index e69de29..0000000
diff --git a/ruby-on-rails/app/models/user.rb b/ruby-on-rails/app/models/user.rb
deleted file mode 100644
index b387a70..0000000
--- a/ruby-on-rails/app/models/user.rb
+++ /dev/null
@@ -1,27 +0,0 @@
-class User < ActiveRecord::Base
-  # Include default devise modules. Others available are:
-  # :confirmable, :lockable, :timeoutable and :omniauthable
-  #devise :database_authenticatable, :registerable,
-  #       :recoverable, :rememberable, :trackable, :validatable
-		 
-	devise :database_authenticatable, :omniauthable, :omniauth_providers => [:sch]
-	
-	def self.from_omniauth(auth)
-		where(auth.slice(:provider, :uid)).first_or_create do |user|
-		    
-			user.email = auth.info.email
-			user.password = Devise.friendly_token[0,20]
-			#user.name = auth.info.name   # assuming the user model has a name
-			#user.image = auth.info.image # assuming the user model has an image
-		end
-	end
-	
-	def self.new_with_session(params, session)
-		super.tap do |user|
-			if data = session["devise.sch_data"] && session["devise.sch_data"]["extra"]["raw_info"]
-			    debug
-				user.email = data["email"] if user.email.blank?
-			end
-		end
-	end
-end
diff --git a/ruby-on-rails/app/views/base/index.html.erb b/ruby-on-rails/app/views/base/index.html.erb
deleted file mode 100644
index d930d1a..0000000
--- a/ruby-on-rails/app/views/base/index.html.erb
+++ /dev/null
@@ -1 +0,0 @@
-<%= link_to "Sign in with SCH", user_omniauth_authorize_path(:sch) %>
\ No newline at end of file
diff --git a/ruby-on-rails/app/views/base/index2.html.erb b/ruby-on-rails/app/views/base/index2.html.erb
deleted file mode 100644
index 94dc829..0000000
--- a/ruby-on-rails/app/views/base/index2.html.erb
+++ /dev/null
@@ -1,5 +0,0 @@
-<% if user_signed_in? %>
-	<%= current_user.email%>
-	<br>
-	<%= link_to('Logout', destroy_user_session_path, :method=>'delete') %>
-<% end %>
\ No newline at end of file
diff --git a/ruby-on-rails/app/views/layouts/application.html.erb b/ruby-on-rails/app/views/layouts/application.html.erb
deleted file mode 100644
index 9293c60..0000000
--- a/ruby-on-rails/app/views/layouts/application.html.erb
+++ /dev/null
@@ -1,14 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-  <title>Schauth</title>
-  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
-  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
-  <%= csrf_meta_tags %>
-</head>
-<body>
-
-<%= yield %>
-
-</body>
-</html>
diff --git a/ruby-on-rails/bin/bundle b/ruby-on-rails/bin/bundle
deleted file mode 100644
index e3c2f62..0000000
--- a/ruby-on-rails/bin/bundle
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/usr/bin/env ruby.exe
-ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
-load Gem.bin_path('bundler', 'bundle')
diff --git a/ruby-on-rails/bin/rails b/ruby-on-rails/bin/rails
deleted file mode 100644
index b9f8787..0000000
--- a/ruby-on-rails/bin/rails
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/usr/bin/env ruby.exe
-APP_PATH = File.expand_path('../../config/application',  __FILE__)
-require_relative '../config/boot'
-require 'rails/commands'
diff --git a/ruby-on-rails/bin/rake b/ruby-on-rails/bin/rake
deleted file mode 100644
index f6ed5a2..0000000
--- a/ruby-on-rails/bin/rake
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/usr/bin/env ruby.exe
-require_relative '../config/boot'
-require 'rake'
-Rake.application.run
diff --git a/ruby-on-rails/config.ru b/ruby-on-rails/config.ru
deleted file mode 100644
index 5bc2a61..0000000
--- a/ruby-on-rails/config.ru
+++ /dev/null
@@ -1,4 +0,0 @@
-# This file is used by Rack-based servers to start the application.
-
-require ::File.expand_path('../config/environment',  __FILE__)
-run Rails.application
diff --git a/ruby-on-rails/config/application.rb b/ruby-on-rails/config/application.rb
deleted file mode 100644
index ef5bf05..0000000
--- a/ruby-on-rails/config/application.rb
+++ /dev/null
@@ -1,23 +0,0 @@
-require File.expand_path('../boot', __FILE__)
-
-require 'rails/all'
-
-# Require the gems listed in Gemfile, including any gems
-# you've limited to :test, :development, or :production.
-Bundler.require(*Rails.groups)
-
-module Schauth
-  class Application < Rails::Application
-    # Settings in config/environments/* take precedence over those specified here.
-    # Application configuration should go into files in config/initializers
-    # -- all .rb files in that directory are automatically loaded.
-
-    # 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. Default is UTC.
-    # config.time_zone = 'Central Time (US & Canada)'
-
-    # 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}').to_s]
-    # config.i18n.default_locale = :de
-  end
-end
diff --git a/ruby-on-rails/config/boot.rb b/ruby-on-rails/config/boot.rb
deleted file mode 100644
index 5e5f0c1..0000000
--- a/ruby-on-rails/config/boot.rb
+++ /dev/null
@@ -1,4 +0,0 @@
-# Set up gems listed in the Gemfile.
-ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
-
-require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
diff --git a/ruby-on-rails/config/database.yml b/ruby-on-rails/config/database.yml
deleted file mode 100644
index 1c1a37c..0000000
--- a/ruby-on-rails/config/database.yml
+++ /dev/null
@@ -1,25 +0,0 @@
-# SQLite version 3.x
-#   gem install sqlite3
-#
-#   Ensure the SQLite 3 gem is defined in your Gemfile
-#   gem 'sqlite3'
-#
-default: &default
-  adapter: sqlite3
-  pool: 5
-  timeout: 5000
-
-development:
-  <<: *default
-  database: db/development.sqlite3
-
-# Warning: The database defined as "test" will be erased and
-# re-generated from your development database when you run "rake".
-# Do not set this db to the same as development or production.
-test:
-  <<: *default
-  database: db/test.sqlite3
-
-production:
-  <<: *default
-  database: db/production.sqlite3
diff --git a/ruby-on-rails/config/environment.rb b/ruby-on-rails/config/environment.rb
deleted file mode 100644
index ee8d90d..0000000
--- a/ruby-on-rails/config/environment.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-# Load the Rails application.
-require File.expand_path('../application', __FILE__)
-
-# Initialize the Rails application.
-Rails.application.initialize!
diff --git a/ruby-on-rails/config/environments/development.rb b/ruby-on-rails/config/environments/development.rb
deleted file mode 100644
index ddf0e90..0000000
--- a/ruby-on-rails/config/environments/development.rb
+++ /dev/null
@@ -1,37 +0,0 @@
-Rails.application.configure do
-  # Settings specified here will take precedence over those in config/application.rb.
-
-  # In the development environment your application's code is reloaded on
-  # every request. This slows down response time but is perfect for development
-  # since you don't have to restart the web server when you make code changes.
-  config.cache_classes = false
-
-  # Do not eager load code on boot.
-  config.eager_load = false
-
-  # Show full error reports and disable caching.
-  config.consider_all_requests_local       = true
-  config.action_controller.perform_caching = false
-
-  # Don't care if the mailer can't send.
-  config.action_mailer.raise_delivery_errors = false
-
-  # Print deprecation notices to the Rails logger.
-  config.active_support.deprecation = :log
-
-  # Raise an error on page load if there are pending migrations.
-  config.active_record.migration_error = :page_load
-
-  # Debug mode disables concatenation and preprocessing of assets.
-  # This option may cause significant delays in view rendering with a large
-  # number of complex assets.
-  config.assets.debug = true
-
-  # Adds additional error checking when serving assets at runtime.
-  # Checks for improperly declared sprockets dependencies.
-  # Raises helpful error messages.
-  config.assets.raise_runtime_errors = true
-
-  # Raises error for missing translations
-  # config.action_view.raise_on_missing_translations = true
-end
diff --git a/ruby-on-rails/config/environments/production.rb b/ruby-on-rails/config/environments/production.rb
deleted file mode 100644
index 47d3553..0000000
--- a/ruby-on-rails/config/environments/production.rb
+++ /dev/null
@@ -1,83 +0,0 @@
-Rails.application.configure do
-  # Settings specified here will take precedence over those in config/application.rb.
-
-  # Code is not reloaded between requests.
-  config.cache_classes = true
-
-  # Eager load code on boot. This eager loads most of Rails and
-  # your application in memory, allowing both threaded web servers
-  # and those relying on copy on write to perform better.
-  # Rake tasks automatically ignore this option for performance.
-  config.eager_load = true
-
-  # Full error reports are disabled and caching is turned on.
-  config.consider_all_requests_local       = false
-  config.action_controller.perform_caching = true
-
-  # Enable Rack::Cache to put a simple HTTP cache in front of your application
-  # Add `rack-cache` to your Gemfile before enabling this.
-  # For large-scale production use, consider using a caching reverse proxy like nginx, varnish or squid.
-  # config.action_dispatch.rack_cache = true
-
-  # Disable Rails's static asset server (Apache or nginx will already do this).
-  config.serve_static_assets = false
-
-  # Compress JavaScripts and CSS.
-  config.assets.js_compressor = :uglifier
-  # config.assets.css_compressor = :sass
-
-  # Do not fallback to assets pipeline if a precompiled asset is missed.
-  config.assets.compile = false
-
-  # Generate digests for assets URLs.
-  config.assets.digest = true
-
-  # Version of your assets, change this if you want to expire all your assets.
-  config.assets.version = '1.0'
-
-  # Specifies the header that your server uses for sending files.
-  # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
-  # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
-
-  # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
-  # config.force_ssl = true
-
-  # Set to :debug to see everything in the log.
-  config.log_level = :info
-
-  # Prepend all log lines with the following tags.
-  # config.log_tags = [ :subdomain, :uuid ]
-
-  # Use a different logger for distributed setups.
-  # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
-
-  # Use a different cache store in production.
-  # config.cache_store = :mem_cache_store
-
-  # Enable serving of images, stylesheets, and JavaScripts from an asset server.
-  # config.action_controller.asset_host = "http://assets.example.com"
-
-  # Precompile additional assets.
-  # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
-  # config.assets.precompile += %w( search.js )
-
-  # Ignore bad email addresses and do not raise email delivery errors.
-  # Set this to true and configure the email server for immediate delivery to raise delivery errors.
-  # config.action_mailer.raise_delivery_errors = false
-
-  # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
-  # the I18n.default_locale when a translation cannot be found).
-  config.i18n.fallbacks = true
-
-  # Send deprecation notices to registered listeners.
-  config.active_support.deprecation = :notify
-
-  # Disable automatic flushing of the log to improve performance.
-  # config.autoflush_log = false
-
-  # Use default logging formatter so that PID and timestamp are not suppressed.
-  config.log_formatter = ::Logger::Formatter.new
-
-  # Do not dump schema after migrations.
-  config.active_record.dump_schema_after_migration = false
-end
diff --git a/ruby-on-rails/config/environments/test.rb b/ruby-on-rails/config/environments/test.rb
deleted file mode 100644
index 053f5b6..0000000
--- a/ruby-on-rails/config/environments/test.rb
+++ /dev/null
@@ -1,39 +0,0 @@
-Rails.application.configure do
-  # Settings specified here will take precedence over those in config/application.rb.
-
-  # The test environment is used exclusively to run your application's
-  # test suite. You never need to work with it otherwise. Remember that
-  # your test database is "scratch space" for the test suite and is wiped
-  # and recreated between test runs. Don't rely on the data there!
-  config.cache_classes = true
-
-  # Do not eager load code on boot. This avoids loading your whole application
-  # just for the purpose of running a single test. If you are using a tool that
-  # preloads Rails for running tests, you may have to set it to true.
-  config.eager_load = false
-
-  # Configure static asset server for tests with Cache-Control for performance.
-  config.serve_static_assets  = true
-  config.static_cache_control = 'public, max-age=3600'
-
-  # Show full error reports and disable caching.
-  config.consider_all_requests_local       = true
-  config.action_controller.perform_caching = false
-
-  # Raise exceptions instead of rendering exception templates.
-  config.action_dispatch.show_exceptions = false
-
-  # Disable request forgery protection in test environment.
-  config.action_controller.allow_forgery_protection = false
-
-  # Tell Action Mailer not to deliver emails to the real world.
-  # The :test delivery method accumulates sent emails in the
-  # ActionMailer::Base.deliveries array.
-  config.action_mailer.delivery_method = :test
-
-  # Print deprecation notices to the stderr.
-  config.active_support.deprecation = :stderr
-
-  # Raises error for missing translations
-  # config.action_view.raise_on_missing_translations = true
-end
diff --git a/ruby-on-rails/config/initializers/backtrace_silencers.rb b/ruby-on-rails/config/initializers/backtrace_silencers.rb
deleted file mode 100644
index 59385cd..0000000
--- a/ruby-on-rails/config/initializers/backtrace_silencers.rb
+++ /dev/null
@@ -1,7 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
-# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
-
-# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
-# Rails.backtrace_cleaner.remove_silencers!
diff --git a/ruby-on-rails/config/initializers/cookies_serializer.rb b/ruby-on-rails/config/initializers/cookies_serializer.rb
deleted file mode 100644
index 7a06a89..0000000
--- a/ruby-on-rails/config/initializers/cookies_serializer.rb
+++ /dev/null
@@ -1,3 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-Rails.application.config.action_dispatch.cookies_serializer = :json
\ No newline at end of file
diff --git a/ruby-on-rails/config/initializers/devise.rb b/ruby-on-rails/config/initializers/devise.rb
deleted file mode 100644
index ffa8644..0000000
--- a/ruby-on-rails/config/initializers/devise.rb
+++ /dev/null
@@ -1,256 +0,0 @@
-# Use this hook to configure devise mailer, warden hooks and so forth.
-# Many of these configuration options can be set straight in your model.
-Devise.setup do |config|
-  # The secret key used by Devise. Devise uses this key to generate
-  # random tokens. Changing this key will render invalid all existing
-  # confirmation, reset password and unlock tokens in the database.
-  # config.secret_key = 'dacc560cb546a9701dc66b0447490dd741a3feba2ff2f6e9c854a70fb3f43678f1bdf4a0b5a3ee84cf610c484f4a40adf55fbf85f1d41ffaa27393124216e705'
-
-  # ==> Mailer Configuration
-  # Configure the e-mail address which will be shown in Devise::Mailer,
-  # note that it will be overwritten if you use your own mailer class
-  # with default "from" parameter.
-  config.mailer_sender = 'please-change-me-at-config-initializers-devise@example.com'
-
-  # Configure the class responsible to send e-mails.
-  # config.mailer = 'Devise::Mailer'
-
-  # ==> ORM configuration
-  # Load and configure the ORM. Supports :active_record (default) and
-  # :mongoid (bson_ext recommended) by default. Other ORMs may be
-  # available as additional gems.
-  require 'devise/orm/active_record'
-  config.omniauth :sch, 'APP_ID','APP_SECRET',scope: 'basic mail'
-  # ==> Configuration for any authentication mechanism
-  # Configure which keys are used when authenticating a user. The default is
-  # just :email. You can configure it to use [:username, :subdomain], so for
-  # authenticating a user, both parameters are required. Remember that those
-  # parameters are used only when authenticating and not when retrieving from
-  # session. If you need permissions, you should implement that in a before filter.
-  # You can also supply a hash where the value is a boolean determining whether
-  # or not authentication should be aborted when the value is not present.
-  # config.authentication_keys = [ :email ]
-
-  # Configure parameters from the request object used for authentication. Each entry
-  # given should be a request method and it will automatically be passed to the
-  # find_for_authentication method and considered in your model lookup. For instance,
-  # if you set :request_keys to [:subdomain], :subdomain will be used on authentication.
-  # The same considerations mentioned for authentication_keys also apply to request_keys.
-  # config.request_keys = []
-
-  # Configure which authentication keys should be case-insensitive.
-  # These keys will be downcased upon creating or modifying a user and when used
-  # to authenticate or find a user. Default is :email.
-  config.case_insensitive_keys = [ :email ]
-
-  # Configure which authentication keys should have whitespace stripped.
-  # These keys will have whitespace before and after removed upon creating or
-  # modifying a user and when used to authenticate or find a user. Default is :email.
-  config.strip_whitespace_keys = [ :email ]
-
-  # Tell if authentication through request.params is enabled. True by default.
-  # It can be set to an array that will enable params authentication only for the
-  # given strategies, for example, `config.params_authenticatable = [:database]` will
-  # enable it only for database (email + password) authentication.
-  # config.params_authenticatable = true
-
-  # Tell if authentication through HTTP Auth is enabled. False by default.
-  # It can be set to an array that will enable http authentication only for the
-  # given strategies, for example, `config.http_authenticatable = [:database]` will
-  # enable it only for database authentication. The supported strategies are:
-  # :database      = Support basic authentication with authentication key + password
-  # config.http_authenticatable = false
-
-  # If http headers should be returned for AJAX requests. True by default.
-  # config.http_authenticatable_on_xhr = true
-
-  # The realm used in Http Basic Authentication. 'Application' by default.
-  # config.http_authentication_realm = 'Application'
-
-  # It will change confirmation, password recovery and other workflows
-  # to behave the same regardless if the e-mail provided was right or wrong.
-  # Does not affect registerable.
-  # config.paranoid = true
-
-  # By default Devise will store the user in session. You can skip storage for
-  # particular strategies by setting this option.
-  # Notice that if you are skipping storage for all authentication paths, you
-  # may want to disable generating routes to Devise's sessions controller by
-  # passing skip: :sessions to `devise_for` in your config/routes.rb
-  config.skip_session_storage = [:http_auth]
-
-  # By default, Devise cleans up the CSRF token on authentication to
-  # avoid CSRF token fixation attacks. This means that, when using AJAX
-  # requests for sign in and sign up, you need to get a new CSRF token
-  # from the server. You can disable this option at your own risk.
-  # config.clean_up_csrf_token_on_authentication = true
-
-  # ==> Configuration for :database_authenticatable
-  # For bcrypt, this is the cost for hashing the password and defaults to 10. If
-  # using other encryptors, it sets how many times you want the password re-encrypted.
-  #
-  # Limiting the stretches to just one in testing will increase the performance of
-  # your test suite dramatically. However, it is STRONGLY RECOMMENDED to not use
-  # a value less than 10 in other environments. Note that, for bcrypt (the default
-  # encryptor), the cost increases exponentially with the number of stretches (e.g.
-  # a value of 20 is already extremely slow: approx. 60 seconds for 1 calculation).
-  config.stretches = Rails.env.test? ? 1 : 10
-
-  # Setup a pepper to generate the encrypted password.
-  # config.pepper = 'b5af216625a25af0b06ba2ff556e59fea9ee19157a44ced911bc1a674cee29b8020e28329739c905e1c38b9b4e1d7467d4b31b14001b0dec9bb689a918a43425'
-
-  # ==> Configuration for :confirmable
-  # A period that the user is allowed to access the website even without
-  # confirming their account. For instance, if set to 2.days, the user will be
-  # able to access the website for two days without confirming their account,
-  # access will be blocked just in the third day. Default is 0.days, meaning
-  # the user cannot access the website without confirming their account.
-  # config.allow_unconfirmed_access_for = 2.days
-
-  # A period that the user is allowed to confirm their account before their
-  # token becomes invalid. For example, if set to 3.days, the user can confirm
-  # their account within 3 days after the mail was sent, but on the fourth day
-  # their account can't be confirmed with the token any more.
-  # Default is nil, meaning there is no restriction on how long a user can take
-  # before confirming their account.
-  # config.confirm_within = 3.days
-
-  # If true, requires any email changes to be confirmed (exactly the same way as
-  # initial account confirmation) to be applied. Requires additional unconfirmed_email
-  # db field (see migrations). Until confirmed, new email is stored in
-  # unconfirmed_email column, and copied to email column on successful confirmation.
-  config.reconfirmable = true
-
-  # Defines which key will be used when confirming an account
-  # config.confirmation_keys = [ :email ]
-
-  # ==> Configuration for :rememberable
-  # The time the user will be remembered without asking for credentials again.
-  # config.remember_for = 2.weeks
-
-  # If true, extends the user's remember period when remembered via cookie.
-  # config.extend_remember_period = false
-
-  # Options to be passed to the created cookie. For instance, you can set
-  # secure: true in order to force SSL only cookies.
-  # config.rememberable_options = {}
-
-  # ==> Configuration for :validatable
-  # Range for password length.
-  config.password_length = 8..128
-
-  # Email regex used to validate email formats. It simply asserts that
-  # one (and only one) @ exists in the given string. This is mainly
-  # to give user feedback and not to assert the e-mail validity.
-  # config.email_regexp = /\A[^@]+@[^@]+\z/
-
-  # ==> Configuration for :timeoutable
-  # The time you want to timeout the user session without activity. After this
-  # time the user will be asked for credentials again. Default is 30 minutes.
-  # config.timeout_in = 30.minutes
-
-  # If true, expires auth token on session timeout.
-  # config.expire_auth_token_on_timeout = false
-
-  # ==> Configuration for :lockable
-  # Defines which strategy will be used to lock an account.
-  # :failed_attempts = Locks an account after a number of failed attempts to sign in.
-  # :none            = No lock strategy. You should handle locking by yourself.
-  # config.lock_strategy = :failed_attempts
-
-  # Defines which key will be used when locking and unlocking an account
-  # config.unlock_keys = [ :email ]
-
-  # Defines which strategy will be used to unlock an account.
-  # :email = Sends an unlock link to the user email
-  # :time  = Re-enables login after a certain amount of time (see :unlock_in below)
-  # :both  = Enables both strategies
-  # :none  = No unlock strategy. You should handle unlocking by yourself.
-  # config.unlock_strategy = :both
-
-  # Number of authentication tries before locking an account if lock_strategy
-  # is failed attempts.
-  # config.maximum_attempts = 20
-
-  # Time interval to unlock the account if :time is enabled as unlock_strategy.
-  # config.unlock_in = 1.hour
-
-  # Warn on the last attempt before the account is locked.
-  # config.last_attempt_warning = false
-
-  # ==> Configuration for :recoverable
-  #
-  # Defines which key will be used when recovering the password for an account
-  # config.reset_password_keys = [ :email ]
-
-  # Time interval you can reset your password with a reset password key.
-  # Don't put a too small interval or your users won't have the time to
-  # change their passwords.
-  config.reset_password_within = 6.hours
-
-  # ==> Configuration for :encryptable
-  # Allow you to use another encryption algorithm besides bcrypt (default). You can use
-  # :sha1, :sha512 or encryptors from others authentication tools as :clearance_sha1,
-  # :authlogic_sha512 (then you should set stretches above to 20 for default behavior)
-  # and :restful_authentication_sha1 (then you should set stretches to 10, and copy
-  # REST_AUTH_SITE_KEY to pepper).
-  #
-  # Require the `devise-encryptable` gem when using anything other than bcrypt
-  # config.encryptor = :sha512
-
-  # ==> Scopes configuration
-  # Turn scoped views on. Before rendering "sessions/new", it will first check for
-  # "users/sessions/new". It's turned off by default because it's slower if you
-  # are using only default views.
-  # config.scoped_views = false
-
-  # Configure the default scope given to Warden. By default it's the first
-  # devise role declared in your routes (usually :user).
-  # config.default_scope = :user
-
-  # Set this configuration to false if you want /users/sign_out to sign out
-  # only the current scope. By default, Devise signs out all scopes.
-  # config.sign_out_all_scopes = true
-
-  # ==> Navigation configuration
-  # Lists the formats that should be treated as navigational. Formats like
-  # :html, should redirect to the sign in page when the user does not have
-  # access, but formats like :xml or :json, should return 401.
-  #
-  # If you have any extra navigational formats, like :iphone or :mobile, you
-  # should add them to the navigational formats lists.
-  #
-  # The "*/*" below is required to match Internet Explorer requests.
-  # config.navigational_formats = ['*/*', :html]
-
-  # The default HTTP method used to sign out a resource. Default is :delete.
-  config.sign_out_via = :delete
-
-  # ==> OmniAuth
-  # Add a new OmniAuth provider. Check the wiki for more information on setting
-  # up on your models and hooks.
-  # config.omniauth :github, 'APP_ID', 'APP_SECRET', scope: 'user,public_repo'
-
-  # ==> Warden configuration
-  # If you want to use other strategies, that are not supported by Devise, or
-  # change the failure app, you can configure them inside the config.warden block.
-  #
-  # config.warden do |manager|
-  #   manager.intercept_401 = false
-  #   manager.default_strategies(scope: :user).unshift :some_external_strategy
-  # end
-
-  # ==> Mountable engine configurations
-  # When using Devise inside an engine, let's call it `MyEngine`, and this engine
-  # is mountable, there are some extra configurations to be taken into account.
-  # The following options are available, assuming the engine is mounted as:
-  #
-  #     mount MyEngine, at: '/my_engine'
-  #
-  # The router that invoked `devise_for`, in the example above, would be:
-  # config.router_name = :my_engine
-  #
-  # When using omniauth, Devise cannot automatically set Omniauth path,
-  # so you need to do it manually. For the users scope, it would be:
-  # config.omniauth_path_prefix = '/my_engine/users/auth'
-end
diff --git a/ruby-on-rails/config/initializers/filter_parameter_logging.rb b/ruby-on-rails/config/initializers/filter_parameter_logging.rb
deleted file mode 100644
index 4a994e1..0000000
--- a/ruby-on-rails/config/initializers/filter_parameter_logging.rb
+++ /dev/null
@@ -1,4 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Configure sensitive parameters which will be filtered from the log file.
-Rails.application.config.filter_parameters += [:password]
diff --git a/ruby-on-rails/config/initializers/inflections.rb b/ruby-on-rails/config/initializers/inflections.rb
deleted file mode 100644
index ac033bf..0000000
--- a/ruby-on-rails/config/initializers/inflections.rb
+++ /dev/null
@@ -1,16 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Add new inflection rules using the following format. Inflections
-# are locale specific, and you may define rules for as many different
-# locales as you wish. All of these examples are active by default:
-# ActiveSupport::Inflector.inflections(:en) do |inflect|
-#   inflect.plural /^(ox)$/i, '\1en'
-#   inflect.singular /^(ox)en/i, '\1'
-#   inflect.irregular 'person', 'people'
-#   inflect.uncountable %w( fish sheep )
-# end
-
-# These inflection rules are supported but not enabled by default:
-# ActiveSupport::Inflector.inflections(:en) do |inflect|
-#   inflect.acronym 'RESTful'
-# end
diff --git a/ruby-on-rails/config/initializers/mime_types.rb b/ruby-on-rails/config/initializers/mime_types.rb
deleted file mode 100644
index dc18996..0000000
--- a/ruby-on-rails/config/initializers/mime_types.rb
+++ /dev/null
@@ -1,4 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Add new mime types for use in respond_to blocks:
-# Mime::Type.register "text/richtext", :rtf
diff --git a/ruby-on-rails/config/initializers/sch.rb b/ruby-on-rails/config/initializers/sch.rb
deleted file mode 100644
index f7eac93..0000000
--- a/ruby-on-rails/config/initializers/sch.rb
+++ /dev/null
@@ -1,62 +0,0 @@
-require 'omniauth-oauth2'
-
-#builded from:
-# https://github.com/dluxemburg/omniauth-23andme/blob/master/lib/omniauth/strategies/23andme.rb
-# https://github.com/arthurnn/omniauth-500px/blob/master/lib/omniauth/strategies/500px.rb
-# https://github.com/wingrunr21/omniauth-amazon/blob/master/lib/omniauth/strategies/amazon.rb
-
-
-module OmniAuth
-  module Strategies
-    class Sch < OmniAuth::Strategies::OAuth2
-      option :name, "sch"
-      option :client_options, {
-        :site => 'http://auth.sch.bme.hu',
-		:authorize_url => "/site/login", 
-		:token_url => "/oauth2/token"
-      }
-      option :authorize_params, {grant_type: 'authorization_code'}
-
-      def request_phase
-        puts authorize_params
-        super
-      end
-
-      def authorize_params
-        super.tap do |params|
-          if request.params['scope']
-            params[:scope] = request.params['scope']
-          end
-        end
-      end
-
-      uid { raw_info['internal_id'].to_s }
-
-      info do
-        {
-			:id => raw_info['internal_id'],
-			:email => raw_info['mail'],
-		}
-      end
-
-      extra do
-        {:raw_info => raw_info}
-      end
-
-      def raw_info
-		access_token.options[:parse] = :json
-
-        # This way is not working right now, do it the longer way
-        # for the time being
-        #
-        #@raw_info ||= access_token.get('/ap/user/profile').parsed
-
-        url = "/api/profile"
-        params = {:params => { :access_token => access_token.token}}
-        @raw_info ||=  MultiJson.decode(access_token.client.request(:get, url, params).body)
-        #@raw_info ||= access_token.get("/api/profile/?access_token=").parsed
-      end
-
-    end
-  end
-end
\ No newline at end of file
diff --git a/ruby-on-rails/config/initializers/session_store.rb b/ruby-on-rails/config/initializers/session_store.rb
deleted file mode 100644
index 35cf3f8..0000000
--- a/ruby-on-rails/config/initializers/session_store.rb
+++ /dev/null
@@ -1,3 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-Rails.application.config.session_store :cookie_store, key: '_schauth_session'
diff --git a/ruby-on-rails/config/initializers/wrap_parameters.rb b/ruby-on-rails/config/initializers/wrap_parameters.rb
deleted file mode 100644
index 33725e9..0000000
--- a/ruby-on-rails/config/initializers/wrap_parameters.rb
+++ /dev/null
@@ -1,14 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# This file contains settings for ActionController::ParamsWrapper which
-# is enabled by default.
-
-# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
-ActiveSupport.on_load(:action_controller) do
-  wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
-end
-
-# To enable root element in JSON for ActiveRecord objects.
-# ActiveSupport.on_load(:active_record) do
-#  self.include_root_in_json = true
-# end
diff --git a/ruby-on-rails/config/locales/devise.en.yml b/ruby-on-rails/config/locales/devise.en.yml
deleted file mode 100644
index abccdb0..0000000
--- a/ruby-on-rails/config/locales/devise.en.yml
+++ /dev/null
@@ -1,59 +0,0 @@
-# Additional translations at https://github.com/plataformatec/devise/wiki/I18n
-
-en:
-  devise:
-    confirmations:
-      confirmed: "Your account was successfully confirmed."
-      send_instructions: "You will receive an email with instructions about how to confirm your account in a few minutes."
-      send_paranoid_instructions: "If your email address exists in our database, you will receive an email with instructions about how to confirm your account in a few minutes."
-    failure:
-      already_authenticated: "You are already signed in."
-      inactive: "Your account is not activated yet."
-      invalid: "Invalid email or password."
-      locked: "Your account is locked."
-      last_attempt: "You have one more attempt before your account will be locked."
-      not_found_in_database: "Invalid email or password."
-      timeout: "Your session expired. Please sign in again to continue."
-      unauthenticated: "You need to sign in or sign up before continuing."
-      unconfirmed: "You have to confirm your account before continuing."
-    mailer:
-      confirmation_instructions:
-        subject: "Confirmation instructions"
-      reset_password_instructions:
-        subject: "Reset password instructions"
-      unlock_instructions:
-        subject: "Unlock Instructions"
-    omniauth_callbacks:
-      failure: "Could not authenticate you from %{kind} because \"%{reason}\"."
-      success: "Successfully authenticated from %{kind} account."
-    passwords:
-      no_token: "You can't access this page without coming from a password reset email. If you do come from a password reset email, please make sure you used the full URL provided."
-      send_instructions: "You will receive an email with instructions on how to reset your password in a few minutes."
-      send_paranoid_instructions: "If your email address exists in our database, you will receive a password recovery link at your email address in a few minutes."
-      updated: "Your password was changed successfully. You are now signed in."
-      updated_not_active: "Your password was changed successfully."
-    registrations:
-      destroyed: "Bye! Your account was successfully cancelled. We hope to see you again soon."
-      signed_up: "Welcome! You have signed up successfully."
-      signed_up_but_inactive: "You have signed up successfully. However, we could not sign you in because your account is not yet activated."
-      signed_up_but_locked: "You have signed up successfully. However, we could not sign you in because your account is locked."
-      signed_up_but_unconfirmed: "A message with a confirmation link has been sent to your email address. Please open the link to activate your account."
-      update_needs_confirmation: "You updated your account successfully, but we need to verify your new email address. Please check your email and click on the confirm link to finalize confirming your new email address."
-      updated: "You updated your account successfully."
-    sessions:
-      signed_in: "Signed in successfully."
-      signed_out: "Signed out successfully."
-    unlocks:
-      send_instructions: "You will receive an email with instructions about how to unlock your account in a few minutes."
-      send_paranoid_instructions: "If your account exists, you will receive an email with instructions about how to unlock it in a few minutes."
-      unlocked: "Your account has been unlocked successfully. Please sign in to continue."
-  errors:
-    messages:
-      already_confirmed: "was already confirmed, please try signing in"
-      confirmation_period_expired: "needs to be confirmed within %{period}, please request a new one"
-      expired: "has expired, please request a new one"
-      not_found: "not found"
-      not_locked: "was not locked"
-      not_saved:
-        one: "1 error prohibited this %{resource} from being saved:"
-        other: "%{count} errors prohibited this %{resource} from being saved:"
diff --git a/ruby-on-rails/config/locales/en.yml b/ruby-on-rails/config/locales/en.yml
deleted file mode 100644
index 0653957..0000000
--- a/ruby-on-rails/config/locales/en.yml
+++ /dev/null
@@ -1,23 +0,0 @@
-# Files in the config/locales directory are used for internationalization
-# and are automatically loaded by Rails. If you want to use locales other
-# than English, add the necessary files in this directory.
-#
-# To use the locales, use `I18n.t`:
-#
-#     I18n.t 'hello'
-#
-# In views, this is aliased to just `t`:
-#
-#     <%= t('hello') %>
-#
-# To use a different locale, set it with `I18n.locale`:
-#
-#     I18n.locale = :es
-#
-# This would use the information in config/locales/es.yml.
-#
-# To learn more, please read the Rails Internationalization guide
-# available at http://guides.rubyonrails.org/i18n.html.
-
-en:
-  hello: "Hello world"
diff --git a/ruby-on-rails/config/routes.rb b/ruby-on-rails/config/routes.rb
deleted file mode 100644
index 595004f..0000000
--- a/ruby-on-rails/config/routes.rb
+++ /dev/null
@@ -1,69 +0,0 @@
-Rails.application.routes.draw do
-
-	devise_scope :user do
-		authenticated :user do
-			root 'base#index2', as: :authenticated_root
-		end
-
-		unauthenticated do
-			root 'base#index', as: :unauthenticated_root
-		end
-	end
-
-  #devise_for :users
-  devise_for :users, :controllers => { :omniauth_callbacks => "users/omniauth_callbacks" }
-  # The priority is based upon order of creation: first created -> highest priority.
-  # See how all your routes lay out with "rake routes".
-
-  # You can have the root of your site routed with "root"
-  # root 'welcome#index'
-
-  # Example of regular route:
-  #   get 'products/:id' => 'catalog#view'
-
-  # Example of named route that can be invoked with purchase_url(id: product.id)
-  #   get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
-
-  # Example resource route (maps HTTP verbs to controller actions automatically):
-  #   resources :products
-
-  # Example resource route with options:
-  #   resources :products do
-  #     member do
-  #       get 'short'
-  #       post 'toggle'
-  #     end
-  #
-  #     collection do
-  #       get 'sold'
-  #     end
-  #   end
-
-  # Example resource route with sub-resources:
-  #   resources :products do
-  #     resources :comments, :sales
-  #     resource :seller
-  #   end
-
-  # Example resource route with more complex sub-resources:
-  #   resources :products do
-  #     resources :comments
-  #     resources :sales do
-  #       get 'recent', on: :collection
-  #     end
-  #   end
-
-  # Example resource route with concerns:
-  #   concern :toggleable do
-  #     post 'toggle'
-  #   end
-  #   resources :posts, concerns: :toggleable
-  #   resources :photos, concerns: :toggleable
-
-  # Example resource route within a namespace:
-  #   namespace :admin do
-  #     # Directs /admin/products/* to Admin::ProductsController
-  #     # (app/controllers/admin/products_controller.rb)
-  #     resources :products
-  #   end
-end
diff --git a/ruby-on-rails/config/secrets.yml b/ruby-on-rails/config/secrets.yml
deleted file mode 100644
index c357211..0000000
--- a/ruby-on-rails/config/secrets.yml
+++ /dev/null
@@ -1,22 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Your secret key is used for verifying the integrity of signed cookies.
-# If you change this key, all old signed cookies will become invalid!
-
-# Make sure the secret is at least 30 characters and all random,
-# no regular words or you'll be exposed to dictionary attacks.
-# You can use `rake secret` to generate a secure secret key.
-
-# Make sure the secrets in this file are kept private
-# if you're sharing your code publicly.
-
-development:
-  secret_key_base: 70f1fe559ad9e59e256890eb78d92a466ae7192ff650910ec4042815a3ba1b35435eef6f2693eb53bf7ac35526b5360256a4cf8a72ff5313950080ed6e3feda6
-
-test:
-  secret_key_base: a5703a88aba46cd56e864cb77740a3f5c24ca261a7da159051d962c7efb18bf8214a546e5cb4a19b522827e5a153fbfe6ef602a0894b7f89e4c600401609b141
-
-# Do not keep production secrets in the repository,
-# instead read values from the environment.
-production:
-  secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
diff --git a/ruby-on-rails/db/migrate/20140722164618_devise_create_users.rb b/ruby-on-rails/db/migrate/20140722164618_devise_create_users.rb
deleted file mode 100644
index cf497c2..0000000
--- a/ruby-on-rails/db/migrate/20140722164618_devise_create_users.rb
+++ /dev/null
@@ -1,42 +0,0 @@
-class DeviseCreateUsers < ActiveRecord::Migration
-  def change
-    create_table(:users) do |t|
-      ## Database authenticatable
-      t.string :email,              null: false, default: ""
-      t.string :encrypted_password, null: false, default: ""
-
-      ## Recoverable
-      t.string   :reset_password_token
-      t.datetime :reset_password_sent_at
-
-      ## Rememberable
-      t.datetime :remember_created_at
-
-      ## Trackable
-      t.integer  :sign_in_count, default: 0, null: false
-      t.datetime :current_sign_in_at
-      t.datetime :last_sign_in_at
-      t.string   :current_sign_in_ip
-      t.string   :last_sign_in_ip
-
-      ## Confirmable
-      # t.string   :confirmation_token
-      # t.datetime :confirmed_at
-      # t.datetime :confirmation_sent_at
-      # t.string   :unconfirmed_email # Only if using reconfirmable
-
-      ## Lockable
-      # t.integer  :failed_attempts, default: 0, null: false # Only if lock strategy is :failed_attempts
-      # t.string   :unlock_token # Only if unlock strategy is :email or :both
-      # t.datetime :locked_at
-
-
-      t.timestamps
-    end
-
-    add_index :users, :email,                unique: true
-    add_index :users, :reset_password_token, unique: true
-    # add_index :users, :confirmation_token,   unique: true
-    # add_index :users, :unlock_token,         unique: true
-  end
-end
diff --git a/ruby-on-rails/db/migrate/20140722164654_add_colums_to_users.rb b/ruby-on-rails/db/migrate/20140722164654_add_colums_to_users.rb
deleted file mode 100644
index f31b635..0000000
--- a/ruby-on-rails/db/migrate/20140722164654_add_colums_to_users.rb
+++ /dev/null
@@ -1,6 +0,0 @@
-class AddColumsToUsers < ActiveRecord::Migration
-  def change
-    add_column :users, :provider, :string
-    add_column :users, :uid, :string
-  end
-end
diff --git a/ruby-on-rails/db/schema.rb b/ruby-on-rails/db/schema.rb
deleted file mode 100644
index eae9b6f..0000000
--- a/ruby-on-rails/db/schema.rb
+++ /dev/null
@@ -1,36 +0,0 @@
-# encoding: UTF-8
-# This file is auto-generated from the current state of the database. Instead
-# of editing this file, please use the migrations feature of Active Record to
-# incrementally modify your database, and then regenerate this schema definition.
-#
-# Note that this schema.rb definition is the authoritative source for your
-# database schema. If you need to create the application database on another
-# system, you should be using db:schema:load, not running all the migrations
-# from scratch. The latter is a flawed and unsustainable approach (the more migrations
-# you'll amass, the slower it'll run and the greater likelihood for issues).
-#
-# It's strongly recommended that you check this file into your version control system.
-
-ActiveRecord::Schema.define(version: 20140722164654) do
-
-  create_table "users", force: true do |t|
-    t.string   "email",                  default: "", null: false
-    t.string   "encrypted_password",     default: "", null: false
-    t.string   "reset_password_token"
-    t.datetime "reset_password_sent_at"
-    t.datetime "remember_created_at"
-    t.integer  "sign_in_count",          default: 0,  null: false
-    t.datetime "current_sign_in_at"
-    t.datetime "last_sign_in_at"
-    t.string   "current_sign_in_ip"
-    t.string   "last_sign_in_ip"
-    t.datetime "created_at"
-    t.datetime "updated_at"
-    t.string   "provider"
-    t.string   "uid"
-  end
-
-  add_index "users", ["email"], name: "index_users_on_email", unique: true
-  add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
-
-end
diff --git a/ruby-on-rails/db/seeds.rb b/ruby-on-rails/db/seeds.rb
deleted file mode 100644
index 4edb1e8..0000000
--- a/ruby-on-rails/db/seeds.rb
+++ /dev/null
@@ -1,7 +0,0 @@
-# This file should contain all the record creation needed to seed the database with its default values.
-# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
-#
-# Examples:
-#
-#   cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
-#   Mayor.create(name: 'Emanuel', city: cities.first)
diff --git a/ruby-on-rails/lib/assets/.keep b/ruby-on-rails/lib/assets/.keep
deleted file mode 100644
index e69de29..0000000
diff --git a/ruby-on-rails/lib/tasks/.keep b/ruby-on-rails/lib/tasks/.keep
deleted file mode 100644
index e69de29..0000000
diff --git a/ruby-on-rails/log/.keep b/ruby-on-rails/log/.keep
deleted file mode 100644
index e69de29..0000000
diff --git a/ruby-on-rails/public/404.html b/ruby-on-rails/public/404.html
deleted file mode 100644
index b612547..0000000
--- a/ruby-on-rails/public/404.html
+++ /dev/null
@@ -1,67 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-  <title>The page you were looking for doesn't exist (404)</title>
-  <meta name="viewport" content="width=device-width,initial-scale=1">
-  <style>
-  body {
-    background-color: #EFEFEF;
-    color: #2E2F30;
-    text-align: center;
-    font-family: arial, sans-serif;
-    margin: 0;
-  }
-
-  div.dialog {
-    width: 95%;
-    max-width: 33em;
-    margin: 4em auto 0;
-  }
-
-  div.dialog > div {
-    border: 1px solid #CCC;
-    border-right-color: #999;
-    border-left-color: #999;
-    border-bottom-color: #BBB;
-    border-top: #B00100 solid 4px;
-    border-top-left-radius: 9px;
-    border-top-right-radius: 9px;
-    background-color: white;
-    padding: 7px 12% 0;
-    box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
-  }
-
-  h1 {
-    font-size: 100%;
-    color: #730E15;
-    line-height: 1.5em;
-  }
-
-  div.dialog > p {
-    margin: 0 0 1em;
-    padding: 1em;
-    background-color: #F7F7F7;
-    border: 1px solid #CCC;
-    border-right-color: #999;
-    border-left-color: #999;
-    border-bottom-color: #999;
-    border-bottom-left-radius: 4px;
-    border-bottom-right-radius: 4px;
-    border-top-color: #DADADA;
-    color: #666;
-    box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
-  }
-  </style>
-</head>
-
-<body>
-  <!-- This file lives in public/404.html -->
-  <div class="dialog">
-    <div>
-      <h1>The page you were looking for doesn't exist.</h1>
-      <p>You may have mistyped the address or the page may have moved.</p>
-    </div>
-    <p>If you are the application owner check the logs for more information.</p>
-  </div>
-</body>
-</html>
diff --git a/ruby-on-rails/public/422.html b/ruby-on-rails/public/422.html
deleted file mode 100644
index a21f82b..0000000
--- a/ruby-on-rails/public/422.html
+++ /dev/null
@@ -1,67 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-  <title>The change you wanted was rejected (422)</title>
-  <meta name="viewport" content="width=device-width,initial-scale=1">
-  <style>
-  body {
-    background-color: #EFEFEF;
-    color: #2E2F30;
-    text-align: center;
-    font-family: arial, sans-serif;
-    margin: 0;
-  }
-
-  div.dialog {
-    width: 95%;
-    max-width: 33em;
-    margin: 4em auto 0;
-  }
-
-  div.dialog > div {
-    border: 1px solid #CCC;
-    border-right-color: #999;
-    border-left-color: #999;
-    border-bottom-color: #BBB;
-    border-top: #B00100 solid 4px;
-    border-top-left-radius: 9px;
-    border-top-right-radius: 9px;
-    background-color: white;
-    padding: 7px 12% 0;
-    box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
-  }
-
-  h1 {
-    font-size: 100%;
-    color: #730E15;
-    line-height: 1.5em;
-  }
-
-  div.dialog > p {
-    margin: 0 0 1em;
-    padding: 1em;
-    background-color: #F7F7F7;
-    border: 1px solid #CCC;
-    border-right-color: #999;
-    border-left-color: #999;
-    border-bottom-color: #999;
-    border-bottom-left-radius: 4px;
-    border-bottom-right-radius: 4px;
-    border-top-color: #DADADA;
-    color: #666;
-    box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
-  }
-  </style>
-</head>
-
-<body>
-  <!-- This file lives in public/422.html -->
-  <div class="dialog">
-    <div>
-      <h1>The change you wanted was rejected.</h1>
-      <p>Maybe you tried to change something you didn't have access to.</p>
-    </div>
-    <p>If you are the application owner check the logs for more information.</p>
-  </div>
-</body>
-</html>
diff --git a/ruby-on-rails/public/500.html b/ruby-on-rails/public/500.html
deleted file mode 100644
index 061abc5..0000000
--- a/ruby-on-rails/public/500.html
+++ /dev/null
@@ -1,66 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-  <title>We're sorry, but something went wrong (500)</title>
-  <meta name="viewport" content="width=device-width,initial-scale=1">
-  <style>
-  body {
-    background-color: #EFEFEF;
-    color: #2E2F30;
-    text-align: center;
-    font-family: arial, sans-serif;
-    margin: 0;
-  }
-
-  div.dialog {
-    width: 95%;
-    max-width: 33em;
-    margin: 4em auto 0;
-  }
-
-  div.dialog > div {
-    border: 1px solid #CCC;
-    border-right-color: #999;
-    border-left-color: #999;
-    border-bottom-color: #BBB;
-    border-top: #B00100 solid 4px;
-    border-top-left-radius: 9px;
-    border-top-right-radius: 9px;
-    background-color: white;
-    padding: 7px 12% 0;
-    box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
-  }
-
-  h1 {
-    font-size: 100%;
-    color: #730E15;
-    line-height: 1.5em;
-  }
-
-  div.dialog > p {
-    margin: 0 0 1em;
-    padding: 1em;
-    background-color: #F7F7F7;
-    border: 1px solid #CCC;
-    border-right-color: #999;
-    border-left-color: #999;
-    border-bottom-color: #999;
-    border-bottom-left-radius: 4px;
-    border-bottom-right-radius: 4px;
-    border-top-color: #DADADA;
-    color: #666;
-    box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
-  }
-  </style>
-</head>
-
-<body>
-  <!-- This file lives in public/500.html -->
-  <div class="dialog">
-    <div>
-      <h1>We're sorry, but something went wrong.</h1>
-    </div>
-    <p>If you are the application owner check the logs for more information.</p>
-  </div>
-</body>
-</html>
diff --git a/ruby-on-rails/public/favicon.ico b/ruby-on-rails/public/favicon.ico
deleted file mode 100644
index e69de29..0000000
diff --git a/ruby-on-rails/public/robots.txt b/ruby-on-rails/public/robots.txt
deleted file mode 100644
index 3c9c7c0..0000000
--- a/ruby-on-rails/public/robots.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
-#
-# To ban all spiders from the entire site uncomment the next two lines:
-# User-agent: *
-# Disallow: /
diff --git a/ruby-on-rails/test/controllers/.keep b/ruby-on-rails/test/controllers/.keep
deleted file mode 100644
index e69de29..0000000
diff --git a/ruby-on-rails/test/controllers/base_controller_test.rb b/ruby-on-rails/test/controllers/base_controller_test.rb
deleted file mode 100644
index d74c58d..0000000
--- a/ruby-on-rails/test/controllers/base_controller_test.rb
+++ /dev/null
@@ -1,7 +0,0 @@
-require 'test_helper'
-
-class BaseControllerTest < ActionController::TestCase
-  # test "the truth" do
-  #   assert true
-  # end
-end
diff --git a/ruby-on-rails/test/fixtures/.keep b/ruby-on-rails/test/fixtures/.keep
deleted file mode 100644
index e69de29..0000000
diff --git a/ruby-on-rails/test/fixtures/users.yml b/ruby-on-rails/test/fixtures/users.yml
deleted file mode 100644
index 937a0c0..0000000
--- a/ruby-on-rails/test/fixtures/users.yml
+++ /dev/null
@@ -1,11 +0,0 @@
-# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
-
-# This model initially had no columns defined.  If you add columns to the
-# model remove the '{}' from the fixture names and add the columns immediately
-# below each fixture, per the syntax in the comments below
-#
-one: {}
-# column: value
-#
-two: {}
-#  column: value
diff --git a/ruby-on-rails/test/helpers/.keep b/ruby-on-rails/test/helpers/.keep
deleted file mode 100644
index e69de29..0000000
diff --git a/ruby-on-rails/test/helpers/base_helper_test.rb b/ruby-on-rails/test/helpers/base_helper_test.rb
deleted file mode 100644
index cd5d349..0000000
--- a/ruby-on-rails/test/helpers/base_helper_test.rb
+++ /dev/null
@@ -1,4 +0,0 @@
-require 'test_helper'
-
-class BaseHelperTest < ActionView::TestCase
-end
diff --git a/ruby-on-rails/test/integration/.keep b/ruby-on-rails/test/integration/.keep
deleted file mode 100644
index e69de29..0000000
diff --git a/ruby-on-rails/test/mailers/.keep b/ruby-on-rails/test/mailers/.keep
deleted file mode 100644
index e69de29..0000000
diff --git a/ruby-on-rails/test/models/.keep b/ruby-on-rails/test/models/.keep
deleted file mode 100644
index e69de29..0000000
diff --git a/ruby-on-rails/test/models/user_test.rb b/ruby-on-rails/test/models/user_test.rb
deleted file mode 100644
index 82f61e0..0000000
--- a/ruby-on-rails/test/models/user_test.rb
+++ /dev/null
@@ -1,7 +0,0 @@
-require 'test_helper'
-
-class UserTest < ActiveSupport::TestCase
-  # test "the truth" do
-  #   assert true
-  # end
-end
diff --git a/ruby-on-rails/test/test_helper.rb b/ruby-on-rails/test/test_helper.rb
deleted file mode 100644
index bf95f81..0000000
--- a/ruby-on-rails/test/test_helper.rb
+++ /dev/null
@@ -1,13 +0,0 @@
-ENV['RAILS_ENV'] ||= 'test'
-require File.expand_path('../../config/environment', __FILE__)
-require 'rails/test_help'
-
-class ActiveSupport::TestCase
-  # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
-  #
-  # Note: You'll currently still have to declare fixtures explicitly in integration tests
-  # -- they do not yet inherit this setting
-  fixtures :all
-
-  # Add more helper methods to be used by all tests here...
-end
diff --git a/ruby-on-rails/vendor/assets/javascripts/.keep b/ruby-on-rails/vendor/assets/javascripts/.keep
deleted file mode 100644
index e69de29..0000000
diff --git a/ruby-on-rails/vendor/assets/stylesheets/.keep b/ruby-on-rails/vendor/assets/stylesheets/.keep
deleted file mode 100644
index e69de29..0000000
-- 
GitLab