Skip to content

Instantly share code, notes, and snippets.

@meltzerj
Created May 2, 2011 05:47
Show Gist options
  • Select an option

  • Save meltzerj/951211 to your computer and use it in GitHub Desktop.

Select an option

Save meltzerj/951211 to your computer and use it in GitHub Desktop.
def create
@signed_user = SignedUser.find_or_initialize_by_email(params[:signed_user][:email])
if @signed_user.new_record?
if @signed_user.save
#UserMailer.registration_confirmation(@signed_user).deliver
redirect_to signed_user_path(@signed_user)
else
render :action => 'new'
end
else
redirect_to signed_user_path(@signed_user)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment