Hi,

First question which rails version do you use?

If you use rails 3 please follow the tutorial at:
http://vhochstein.wordpress.com/2010/08/28/setup-activescaffold-rails-3/
Shows you a simple team has_many players example.

And please use correct syntax for rails 3 to configure a nested link:
config.nested.add_link(:items)
or if you need a special label:
config.nested.add_link(:items, {:label => 'show items'})

--
Volker




On Jul 27, 4:27 am, patrick99e99 <[email protected]> wrote:
> Hi,
>
> I have:
>
> Thing
>   has_many :items
>
> Item
>   belongs_to :thing
>
> ThingsController:
>   active_scaffold :thing do |config|
>     config.actions =
> [:create, :show, :list, :update, :search, :delete, :nested]
>     config.nested.add_link("show items", [:items])
>   end
>
> ItemsController
>   active_scaffold :item do |config|
>     config.actions =
> [:show, :list, :update, :search, :delete, :create]
>   end
> end
>
> ...
>
> But I do not have a "Show items" link on my things view...
>
> Further, if I create a new "thing", I don't have a link to add many
> "items"...
>
> What do I need to do to enable this functionality?
>
> -patrick

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