refinerycms-newsletters 1.0 → 1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,7 +13,7 @@ class NewslettersController < ApplicationController
13
13
  if @newsletter.save
14
14
  redirect_to thank_you_newsletters_url
15
15
  else
16
- render :action => 'new'
16
+ render :action => 'index'
17
17
  end
18
18
  end
19
19
 
@@ -2,6 +2,6 @@ class Newsletter < ActiveRecord::Base
2
2
 
3
3
  acts_as_indexed :fields => [:name, :email]
4
4
 
5
- validates :name, :presence => true, :uniqueness => true
6
-
5
+ validates :name, :presence => true
6
+ validates :email, :presence => true, :uniqueness => true
7
7
  end
@@ -1,6 +1,9 @@
1
1
  <% content_for :body_content_left do %>
2
2
  <div class='newsletters'>
3
- <%#=raw @page[Page.default_parts.first.to_sym] %>
3
+ <p>
4
+ Thank you for signing up to receive email updates from MyAppalogues. We respects your privacy and we will not share our customer information with anyone.<br />
5
+ Your information will be used exclusively for newsletter and promotions by us.
6
+ </p>
4
7
 
5
8
  <%= form_for @newsletter do |f| %>
6
9
  <%= render :partial => "/shared/admin/error_messages",
@@ -1 +1,10 @@
1
- Thank you for your subscription. Have a nice day!
1
+ <% content_for :body_content_left do %>
2
+ <div class='newsletters'>
3
+ <p>Thank you for your subscription. Have a nice day!</p>
4
+ <br />
5
+ <div class='actions'>
6
+ <%= link_to "Go Back", "/"%>
7
+ </div>
8
+ </div>
9
+ <% end %>
10
+ <%= render :partial => "/shared/content_page" %>
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refinerycms-newsletters
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
- - 0
9
- version: "1.0"
8
+ - 1
9
+ version: "1.1"
10
10
  platform: ruby
11
11
  authors: []
12
12