# API:create & persistent

**URL:** <https://www.ruby-forum.com/t/api-create-persistent/176318>\
**Category:** Ruby\
**Created:** [September 29, 2009, 1:39am UTC](https://www.ruby-forum.com/t/api-create-persistent/176318 "2009-09-29T01:39:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![denis\_mahony](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/85f322/32.png) [@denis\_mahony](https://www.ruby-forum.com/u/denis_mahony)\
**Post date:** [September 29, 2009, 1:39am UTC](https://www.ruby-forum.com/t/api-create-persistent/176318/1 "2009-09-29T01:39:22Z")

</div>

Extract of API page.

“persistent global local  
A flag for whether the create form should be persistent or not. If  
persistent, then after a successful create it will stay open. Default is  
false.”

Am i right in thinking that setting ‘persistent = true’ in  
Activescaffold DO config loop

Viz. 'extract:

ActiveScaffold.set\_defaults do |config  
config.create.persistent = true

```
.........other stuff..........

```

end # of config

should re-display the create form (the data-entry form) in Rails  
version 2.3.4 ? Or is it somehow limited to certain versions of  
ActiveScaffold ?

It seems to be ignoring the directive in my case.

I want the user to continually enter records, without having to click  
the NEW link each time. It should always present the data-entry form  
(with or without the list beneath - not important)

Thanks  
Denis

---

<div class="post-metadata">

**Author:** ![denis\_mahony](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/85f322/32.png) [@denis\_mahony](https://www.ruby-forum.com/u/denis_mahony)\
**Post date:** [September 30, 2009, 10:49am UTC](https://www.ruby-forum.com/t/api-create-persistent/176318/2 "2009-09-30T10:49:17Z")

</div>

Below should say Rails Version 2.3.3 NOT 2.3.4 .

D.

Denis M. wrote:

\> should re-display the create form (the data-entry form) in Rails \> version 2.3.4 ? Or is it somehow limited to certain versions of \> ActiveScaffold ?
