If you dig through the archives you can find the references for this.

Not sure if this is the official way to do this but this does work with
the current 2.3 versions

Look if there are any parameters set on send(:active_scaffold_constraints)
If you are called in nested mode you can then read your parameters of this
structure like this:

send(:active_scaffold_constraints)[:xyz]

You can also look at the nested? Method.
Its really useful to disable/enable an action in AS like this:


def create_authorized?
  nested? ? super : false  # Remove unless nested
end


/S

On 2/4/11 8:52 AM, "p k" <[email protected]> wrote:

>How would this be done is rails 2.3? Thanks!
>
>On Feb 2, 2:21 am, vhochstein <[email protected]> wrote:
>> Hi Mike,
>>
>> in rails 3 version this would be 'nested_parent_record'
>>
>> --
>> Volker
>>
>> On Feb 2, 1:16 am, mikelb <[email protected]> wrote:
>>
>>
>>
>> > In a nested controller, how do I gain access to the parent record (or
>> > even just its ID)?
>>
>> > I'm trying to do some filtering based on it....
>>
>> > Thanks!- Hide quoted text -
>>
>> - Show quoted text -
>
>-- 
>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.
>


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