I can’t understand why the following code keeps throwing the wrong
number of arguments error. Even if I leave the function empty it still
throws the error. What am I doing wrong?
class SmsController < ApplicationController
def send
if params[:send] == “true”
account = Twilio::RestAccount.new(TWILIO_CONFIG[‘ACCOUNT_SID’],
TWILIO_CONFIG[‘ACCOUNT_TOKEN’])
I can’t understand why the following code keeps throwing the wrong
number of arguments error. Even if I leave the function empty it still
throws the error. What am I doing wrong?
class SmsController < ApplicationController
def send
Use a different method name than ‘send’ That’s a Ruby reserved word.
I can’t understand why the following code keeps throwing the wrong
number of arguments error. Even if I leave the function empty it still
throws the error. What am I doing wrong?
I can’t understand why the following code keeps throwing the wrong
number of arguments error. Even if I leave the function empty it still
throws the error. What am I doing wrong?
You’re overwriting a core ruby method (send)
Fred
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.