Skip to content

Instantly share code, notes, and snippets.

@richardhartme
Created January 29, 2014 14:38
Show Gist options
  • Select an option

  • Save richardhartme/8689285 to your computer and use it in GitHub Desktop.

Select an option

Save richardhartme/8689285 to your computer and use it in GitHub Desktop.
class Spree::Elist::SubscribersController < ApplicationController
respond_to :html
def create
@subscriber = Spree::Elist::Subscriber.new(params[:elist_subscriber])
@subscriber.save
respond_with @subscriber, location: request.referer
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment