Skip to content
This repository has been archived by the owner on Feb 11, 2020. It is now read-only.

Commit

Permalink
not use mass assignment for Rails 4
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslin101 committed Apr 21, 2014
1 parent 3f6d398 commit c5d8242
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/prelaunch_controller.rb
Expand Up @@ -6,7 +6,7 @@ def new
end

def create
@prelaunch_subscriber = PrelaunchSubscriber.new(params[:prelaunch_subscriber])
@prelaunch_subscriber = PrelaunchSubscriber.new(:email => params[:prelaunch_subscriber][:email])
if @prelaunch_subscriber.save
redirect_to root_url, :notice => <<NOTICE
<p>Thank you for your interest.</p>
Expand Down

0 comments on commit c5d8242

Please sign in to comment.