Forum: Ruby on Rails How to retain values

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Bc3e77f31c3b792a625439ac6fa4969d?d=identicon&s=25 Anil Rak (anil123)
on 2009-01-23 15:31
Hi all,
am new to Ruby world.

My problem is,
 I have 4 text fields,i wrote the validations for that like if blank?
etc...
I filled 3 fields then clicked the submit button, it displayed fine the
error that "please enter the required field" but the entered 3 values
are not displayed.
 Can any one please assist me ASAP.

Thanks,
Nany.
Dfe81d0ef18761dc22d0586b7b58c5ac?d=identicon&s=25 Rob Zolkos (rzolkos)
on 2009-01-23 15:36
(Received via mailing list)
Hi Anil,

Can you post some code snippets of your controller (new and create
action)?  seems like the form is not being setup correctly (probably
in the create action of the controller)

Thanks,
Rob
D188e591eac11021329b8821a5f954c7?d=identicon&s=25 Ar Chron (railsdog)
on 2009-01-23 18:59
A fairly common thing I've seen is that, upon failure, the code in the
create method will perform a redirect to the new method, rather than
just a render of the action new
This topic is locked and can not be replied to.