Skip to content

Instantly share code, notes, and snippets.

@oseifrimpong
Created August 19, 2014 21:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oseifrimpong/b9fc999819dbf2e41c7d to your computer and use it in GitHub Desktop.
Save oseifrimpong/b9fc999819dbf2e41c7d to your computer and use it in GitHub Desktop.
Controller
class LandingController < ApplicationController
layout 'landingPage'
def soon
@coming = Coming.new
end
def save_email
@coming = Coming.new(params[:email])
if @coming.save
render "soon"
else
render "soon"
end
end
#render 'soon'
private
def soon_params
params.require(:comings).permit(:email)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment