Hi,

If i acess the following below on http://localhost:3014/units i get
the dynamic label as defined in update_table_config.  So if the label
was "Cities" i get "Create new city" when i hit the create new button
etc.  However if im inside a nested table then the deafault "Units" is
used, it seems to be ignoring the the before_filter when its nested
inside another tabe.  So i have "create new unit" instead of "Create
new city".

before_filter :update_table_config

  def update_table_config
    active_scaffold_config.label = current_user.label
  end

active_scaffold :unit do |config|
    config.columns = [:name]
end

Is there any solution to this?

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