On Miércoles, 11 de Noviembre de 2009 21:13:06 denis escribió:
> Hi Sergio,
>
> Thanks for that. I'm sorry I did not come back to you sooner.
>
> In application controller I had :
>
> config.create.link.page = true
>
> and that was disabling the persistent function.
>
> I've removed that and persistent now works.
> However I thought that it would show the data-entry form without the
> list beneath.
> That's not the case .
>
> I wonder *is* it possible to do that ?
Persistent is only used when form is sent using AJAX, form is closed and open
again. I think it's the right behaviour. If you enable always_show_create,
form is shown at top at list when you load the list.
Persistent should redirect to new when form is sent without using AJAX, for
example when you open in a new tab, or when you set link.page = true, but is
not implemented, as you can see:
if successful?
flash[:info] = as_(:created_model, :model => @record.to_label)
if active_scaffold_config.create.edit_after_create
redirect_to params_for(:action => "edit", :id => @record.id)
else
return_to_main
end
return_to_main should be if active_scaffold_config.create.persistent in order
to
redirect to new or main.
I will fix it, but I have no time this week, sorry.
--
Sergio Cambra .:: entreCables S.L. ::.
Mariana Pineda 23, 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].
For more options, visit this group at
http://groups.google.com/group/activescaffold?hl=.