El Tuesday 03 February 2009 08:13:02 Sanjay escribió:
> Hi Geeks, need your help here
> I have set the controller code as below
>
> active_scaffold :todo do |config|
>     config.columns = [ :body, :done,:due]
>     columns[:body].label = "Description"
>     columns[:due].label ="Due on"
>     columns[:done].label = "Done"
>
> >>    config.create.persistent=true
>
>   end
>
> and as the api:create  says
> " 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."
>
> it is persistent after first create, but how do i keep it open the
> first time when the page is visited.

Use config.list.always_show_create = true
Only for rails >= 2.1

-- 
Sergio Cambra .:: entreCables S.L. ::.
Nicolás Guillén 6, locales 2 y 3. 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) [email protected]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" 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/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---

  • Ho... Sanjay
    • ... David Cato
    • ... Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.
      • ... Sanjay
        • ... Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.
          • ... Sanjay Bahl
            • ... Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.
              • ... Kenny Ortmann
                • ... Sanjay Bahl
                • ... Sanjay Bahl
                • ... Sanjay Bahl
                • ... Kenny Ortmann
            • ... Kenny Ortmann

Reply via email to