setting up first view

This commit is contained in:
2015-10-03 06:38:11 +02:00
parent c7a2fbe62c
commit af827b7e77
13 changed files with 37 additions and 85 deletions
+1
View File
@@ -13,4 +13,5 @@
//= require jquery
//= require jquery_ujs
//= require turbolinks
//= require bootstrap-sprockets
//= require_tree .
-3
View File
@@ -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/
@@ -13,3 +13,5 @@
*= require_tree .
*= require_self
*/
@import "bootstrap-sprockets"
@import "bootstrap"
-2
View File
@@ -1,2 +0,0 @@
class SuportersController < ApplicationController
end
+5
View File
@@ -0,0 +1,5 @@
class SupportersController < ApplicationController
def new
@supporter = Supporter.new
end
end
-2
View File
@@ -1,2 +0,0 @@
module SuportersHelper
end
+9 -10
View File
@@ -1,16 +1,15 @@
class Supporter
include Mongoid::Document
field :first_name, type: String
field :last_name, type: String
field :street, type: String
field :zip, type: Integer
field :email, type: String
field :support, type: String # Indicates the type of support
field :votable, type: Boolean
field :first_name, type: String
field :last_name, type: String
field :street, type: String
field :zip, type: Integer
field :email, type: String
field :support, type: String # Indicates the type of support
field :age_category, type: String
validates :email, presence: true, uniqueness: true
validates :support, presence: true
validates :email, presence: true, uniqueness: true
validates :support, presence: true
validates :age_category, presence: true
end
-14
View File
@@ -1,14 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>Ch420</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>
+9
View File
@@ -0,0 +1,9 @@
html
head
title Ch420
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true
= javascript_include_tag 'application', 'data-turbolinks-track' => true
= csrf_meta_tags
body
.container
= yield
+1
View File
@@ -0,0 +1 @@
h1 Test