Why can't I use request.subset twice?

1 view
Skip to first unread message

desbest

unread,
Jan 6, 2017, 8:26:52 AM1/6/17
to Ramaze

If I have this in my Ramaze controller

data = request.subset(:content, :recipient_userid, :banuntil)

data['banuntil'] has a variable in it, when POST data is sent.

But when I do

data = request.subset(:content, :recipient_userid)
data2 = request.subset(:banuntil)

data2['banuntil'] has no variable in it when POST data is sent.

How come?

Reply all
Reply to author
Forward
0 new messages