I\'m receiving a JSON package like:
{ \"point_code\" : { \"guid\" : \"f6a0805a-3404-403c-8af3-bfddf9d334f2\" } }
I would like to tell Rai
I had a similar need and what I did was
def point_code_params params.require(:point_code).require(:guid) # for check require params params.require(:point_code).permit(:guid) # for using where hash needed end
Example:
def create @point_code = PointCode.new(point_code_params) end