0

I've a method in my controller:

def send_data
    send_data "one,two,three", "file.csv"
  end

When I go to root.com/send_data I get this error message:

ArgumentError in PagesController#send_data

wrong number of arguments (2 for 0)

APIDock claims it takes in two arguments.

What's going on?

1 Answer 1

2

You define the send_data method in your controller. Your send_data takes 0 parameters. Rename your method.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.