i have a table called requests which save the data of a form. but whenever i refresh the browser it again resubmit.it includes the following fields user_id, arrival, departure, date this table can include same user_id, arrival, departure.so that i couldn''t use the validates_uniqueness_of property. each column should be independent of others.can anyone suggest me a code which will avoid the resubmittion --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Ishara Gunathilake wrote:> i have a table called requests which save the data of a form. > but whenever i refresh the browser it again resubmit.it includes > the following fields > > user_id, arrival, departure, date > > this table can include same user_id, arrival, departure.so that > i couldn''t use the validates_uniqueness_of property. each column > should be independent of others.can anyone > suggest me a code which will avoid the resubmittionWhich method you are using ? GET or POST ? -- 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 -~----------~----~----~----~------~----~------~--~---
i use post method, On 19/02/2009, Vijayendra Achar <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > > Ishara Gunathilake wrote: > > i have a table called requests which save the data of a form. > > but whenever i refresh the browser it again resubmit.it includes > > the following fields > > > > user_id, arrival, departure, date > > > > this table can include same user_id, arrival, departure.so that > > i couldn''t use the validates_uniqueness_of property. each column > > should be independent of others.can anyone > > suggest me a code which will avoid the resubmittion > > Which method you are using ? GET or POST ? > -- > 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 -~----------~----~----~----~------~----~------~--~---
> can anyone suggest me a code which will avoid the resubmittionyou could just post your code. that way we have at least a chance to find the error. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---