On Miércoles, 3 de Junio de 2009 22:47:43 JannaB escribió:
> The problem is that it occurs in
>
> Associates.update
>
> Which reroutes me back to the associates table. There has to be a way
> in Associates.update that I can have it do nothing with the view?

You must to override update_respond_to_html in order to redirect to 
request.referer for example.

>
> On Jun 3, 3:05 pm, JannaB <[email protected]> wrote:
> > updating Segio (and thank's for that textarea fixup!) -Janna
> >
> > On Jun 3, 9:53 am, "Sergio Cambra .:: entreCables S.L. ::."
> >
> > <[email protected]> wrote:
> > > 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]
>
> 
-- 
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