Class: Account::VotesController
- Inherits:
-
BaseController
- Object
- ActionController::Base
- ApplicationController
- BaseController
- Account::VotesController
- Defined in:
- app/controllers/account/votes_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
caches_page_with_cache_marker, #raise_not_found!
Instance Method Details
#create ⇒ Object
7 8 9 10 11 12 13 |
# File 'app/controllers/account/votes_controller.rb', line 7 def create params[:rate] ||= {} TranslationCms::Api::Vote.create_from_params(params[:order_id], current_account.token, vote_params) respond_with(nil, location: account_order_path(params[:order_id])) end |