Class: PlansController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- PlansController
- Defined in:
- app/controllers/plans_controller.rb
Instance Method Summary (collapse)
Instance Method Details
- (Object) index
5 6 7 8 |
# File 'app/controllers/plans_controller.rb', line 5 def index @plans = Plan.order 'price asc' respond_with @plans end |
- (Object) show
10 11 12 13 |
# File 'app/controllers/plans_controller.rb', line 10 def show @plan = Plan.find_by_slug params[:plan] @subscription = Subscription.new end |