I have a column type TEXT
in my database. What type of parameter should I declare in my API?
params do
requires :body, type: Text
end
The code above produces this error: uninitialized constant API::Articles::Text (NameError)
I tried setting the parameter as a type: String
, but my test responded with an ArgumentError
.