effective_regions 1.0.0 → 1.1.0

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
  SHA1:
3
- metadata.gz: 3da3a25db0858892dedca323cbf867a7e9017961
4
- data.tar.gz: c9ddf036366111755f3af12e9a748600256289b8
3
+ metadata.gz: a644b176523aa5612ccfbd96cfa305b5b6b1810c
4
+ data.tar.gz: 0f7a1619efcf19b4730fddddde4492728e6782b7
5
5
  SHA512:
6
- metadata.gz: a72c5adc99f5cdc4711514efdcb461356962f97d51ee25496575b81798eaf750a7e27bf21eee61317375992e243f84af3cb9d041c19059be8b19717481f777ff
7
- data.tar.gz: d57234452b3c5881ed25ba0c96edb822ba709c2ae862d1133a960035ce8d09c9ef8db1e9fafcb65b87f724d945e7576ea73ca659ffe82aa1ed92788fe2154735
6
+ metadata.gz: 0eb16ac4a66db8db59d143cfcabdf0eb47cde2ee7430df54d3df38e8099f7d07f73e4d117d88b4ea9e4af4d5696192fb4a2a2426edcc330228865b7d5a4d7f26
7
+ data.tar.gz: 77352251e819760b1f0d430aab58c8c2f2a3aea864de8fa45702f9998dc3f50807889b80f6d00560fd69949d30f666db4df6d2c501db216a92805253ecf87a8a
data/README.md CHANGED
@@ -50,6 +50,24 @@ Do not add anything to your asset pipeline javascripts or stylesheets.
50
50
 
51
51
  ## Usage
52
52
 
53
+ To start editting via the full-screen editor, prepend `/edit/` to your existing route.
54
+
55
+ So to begin editing:
56
+
57
+ `http://www.example.com/about` => `http://www.example.com/edit/about`
58
+
59
+ `http://www.example.com/posts/13` => `http://www.example.com/edit/posts/13`
60
+
61
+ `http://www.example.com/` => `http://www.example.com/edit/`
62
+
63
+ of course, there will be nothing to edit until you insert some Regions.
64
+
65
+ You can also use the link_to helper to automatically prepend `/edit/`:
66
+
67
+ ```ruby
68
+ = link_to 'Edit Post Content', effective_regions.edit_path(post_path(@post))
69
+ ```
70
+
53
71
  ### Regions
54
72
 
55
73
  Regions can be global, in which each is referenced by a unique name, or belong to a specific object.
data/config/routes.rb CHANGED
@@ -13,6 +13,7 @@ EffectiveRegions::Engine.routes.draw do
13
13
 
14
14
  scope '/edit' do # Changing this, means changing the effective_ckeditor routes
15
15
  get '(*requested_uri)' => 'regions#edit', :as => :edit_effective_regions
16
+ get '(*requested_uri)' => 'regions#edit', :as => :edit
16
17
  put '(*requested_uri)' => 'regions#update', :as => :effective_regions
17
18
  end
18
19
  end
@@ -1,3 +1,3 @@
1
1
  module EffectiveRegions
2
- VERSION = '1.0.0'
2
+ VERSION = '1.1.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_regions
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-08 00:00:00.000000000 Z
11
+ date: 2014-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails