Activescaffold list,

is there a way to give the options a Proc so that it gets re-evaluated at 
runtime?

Here's my code, but my problem is that new records don't get picked up because 
this gets called at boot, so is set only once.

    config.columns[:block_id].form_ui = :select
    config.columns[:block_id].options = { :options => 
Block.roots.active.all.collect{|b| [b.name, b.id]}}


What I want is to be able to put new records into the blocks table (that match 
the scope you see there) and have them show up in my AS table. (The AS table in 
this case is a join table and I am showing it via an embedded scaffold)
-Jason




----

Jason Fleetwood-Boldt
[email protected]
http://www.jasonfleetwoodboldt.com/writing

-- 
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails Gem" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/activescaffold.
For more options, visit https://groups.google.com/d/optout.

Reply via email to