Norbert Melzer wrote in post #962309:
> Hidden field wich unique ID. If the ID is submitted twice, omit the new
> entry
>
> Am 18.11.2010 09:56 schrieb "Srikanth Jeeva" <[email protected]>:
>>
>> --
>> 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 [email protected].
>> To unsubscribe from this group, send email to
> 
[email protected]<rubyonrails-talk%[email protected]>
> .
>> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.

Please try this. When the save functionality completed, you should 
redirect to the previous action, if you are not using the action both 
"Page Display" and "Save Process"

ex:
--

# display the page. localhost/controller/display

def display
..
..
..
end

def save_details
..
..
..
[b]redirect_to :action => "display"[/b]
end

So, when the first click of save button, the action "save_details" will 
be called and redirected to the first action "display". Now the reloaded 
page is fresh, i.e the id is unique.

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to