I am updating 50 records on one page with update_attributes method
,my validations are
validates_numericality_of :year, :greater_than_or_equal_to => 1900,
:less_than_or_equal_to => 2028, :message => “Year must be between 1900
and 2028”
valdate_presence_of:title
valdate_presence_of:price
id title year price
1 James bond 2008 $100
2 zoro the mask 1978 $ 50
.
.
.
.
50 don 2000 $400
if I provide wrong input for one say year “1800” for “don” and correct
for “james bond” year as “2000” it updates James bond ,correctly but do
not show validation message for “don” on my page. I want to display
message how can i do that
try with update_attributes! (which internally uses ‘save!’)
On Fri, Mar 13, 2009 at 2:00 PM, Nilesh K. < [email protected]> wrote:
and 2028"
50 don 2000 $400
if I provide wrong input for one say year “1800” for “don” and correct
for “james bond” year as “2000” it updates James bond ,correctly but do
not show validation message for “don” on my page. I want to display
message how can i do that
try with update_attributes! (which internally uses ‘save!’)
On Fri, Mar 13, 2009 at 2:00 PM, Nilesh K. < [email protected]> wrote:
and 2028"
50 don 2000 $400
if I provide wrong input for one say year “1800” for “don” and correct
for “james bond” year as “2000” it updates James bond ,correctly but do
not show validation message for “don” on my page. I want to display
message how can i do that