Class: TelegramChatbot::TelegramBotsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/telegram_chatbot/telegram_bots_controller.rb

Instance Method Summary collapse

Instance Method Details

#helpObject



18
19
# File 'app/controllers/telegram_chatbot/telegram_bots_controller.rb', line 18

def help
end

#showObject



7
8
# File 'app/controllers/telegram_chatbot/telegram_bots_controller.rb', line 7

def show
end

#upsertObject



10
11
12
13
14
15
16
# File 'app/controllers/telegram_chatbot/telegram_bots_controller.rb', line 10

def upsert
  if @telegram_bot.update(bot_params)
    redirect_to telegram_bots_url
  else
    render :show
  end
end