[Rails] Re: handling validation errors

2009-10-06 Thread Salil Gaikwad
Hi Sharanya, Try the following which is working fine with the link_to_remote and remote_form_for render :update do |page| if error occurs # write a condition which checks error occurs or not here page.show , errors page.replace_html, errors, Write a String after

[Rails] Re: handling validation errors

2009-10-06 Thread Sharanya Suresh
Salil Gaikwad wrote: Hi Sharanya, render :update do |page| if error occurs # write a condition which checks error occurs or not here page.show , errors page.replace_html, errors, Write a String after error occurs here. else page.hide ,

[Rails] Re: handling validation errors

2009-10-06 Thread Sijo kg
Hi Sharanya Suresh This you can also do with only a slight modification to submit_to_remote like %= submit_to_remote 'create', 'Create', :url = {:action = 'create'}, :update = {:success = 'success_div', :failure = 'failure_div'} % No other change in controller So for example if