pettanr_unknown_v01_licenses 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
@@ -29,7 +29,7 @@ module PettanrUnknownV01Licenses
|
|
29
29
|
respond_to do |format|
|
30
30
|
if @unknown_license.valid?
|
31
31
|
format.html { render main_app.new_resource_picture_path }
|
32
|
-
format.json { render json: @resource_picture.to_json(ResourcePicture.show_json_opt), status: :created }
|
32
|
+
format.json { render json: @resource_picture.to_json(ResourcePicture.show_json_opt), status: :created, location: @resource_picture }
|
33
33
|
else
|
34
34
|
format.html { render action: "new" }
|
35
35
|
format.json { render json: @resource_picture.errors, status: :unprocessable_entity }
|