Class: PrelaunchController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- PrelaunchController
- Defined in:
- app/controllers/prelaunch_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'app/controllers/prelaunch_controller.rb', line 8 def create @prelaunch_subscriber = PrelaunchSubscriber.new(params[:prelaunch_subscriber]) if @prelaunch_subscriber.save redirect_to root_url, :notice => <<NOTICE <p>Thank you for your interest.</p> <p>We have sent you an email to confirm your subscription to our prelaunch mailing list.</p> NOTICE else render :action => 'new' end end |
#new ⇒ Object
4 5 6 |
# File 'app/controllers/prelaunch_controller.rb', line 4 def new @prelaunch_subscriber = PrelaunchSubscriber.new end |