Skip to content

Instantly share code, notes, and snippets.

@Heavyblade
Created May 31, 2012 03:14
Show Gist options
  • Save Heavyblade/2840713 to your computer and use it in GitHub Desktop.
Save Heavyblade/2840713 to your computer and use it in GitHub Desktop.
def create
@client_application = current_user.client_applications.build(params[:client_application])
if @client_application.save
flash[:notice] = "Registered the information successfully"
redirect_to :action => "show", :id => @client_application.id
else
render :action => "new"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment