diff --git a/app/assets/javascripts/newsletter.coffee b/app/assets/javascripts/newsletter.coffee new file mode 100644 index 0000000..24f83d1 --- /dev/null +++ b/app/assets/javascripts/newsletter.coffee @@ -0,0 +1,3 @@ +# 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/app/assets/stylesheets/newsletter.scss b/app/assets/stylesheets/newsletter.scss new file mode 100644 index 0000000..86adfd4 --- /dev/null +++ b/app/assets/stylesheets/newsletter.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the Newsletter 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/newsletter_controller.rb b/app/controllers/newsletter_controller.rb new file mode 100644 index 0000000..fe16698 --- /dev/null +++ b/app/controllers/newsletter_controller.rb @@ -0,0 +1,16 @@ +# frozen_string_literal: true + +# Getting Newsletter emails +class NewsletterController < ApplicationController + def index; end + + def new + @new_email = NewEmail.new + end + + def create + @new_email = NewEmail.new + end + + def destroy; end +end diff --git a/app/controllers/site_controller.rb b/app/controllers/site_controller.rb index 141847a..05bf2c3 100644 --- a/app/controllers/site_controller.rb +++ b/app/controllers/site_controller.rb @@ -74,8 +74,6 @@ class SiteController < ApplicationController else return head(:bad_request) end - - end diff --git a/app/helpers/newsletter_helper.rb b/app/helpers/newsletter_helper.rb new file mode 100644 index 0000000..8253714 --- /dev/null +++ b/app/helpers/newsletter_helper.rb @@ -0,0 +1,2 @@ +module NewsletterHelper +end diff --git a/app/models/new_email.rb b/app/models/new_email.rb new file mode 100644 index 0000000..73b0311 --- /dev/null +++ b/app/models/new_email.rb @@ -0,0 +1,2 @@ +class NewEmail < ApplicationRecord +end diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 38fd2e4..deeefa9 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -36,12 +36,12 @@ <%= yield %> -