search for: header_tag

Displaying 7 results from an estimated 7 matches for "header_tag".

Did you mean: header_tail
2006 Jul 29
0
error_messages_for - Custom formating
...or_messages_for. To quote from the ROR manual: /////////// error_messages_for(object_name, options = {}) Returns a string with a div containing all the error messages for the object located as an instance variable by the name of object_name. This div can be tailored by the following options: header_tag - Used for the header of the error div (default: h2) id - The id of the error div (default: errorExplanation) class - The class of the error div (default: errorExplanation) NOTE: This is a pre-packaged presentation of the errors with embedded strings and a certain HTML structure. If what you need...
2005 Jan 17
5
how to override rails errors messages?
hi, how can i override rails errors mesages (that are in english) to display them in an other language? thanks hangon
2006 Jan 27
17
Multiple Model Validation
Hey All ! I have a form which contains two models. I would like both models to be validated, but have their validations aggregated on the page. If I do: <%= error_messages_for(:model1) %> <%= error_messages_for(:model2) %> It puts two big validation blocks on the page. I would like all the errors from both models, but only in one validation box. Is this possible ? All my attempts
2006 Jun 13
7
help with ''error_messages_for''
Greetings, I''m in the throws of deploying an app on site5, and I''m getting strange errors. I think I might need to understand how error_messages_for works. I get a pretty standard looking error: " You have a nil object when you didn''t expect it! You might have expected an instance of ActiveRecord::Base. The error occured while evaluating nil.errors Extracted
2006 Dec 12
2
Error message translation
I have a problem with translation of english phrase when an input error occurs. When I put: error_messages_for("registratie") above my view. I get the error: "xx errors prohibited this registratie from being saved". The problem now is, the site is for dutch customers and I would like to translate this to a dutch phrase. I know I can translate the individual fields with the
2006 Mar 14
5
Unable to display errors for multiple records
Hi, I''m trying to save multiple records of the same model in one go. Which is no problem at all. Problem starts when I want to introduce error handling. The problem is that no record should be saved when one of the records contains an error. I tried it as follows: session[:infos].each do |info| @quest.name = info["name"] unless @quest.valid? @errors_found = true
2007 Dec 05
5
Active Record, Migration, and Translation
Hi, I think the columns and table in migration should be able to have an optional "display_name" set manually. Something like: create_table :people, {display_name => "Personne"} do |t| t.column :first_name :string, :display_name => "Prénom". end Let me explain my point of view: Rails is a framework made to write programs in English. You see it when you