Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

work on newsletter

  • Loading branch information...
commit 92f1ac71add5f8303da64932f93f18def3c14470 1 parent b8eadd9
@spaudanjo spaudanjo authored
View
3  app/assets/javascripts/goldencobra-newsletter/application.js
@@ -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 .
View
3  app/controllers/goldencobra_newsletter/newsletters_controller.rb
@@ -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
View
4 app/views/goldencobra_newsletter/newsletters/_register.html.erb
@@ -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>
View
1  app/views/goldencobra_newsletter/newsletters/register.js.erb
@@ -0,0 +1 @@
+window.alert("jo");
View
3  test/dummy/app/assets/javascripts/application.js
@@ -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 .
Please sign in to comment.
Something went wrong with that request. Please try again.