I thik it's config.nested.add_link :users, at least in latest version On Miércoles, 16 de Noviembre de 2011 14:26:36 faizal escribió: > tried that but not working > > On Nov 16, 6:01 pm, "Sergio Cambra .:: entreCables S.L. ::." > > <[email protected]> wrote: > > On Miércoles, 16 de Noviembre de 2011 13:09:16 faizal escribió: > > > in my controller > > > > > > class RolesController < ApplicationController > > > active_scaffold :role do |config| > > > config.nested.add_link("user", :users) > > > end > > > end > > > > > > class UsersController < ApplicationController > > > active_scaffold :user do |config| > > > end > > > end > > > > > > i my model > > > > > > class Role < ActiveRecord::Base > > > has_many :user > > > end > > > > > > class User < ActiveRecord::Base > > > belongs_to :role > > > end > > > > > > for the above lines of code it fails to generate nested scaffold > > > > Role should have many users, instead of user. Try that > > > > -- > > Sergio Cambra .:: entreCables S.L. ::. > > Mariana Pineda 23, 50.018 Zaragoza > > T) 902 021 404 F) 976 52 98 07 E) [email protected]
-- Sergio Cambra .:: entreCables S.L. ::. Mariana Pineda 23, 50.018 Zaragoza T) 902 021 404 F) 976 52 98 07 E) [email protected] -- 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.
