ish_manager 0.1.8.196 → 0.1.8.197
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca09bfcee1b53f1c8d48fce83557aeed900d625f34dde66890c7ed4411683544
|
4
|
+
data.tar.gz: 24883e679bf51dc63e0b053f1fe22e4597d28d9481abc4cd4c227f41b13bcc06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f743bb04f24520ac2f9cfa4a1629e20176f592e02f3dd1b9185b6aff5e50cfe207dc75bd01ae571474e9379aa05c1f3e8a800352163879ff2aff244c70b07c3
|
7
|
+
data.tar.gz: 560d88f55e2604369ae74951991a810666a5afa115e25081996e45af018ae5bafd31e57a3891bc879d650c51038163712ca3df0b8dea65ff57945bb81f3610da
|
@@ -27,7 +27,7 @@ class IshManager::MapsController < IshManager::ApplicationController
|
|
27
27
|
|
28
28
|
respond_to do |format|
|
29
29
|
if @map.save
|
30
|
-
format.html { redirect_to
|
30
|
+
format.html { redirect_to map_path(@map.id), notice: 'Map was successfully created.' }
|
31
31
|
else
|
32
32
|
format.html { render :new }
|
33
33
|
end
|
@@ -49,7 +49,7 @@ class IshManager::MapsController < IshManager::ApplicationController
|
|
49
49
|
authorize! :destroy, @map
|
50
50
|
@map.destroy
|
51
51
|
respond_to do |format|
|
52
|
-
format.html { redirect_to
|
52
|
+
format.html { redirect_to maps_path, notice: 'Map was successfully destroyed.' }
|
53
53
|
end
|
54
54
|
end
|
55
55
|
|
@@ -1,5 +1,10 @@
|
|
1
|
+
-#
|
2
|
+
-# ish_manager / maps / _form
|
3
|
+
-#
|
1
4
|
|
2
|
-
=
|
5
|
+
- url = params[:action] == 'new' ? maps_path : map_path(@map)
|
6
|
+
|
7
|
+
= form_for @map, url: url do |f|
|
3
8
|
- if @map.errors.any?
|
4
9
|
#error_explanation
|
5
10
|
%h2= "#{pluralize(@map.errors.count, "error")} prohibited this map from being saved:"
|
@@ -13,7 +13,7 @@
|
|
13
13
|
.item
|
14
14
|
.flat-row
|
15
15
|
.a= marker.slug
|
16
|
-
.a= button_to '~',
|
16
|
+
.a= button_to '~', edit__marker_path(marker), method: :get
|
17
17
|
.a= button_to 'x', marker, method: :delete, data: { confirm: 'Are you sure?' }
|
18
18
|
.a= link_to '[api]', api_marker_path(marker)
|
19
19
|
%ul.bullets
|