# Changing scaffold's text\_field to a password\_field causes wh

**URL:** <https://www.ruby-forum.com/t/changing-scaffolds-text-field-to-a-password-field-causes-wh/52089>\
**Category:** Rails\
**Created:** [January 10, 2006, 9:01pm UTC](https://www.ruby-forum.com/t/changing-scaffolds-text-field-to-a-password-field-causes-wh/52089 "2006-01-10T21:01:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bakki](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/6a8cbe/32.png) [@bakki](https://www.ruby-forum.com/u/bakki)\
**Post date:** [January 10, 2006, 9:01pm UTC](https://www.ruby-forum.com/t/changing-scaffolds-text-field-to-a-password-field-causes-wh/52089/1 "2006-01-10T21:01:59Z")

</div>

I had posted earlier about ‘silent failure of a controller’, what seemed  
to  
be an intractable problem where I was getting failure of a particular  
action  
in a controller while others worked. What was irritating was that there  
were  
no useful messages. Nothing to the browser, nothing in logs, and even  
the  
breakpoints wouldn’t hit. Finally by a process of elemination I found  
that  
the culprit was a password\_field which I had put in place of a scaffold  
generated text\_field…actually a text\_area since I was going to use  
Sentry  
to encrypt it…so I had made the field in the db a ‘text’ type. WHen I  
ran  
unit test on the controller I would get a message like …“expected a  
redirect\_to but found \<200\>”, Obviously this is why the browser blanks  
out.

Can some one explain to me this behaviour? This happened to me on 3  
seperate  
machines (work, home and laptop) which I use for development (all  
running  
Debian Sarge).

While on the subject I would much appreciate if some one can clarify for  
me  
the difference between  
FormHelper[http://api.rubyonrails.com/classes/ActionView/Helpers/FormHelper.html](http://api.rubyonrails.com/classes/ActionView/Helpers/FormHelper.html)and  
the  
FormTagHelper[http://api.rubyonrails.com/classes/ActionView/Helpers/FormTagHelper.html](http://api.rubyonrails.com/classes/ActionView/Helpers/FormTagHelper.html).  
Ihave read the docs a few times as well as the Agile book, and may be I  
am  
just to tired, it does not make sense to me. It seems like both require  
me  
to provide names and values and both behave much the same way!?

Thanks in advance,

bakki kudva
