caboose-cms 0.8.6 → 0.8.7

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
  SHA1:
3
- metadata.gz: 025f7b50d83d1ead74755f7acccf5ea852baecab
4
- data.tar.gz: f508b74fdd8f8dcf5318023cf8e4c4542f419c06
3
+ metadata.gz: c76d29359edc3b7c15eaef50ec8dac3800943a16
4
+ data.tar.gz: a7e47962d43aa2fbbb4ca72bff30facbbd2868a5
5
5
  SHA512:
6
- metadata.gz: 03294267ace801655bc025fc87d30606f6cc8ebdc1d50fad9bb9f36db730c0c8412272ddb6d23c823d16124d52f480f964d5b0da24b4b8a820d7f6c0daf819c7
7
- data.tar.gz: e77dae666922ced0609930f86bf6c661dbdd0a48a08f0579b75464d304e8f2ed9e59962cc3afba7777fa06e913a5dff44dd1b00f4a1acb3878c603bf6ee73169
6
+ metadata.gz: e3d5f4c34ea71e9a576ac86f3e8bcb4833d0b9a05cb31c252a986850a21a0228e5797639e6f816d70c8fdcb7c1a70222b232a71b27bc200f7fb8719e260bd910
7
+ data.tar.gz: 1142c9d9a45c0d1cf3ccc182bc0927351d3ed7eaef0de16fb1e442559cd094ed1f84af129992d0f6d4cc218e6f43f04a3a60a434d694c67447c3f3f14a1d5d2d
@@ -106,6 +106,7 @@ module Caboose
106
106
  end
107
107
 
108
108
  # @route GET /admin/posts/:id
109
+ # @route GET /admin/posts/:id/edit
109
110
  def admin_edit_general
110
111
  return if !user_is_allowed('posts', 'edit')
111
112
  @post = Post.find(params[:id])
@@ -193,7 +194,7 @@ module Caboose
193
194
  else
194
195
  post.save
195
196
  post.set_slug_and_uri(post.title)
196
- resp.redirect = "/admin/posts/#{post.id}/edit"
197
+ resp.redirect = "/admin/posts/#{post.id}"
197
198
  end
198
199
 
199
200
  render :json => resp
@@ -8,11 +8,11 @@
8
8
  <ul id='tabs'>
9
9
  <%
10
10
  tabs = {
11
- "/admin/posts/#{@post.id}/edit" => 'General',
12
- "/admin/posts/#{@post.id}/preview" => 'Preview',
13
- "/admin/posts/#{@post.id}/content" => 'Content',
14
- "/admin/posts/#{@post.id}/categories" => 'Categories',
15
- "/admin/posts/#{@post.id}/delete" => 'Delete Post'
11
+ "/admin/posts/#{@post.id}" => 'General',
12
+ "/admin/posts/#{@post.id}/preview" => 'Preview',
13
+ "/admin/posts/#{@post.id}/content" => 'Content',
14
+ "/admin/posts/#{@post.id}/categories" => 'Categories',
15
+ "/admin/posts/#{@post.id}/delete" => 'Delete Post'
16
16
  }
17
17
 
18
18
  %>
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.8.6'
2
+ VERSION = '0.8.7'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.6
4
+ version: 0.8.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-17 00:00:00.000000000 Z
11
+ date: 2016-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg