Srikanth Jeeva wrote:
>
>> Another question... if I want to set a field blank for each field that
>> had an error how would i do that?
>
> you can do this in view file..
>
> give a sample that you use in ur view file. so that i could help it out.
>
> --
> sri
I want so that if an error is rasied all the fields where the errors is
raised will be cleared out(blank)
I did this in the controller by:
@company.name = nil
----------------------
View:
<span>First Name</span>
<%= @company.name.capitalize %>
<span>First Name</span>
<%= @company.scatid.capitalize %>
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.