On Miércoles, 3 de Junio de 2009 14:32:39 JannaB escribió:
> I have a partial, in my main layout, application.html.erb, the partial
> appears as follows:
>
> <% form_for current_associate, :html => {:name => 'whereaboutsform'}
> do |f| %>
>     <%= f.label :inoutexplanation, current_associate.nice_to_s << "
> whereabouts:" %><br />
>     <%= f.text_field :inoutexplanation %>
>    <%= f.submit "Submit" %>
> <% end %>
>
> The partial uses my associates table. This partial exists in a div at
> the top of all pages, regardless of what tale is presently being
> displayed by AS. However, when someone clicks "Submit", the table
> being displayed then reverts to the associates table, in list view.
>
> What would be a clean way (from an AS perspective) to prevent this?
> Thanks. -Janna B.

Is that form creating or updating an associate?

-- 
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to