search for: form_error

Displaying 3 results from an estimated 3 matches for "form_error".

Did you mean: form_errors
2006 Mar 22
3
Parent-Child Tables Help
...@headers[''Content-Type''] = ''text/html; charset=utf-8'' render :partial => ''car'', :layout => false, :locals => { :hidden => true } else return_to_main end else render :partial => ''form_errors'', :layout => false, :status => 500 if request.xhr? render :action => ''new'' if not request.xhr? end end def edit @car = Car.find(params[:id]) @car.user_id = session[''user''].id render :layout => false if request.xh...
2006 Sep 14
0
Work around for problems with error_message_on
...I was encountering problems with error_message_on in the fact that it caused an exception when no object by that name had any errors (or did not exsist) so i created this work around... def display_error(obj, method, prepend_text = "", append_text = "", css_class = "form_error") object = instance_variable_get("@#{obj}") if object && !object.errors.empty? errors = object.errors.on(method) if errors content_tag("div", "#{prepend_text}#{errors.is_a?(Array) ? errors.first : errors}#{append_text}", :class...
2005 May 13
45
Why Wouldn't I Use Rails
I am starting a large project and still selecting what framework to use. Rather than ask brand x what is wrong with brand y, I am more interested in self confession. Why would I *not* want to use Rails (compared to Iowa and Nitro). I posted a synopsis of the project to ruby-talk but will repost it here if anyone wants it. xev