setting up first view
This commit is contained in:
@@ -13,4 +13,5 @@
|
||||
//= require jquery
|
||||
//= require jquery_ujs
|
||||
//= require turbolinks
|
||||
//= require bootstrap-sprockets
|
||||
//= require_tree .
|
||||
|
||||
@@ -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"
|
||||
@@ -1,2 +0,0 @@
|
||||
class SuportersController < ApplicationController
|
||||
end
|
||||
@@ -0,0 +1,5 @@
|
||||
class SupportersController < ApplicationController
|
||||
def new
|
||||
@supporter = Supporter.new
|
||||
end
|
||||
end
|
||||
@@ -1,2 +0,0 @@
|
||||
module SuportersHelper
|
||||
end
|
||||
+9
-10
@@ -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
|
||||
|
||||
@@ -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>
|
||||
@@ -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
|
||||
@@ -0,0 +1 @@
|
||||
h1 Test
|
||||
Reference in New Issue
Block a user