Permalink
Browse files

work on newsletter

  • Loading branch information...
spaudanjo committed Mar 7, 2012
1 parent b8eadd9 commit 92f1ac71add5f8303da64932f93f18def3c14470
@@ -10,6 +10,3 @@
// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
// GO AFTER THE REQUIRES BELOW.
//
-//= require jquery
-//= require jquery_ujs
-//= require_tree .
@@ -3,7 +3,6 @@ class NewslettersController < ApplicationController
def register
-
user = User.find_by_email(params[:email])
old_newsletter = user.newsletter || false
@@ -12,7 +11,7 @@ def register
user.save!
- render :text => "user.lastname " + user.lastname + "; old_newsletter: " + old_newsletter.to_s
+ # render :text => "user.lastname " + user.lastname + "; old_newsletter: " + old_newsletter.to_s
end
@@ -1,7 +1,7 @@
<% css_prefix = "goldencobra-newsletter-registration" %>
-<%# <%= form_tag "/goldencobra_newsletter/newsletters/register", :remote => true, :id => "#{css_prefix}-form" do %>
-<%= form_tag "/goldencobra_newsletter/newsletters/register", :remote => false, :id => "#{css_prefix}-form" do %>
+<%# <%= form_tag "/goldencobra_newsletter/newsletters/register", :remote => false, :id => "#{css_prefix}-form" do %>
+<%= form_tag "/goldencobra_newsletter/newsletters/register", :remote => true, :id => "#{css_prefix}-form" do %>
<div class="#{css_prefix}-field-group">
<ul>
@@ -0,0 +1 @@
+window.alert("jo");
@@ -10,6 +10,3 @@
// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
// GO AFTER THE REQUIRES BELOW.
//
-//= require jquery
-//= require jquery_ujs
-//= require_tree .

0 comments on commit 92f1ac7

Please sign in to comment.