Thank you for the tipp!

After some debugging I found the following code working.

  def create_ignore?
    super || nested?
  end

  def delete_ignore?(record = nil)
    nested?
  end

  def update_ignore?(record=nil)
    nested?
  end


>>
>> Or is there a smarter way to get different configs for the same controller?
>>
>
> authorized and ignore methods.
>
> active_scaffold :bill do |conf|
>   conf.search.link.ignore_method = :ignore_search?
>   ...
> end
>
> def ignore_create?
>   super || !nested?
> end
>
> def ignore_search?
>   !nested?
> end
>

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