The problem:
Had to use database view, which screws up the attributes acquiring using Active Records. In that case when there are errors error notification will fire up but the data previously entered will be lost. RJS to the rescue.
Also, text_field :new_record,:name will not work since you going to get blank attributes so in order not to have anything breaking you would use
text_field_tag and make sure you keep the values.
<div id="error_messages"> </div>
This way your data stays in text boxes and you dont need to recreate error messages for method.
render :update do |page|
page.replace_html :error_messages, "#{error_messages_for :new_legal_entity}"
end