ish_manager 0.1.8.197 → 0.1.8.198

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ca09bfcee1b53f1c8d48fce83557aeed900d625f34dde66890c7ed4411683544
4
- data.tar.gz: 24883e679bf51dc63e0b053f1fe22e4597d28d9481abc4cd4c227f41b13bcc06
3
+ metadata.gz: 4286ddbb71d9b6a3bdb03ed45eab94d2b28e24f3548d0fea575693d94f9c9385
4
+ data.tar.gz: 1118004be8cf3416b97a3d587b216334d56219f97d837935f6354b78117e4eed
5
5
  SHA512:
6
- metadata.gz: 2f743bb04f24520ac2f9cfa4a1629e20176f592e02f3dd1b9185b6aff5e50cfe207dc75bd01ae571474e9379aa05c1f3e8a800352163879ff2aff244c70b07c3
7
- data.tar.gz: 560d88f55e2604369ae74951991a810666a5afa115e25081996e45af018ae5bafd31e57a3891bc879d650c51038163712ca3df0b8dea65ff57945bb81f3610da
6
+ metadata.gz: d94a9edcc16340a7650f04acf778077a2e91629b6f1bd5d22930d357e6b01a408cf7d30c50866f7dbac0b9b8085033c8123db5f845f95a24b3003d5be46b9021
7
+ data.tar.gz: b74a97b44e268422b0943c217c76f59523b91e90691807470aa7e73247b23ad9852f5284bc6bdc6664794a841659f03dd99c34c97fb49796a4b8a5241279fa89
@@ -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 map_path(@map.id), notice: 'Map was successfully created.' }
30
+ format.html { redirect_to map_path(@map), notice: 'Map was successfully created.' }
31
31
  else
32
32
  format.html { render :new }
33
33
  end
@@ -38,7 +38,7 @@ class IshManager::MapsController < IshManager::ApplicationController
38
38
  authorize! :update, @map
39
39
  respond_to do |format|
40
40
  if @map.update(map_params)
41
- format.html { redirect_to @map, notice: 'Map was successfully updated.' }
41
+ format.html { redirect_to map_path(@map), notice: 'Map was successfully updated.' }
42
42
  else
43
43
  format.html { render :edit }
44
44
  end
@@ -27,7 +27,7 @@ class IshManager::MarkersController < IshManager::ApplicationController
27
27
 
28
28
  respond_to do |format|
29
29
  if @marker.save
30
- format.html { redirect_to gameui_map_path(@map.id), notice: 'Marker was successfully created.' }
30
+ format.html { redirect_to map_path(@map), notice: 'Marker was successfully created.' }
31
31
  else
32
32
  format.html { render :new }
33
33
  end
@@ -38,7 +38,7 @@ class IshManager::MarkersController < IshManager::ApplicationController
38
38
  authorize! :update_marker, @map
39
39
  respond_to do |format|
40
40
  if @marker.update(marker_params)
41
- format.html { redirect_to @map, notice: 'Marker was successfully updated.' }
41
+ format.html { redirect_to maps_path(@map), notice: 'Marker was successfully updated.' }
42
42
  else
43
43
  format.html { render :edit }
44
44
  end
@@ -51,7 +51,7 @@ class IshManager::MarkersController < IshManager::ApplicationController
51
51
  authorize! :destroy_marker, @map
52
52
  @marker.destroy
53
53
  respond_to do |format|
54
- format.html { redirect_to @map, notice: 'Marker was successfully destroyed.' }
54
+ format.html { redirect_to map_path(@map), notice: 'Marker was successfully destroyed.' }
55
55
  end
56
56
  end
57
57
 
@@ -13,8 +13,8 @@
13
13
  .item
14
14
  .flat-row
15
15
  .a= marker.slug
16
- .a= button_to '~', edit__marker_path(marker), method: :get
17
- .a= button_to 'x', marker, method: :delete, data: { confirm: 'Are you sure?' }
16
+ .a= button_to '~', edit_marker_path(marker), method: :get
17
+ .a= button_to 'x', marker_path(marker), method: :delete, data: { confirm: 'Are you sure?' }
18
18
  .a= link_to '[api]', api_marker_path(marker)
19
19
  %ul.bullets
20
20
  %li <b>item_type:</b> #{marker.item_type}
@@ -1,7 +1,6 @@
1
-
1
+ - url = params[:action] == 'new' ? markers_path : marker_path(@marker)
2
2
  .markers--form
3
-
4
- = form_for @marker do |f|
3
+ = form_for @marker, url: url do |f|
5
4
  -# = f.hidden_field :map_id, value: (params['map_id']||@map_id)
6
5
 
7
6
  - if @marker.errors.any?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ish_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.197
4
+ version: 0.1.8.198
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox