Forum: Ruby on Rails filter_parameter_logging for multi model forms

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ram (Guest)
on 2009-05-08 09:56
(Received via mailing list)
Hi all,

I have a multi model form setup in the classic Ryan B. Complex
forms style (railscasts.com/episodes/73) for my signup page.

The two models in this are the Account model and the User model and
this structure cannot be changed right now. The User model has
password and password_conf attributes which are, unfortunately, taken
alongwith the rest of the User's attributes into an array
user_attributes[]. This array is then processed in the Account model
as is the method shown in the above screencasts.

Now i understand filter_parameter_logging works for hashes and sub
hashes. But in this case, its an array. Any ideas on how i can handle
this? Hack into filter_parameter_logging?

Any and all thoughts are most welcome!

Thanks!
Ram (Guest)
on 2009-05-11 13:18
(Received via mailing list)
filter_parameter_logging for attributes in an array instead of a hash.
Any ideas at all?
This topic is locked and can not be replied to.