ref: master
plugins/stock/controllers/myprofile/stock_plugin_myprofile_controller.rb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
class StockPluginMyprofileController < MyProfileController include StockPlugin::TranslationHelper no_design_blocks protect 'edit_profile', :profile helper StockPlugin::DisplayHelper def index end def edit @place = profile.stock_places.find params[:id] @place.update! params[:place] redirect_to :action => :index end def create @place = profile.stock_places.build @place.update! params[:place] redirect_to :action => :index end protected end |