- def edit
- @client_application = @user.client_applications.find(params[:id])
- rescue ActiveRecord::RecordNotFound
- @type = "client application"
- render :action => "not_found", :status => :not_found
+ def create
+ @client_application = current_user.client_applications.build(application_params)
+ if @client_application.save
+ flash[:notice] = t ".flash"
+ redirect_to :action => "show", :id => @client_application.id
+ else
+ render :action => "new"
+ end