diff --git a/Gemfile b/Gemfile
index b494e47..5d951fb 100644
--- a/Gemfile
+++ b/Gemfile
@@ -1,14 +1,20 @@
source 'https://rubygems.org'
+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.2.5.2'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
+gem 'bootstrap-sass'
+gem 'autoprefixer-rails'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .coffee assets and views
+gem 'coffee-rails', '~> 4.1.0'
+# See https://github.com/rails/execjs#readme for more supported runtimes
+# gem 'therubyracer', platforms: :ruby
# Use jquery as the JavaScript library
gem 'jquery-rails'
@@ -36,4 +42,7 @@ end
group :development do
# Access an IRB console on exception pages or by using <%= console %> in views
gem 'web-console', '~> 2.0'
+
+ # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
+ gem 'spring'
end
diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js
index e07c5a8..37106d2 100644
--- a/app/assets/javascripts/application.js
+++ b/app/assets/javascripts/application.js
@@ -14,3 +14,5 @@
//= require jquery_ujs
//= require turbolinks
//= require_tree .
+//= require bootstrap-sprockets
+//= require bootstrap-sprockets
diff --git a/app/assets/stylesheets/application.css.scss b/app/assets/stylesheets/application.css.scss
new file mode 100644
index 0000000..7f8c859
--- /dev/null
+++ b/app/assets/stylesheets/application.css.scss
@@ -0,0 +1,2 @@
+ @import "bootstrap-sprockets";
+ @import "bootstrap";
diff --git a/app/assets/stylesheets/pages.scss b/app/assets/stylesheets/pages.scss
new file mode 100644
index 0000000..0d6878a
--- /dev/null
+++ b/app/assets/stylesheets/pages.scss
@@ -0,0 +1,3 @@
+// Place all the styles related to the pages controller here.
+// They will automatically be included in application.css.
+// You can use Sass (SCSS) here: http://sass-lang.com/
diff --git a/app/controllers/pages_controller.rb b/app/controllers/pages_controller.rb
new file mode 100644
index 0000000..d76051a
--- /dev/null
+++ b/app/controllers/pages_controller.rb
@@ -0,0 +1,11 @@
+class PagesController < ApplicationController
+ def anasayfa
+@movies=Movie.all
+ end
+ def hakkimizda
+
+ end
+ def iletisim
+
+ end
+ end
diff --git a/app/models/movie.rb b/app/models/movie.rb
new file mode 100644
index 0000000..49198a7
--- /dev/null
+++ b/app/models/movie.rb
@@ -0,0 +1,2 @@
+class Movie < ActiveRecord::Base
+end
diff --git a/app/views/_navbar.html.erb b/app/views/_navbar.html.erb
new file mode 100644
index 0000000..d71b8a5
--- /dev/null
+++ b/app/views/_navbar.html.erb
@@ -0,0 +1,5 @@
+
diff --git a/app/views/anasayfa.html.erb b/app/views/anasayfa.html.erb
new file mode 100644
index 0000000..c37f517
--- /dev/null
+++ b/app/views/anasayfa.html.erb
@@ -0,0 +1,7 @@
+
Anasayfa
+
List of Movies
+
+ <% @movies.each do |movie| %>
+
<%= movie.title %>
+<% end %>
+
diff --git a/app/views/hakkimizda.html.erb b/app/views/hakkimizda.html.erb
new file mode 100644
index 0000000..3f2ee31
--- /dev/null
+++ b/app/views/hakkimizda.html.erb
@@ -0,0 +1 @@
+
Hakkımızda
diff --git a/app/views/iletisim.html.erb b/app/views/iletisim.html.erb
new file mode 100644
index 0000000..8b840d5
--- /dev/null
+++ b/app/views/iletisim.html.erb
@@ -0,0 +1 @@
+
İletişim
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
index 2fb82d3..141a864 100644
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -1,14 +1,13 @@
- Filmci
+ Movies
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
<%= csrf_meta_tags %>
-
-<%= yield %>
-
+ <%= render 'shared/navbar' %>
+ <%= yield %>
diff --git a/config/routes.rb b/config/routes.rb
index 3f66539..241f826 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,4 +1,7 @@
Rails.application.routes.draw do
+ root "pages#anasayfa",as: :anasayfa
+ get "/hakkimizda",to:"pages#hakkimizda",as: :hakkimizda
+ get "/iletisim",to:"pages#iletisim",as: :iletisim
# The priority is based upon order of creation: first created -> highest priority.
# See how all your routes lay out with "rake routes".
diff --git a/db/20160313004727_add_movies_to_archive.rb b/db/20160313004727_add_movies_to_archive.rb
new file mode 100644
index 0000000..8cd2175
--- /dev/null
+++ b/db/20160313004727_add_movies_to_archive.rb
@@ -0,0 +1,12 @@
+class AddMoviesToArchive < ActiveRecord::Migration
+ def change
+ create_table :movies do |t|
+ t.string :title
+ t.text :description
+ t.string :director
+ t.string :country
+ t.integer :date
+ t.timestamps null: false
+ end
+ end
+end
diff --git a/db/development.sqlite3 b/db/development.sqlite3
new file mode 100644
index 0000000..d6100b4
Binary files /dev/null and b/db/development.sqlite3 differ
diff --git a/db/schema.rb b/db/schema.rb
new file mode 100644
index 0000000..d00d6b6
--- /dev/null
+++ b/db/schema.rb
@@ -0,0 +1,26 @@
+# 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: 20160313004727) do
+
+ create_table "movies", force: :cascade do |t|
+ t.string "title"
+ t.text "description"
+ t.string "director"
+ t.string "country"
+ t.integer "date"
+ t.datetime "created_at", null: false
+ t.datetime "updated_at", null: false
+ end
+
+end