looks really nice, but where do you place that?
On Aug 20, 9:55 am, Jeff <[EMAIL PROTECTED]> wrote:
> Here is a routine that I use to refresh the row (with a snazzy flash
> effect, lol) and display messages.
>
> def active_scaffold_refresh_row(record = nil)
> record = @record unless record
>
> row_id = element_row_id(:action => :list, :id => record.id)
>
> render :update do |page|
> page.replace row_id, :partial => 'list_record', :locals =>
> { :record => record }
> page <<
> "ActiveScaffold.stripe('#{active_scaffold_tbody_id}');"
> page.replace_html active_scaffold_messages_id, :partial
> =>'messages'
> page.visual_effect :highlight, row_id
> end
>
> end
>
> On Aug 20, 2:40 am, "Sergio Cambra .:: entreCables - Symbol Servicios
> Informáticos S.L. ::." <[EMAIL PROTECTED]> wrote:
>
> > El Wednesday 20 August 2008 05:17:43 ngrandy escribió:
>
> > > i've just been playing with the same thing. yes, it appears that
> > > the :position=>false option means the response will be executed as
> > > javascript, rather than displayed in the table.
>
> > > after looking around a bit, i couldn't find the template for updating
> > > a single row in a table. am i right that activerecord is missing
> > > this? ie, this is for the pattern where you have an action link that
> > > does something to a given record, and then you want to re-render just
> > > the row of that record, not the whole table. anyway, i put together
> > > an rjs file that accomplishes that, even though it may exist
> > > already.
>
> > The row action (I think it's in actions/list.rb) update a row. It renders
> > _list_record.rhtml partial I think, because it's called from an Ajax.Updater
>
> > --
> > Sergio Cambra .:: entreCables - Symbol Servicios Informáticos 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
-~----------~----~----~----~------~----~------~--~---