Hi David,Sergio
Thanks for your reply
I am using Rails 2.2.2 and active scaffold 1.2
David's fix is working great, but Sergio' code which looks like below
active_scaffold :todo do |config|
config.actions = [:create, :update, :show,:list,:search,:delete]
config.list.columns = [ :body, :done,:due]
config.columns = [ :body, :done,:due]
columns[:body].label = "Description"
columns[:due].label ="Due on"
columns[:done].label = "Done"
config.list.always_show_create= true
end
gives the following error
undefined method `always_show_create=' for
#<ActiveScaffold::Config::List:0x68dcf4c> .am i doing something wrong?
regards
Sanjay
On Feb 3, 1:28 pm, "Sergio Cambra .:: entreCables - Symbol Servicios
Informáticos S.L. ::." <[email protected]> wrote:
> 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
-~----------~----~----~----~------~----~------~--~---