Displaying 7 results from an estimated 7 matches for "header_messag".
Did you mean:
header_message
2010 Aug 18
7
error_messages_for doesn't work
...wrote the following line in my model
"Hi":
[code]
validates_numericality_of :phone, :only_integer => true, :allow_blank =>
false, :message => "must be a number"
[/code]
And in my "new" view, I put:
[code]
<%= error_messages_for :oi,
:header_message => "Erro ao cadastrar usuário." ,
:message => "Cheque o(s) seguinte(s) campo(s):"%>
[/code]
Rails notice the error, because I can''t save a Hi object with phone not
being a number; but it doesn''t show me the errors that was find....
2008 Jan 31
3
presenting validation errors via fbml?
Hi Facebookers,
Is there a helper or suggested approach for presenting validation
errors on an fbml form?
Something to translate rails error markup to fbml:error markup?
thanks
Joel
2009 Nov 26
9
ActionView::TemplateError (can't convert ActiveRecord::Error into String)
...rt ActiveRecord::Error into
String) on line #3 of app/views/button/_show_enquiry.html.erb:
1: <h1>Send us a message</h1>
2: <% remote_form_for :enquiry, :url => {:action => ''send_mail''} do |
f| %>
3: <%= error_messages_for ''enquiry'', :header_message => "Please try
again!", :message => "We need you to change some items in order to
send us a message:" %>
4: <table>
5: <tr><td>Name:</td> <td><%= f.text_field :name, :size => 30
%></td></tr>
6: <tr>...
2009 Feb 05
6
get # of errors in error_messages_for
hi everyone here i go again, i have problem we error message validation
here is the sample of my code:
error_messages_for :user, :header_message => ''X errors, please find red
mark'', :message => ''Following errors were found:''
the problem is that how where going to get the value "X errors" or the
number of errors if they have when the is submitted.
I like the idea of the default error mes...
2007 Jul 15
0
errors_for
...nless count.zero?
html = {}
[:id, :class].each do |key|
if options.include?(key)
value = options[key]
html[key] = value unless value.blank?
else
html[key] = ''errorExplanation''
end
end
header_message = "Errors prohibited this
#{(options[:object_name] || params.first).to_s.gsub(''_'', '' '')} from
being saved"
error_messages = objects.map {|object|
object.errors.full_messages.map {|msg| "<li>#{msg}</li>" } }
"...
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
2008 Apr 01
0
Error Message Problem
Hi all,
I tried to implement the error-message-for-Method with German output,
but it don''t works.
Here my code:
<%= error_messages_for(''permission'', :header_message=>''%d Fehler beim
Speichern'') %>
Anybody an idea what could be wrong?
Greets
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Tal...