koudoku 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +3 -1
- data/app/controllers/koudoku/subscriptions_controller.rb +3 -3
- data/lib/koudoku/version.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
@@ -63,7 +63,9 @@ On Heroku you accomplish this same effect with [Config Vars](https://devcenter.h
|
|
63
63
|
|
64
64
|
By default a `pricing_path` route is defined which you can link to in order to show visitors a pricing table. If a user is signed in, this pricing table will take into account their current plan. For example, you can link to this page like so:
|
65
65
|
|
66
|
-
<%= link_to 'Pricing', pricing_path %>
|
66
|
+
<%= link_to 'Pricing', main_app.pricing_path %>
|
67
|
+
|
68
|
+
(Note: Koudoku uses the application layout, so it's important that application paths referenced in that layout are prefixed with "`main_app.`" like you see above or Rails will try to look the paths up in the Koudoku engine instead of your application.)
|
67
69
|
|
68
70
|
Existing users can view available plans, select a plan, enter credit card details, review their subscription, change plans, and cancel at the following route:
|
69
71
|
|
@@ -86,7 +86,7 @@ module Koudoku
|
|
86
86
|
@subscription = ::Subscription.new(params[:subscription])
|
87
87
|
@subscription.user = @owner
|
88
88
|
if @subscription.save
|
89
|
-
flash[:
|
89
|
+
flash[:notice] = "You've been successfully upgraded."
|
90
90
|
redirect_to owner_subscription_path(@owner, @subscription)
|
91
91
|
else
|
92
92
|
flash[:error] = 'There was a problem processing this transaction.'
|
@@ -98,7 +98,7 @@ module Koudoku
|
|
98
98
|
end
|
99
99
|
|
100
100
|
def cancel
|
101
|
-
flash[:
|
101
|
+
flash[:notice] = "You've successfully cancelled your subscription."
|
102
102
|
@subscription.plan_id = nil
|
103
103
|
@subscription.save
|
104
104
|
redirect_to owner_subscription_path(@owner, @subscription)
|
@@ -109,7 +109,7 @@ module Koudoku
|
|
109
109
|
|
110
110
|
def update
|
111
111
|
if @subscription.update_attributes(params[:subscription])
|
112
|
-
flash[:
|
112
|
+
flash[:notice] = "You've successfully updated your subscription."
|
113
113
|
redirect_to owner_subscription_path(@owner, @subscription)
|
114
114
|
else
|
115
115
|
flash[:error] = 'There was a problem processing this transaction.'
|
data/lib/koudoku/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: koudoku
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -156,7 +156,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
156
156
|
version: '0'
|
157
157
|
segments:
|
158
158
|
- 0
|
159
|
-
hash:
|
159
|
+
hash: 1002646099170928732
|
160
160
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
161
161
|
none: false
|
162
162
|
requirements:
|
@@ -165,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
165
165
|
version: '0'
|
166
166
|
segments:
|
167
167
|
- 0
|
168
|
-
hash:
|
168
|
+
hash: 1002646099170928732
|
169
169
|
requirements: []
|
170
170
|
rubyforge_project:
|
171
171
|
rubygems_version: 1.8.24
|