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. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 On Jan 24, 1:31 am, Anil Rak <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> 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. > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---