El Saturday 14 February 2009 04:02:53 Kumala escribió:
> I got two classes with a 1:N relation.
> E.g. Servicegroup and Service  with    1 Servicegroup having many
> Services
> class ServicegroupController < ApplicationController
> active_scaffold :servicegroup do |config|
>     config.columns = [:code, :name]
>  end
> class ServiceController < ApplicationController
>   active_scaffold :service do |config|
>     config.columns = [:servicegroup, :code, :name]
>   end
>
> If I now display the list of the Services, and click on the service
> group (which appears as a link),  then the service group details are
> displayed in an edit mode but what I need is a display mode.
>
> How?

Use config.columns[:servicegroup].actions_for_association_links.delete :edit
or config.columns[:servicegroup].actions_for_association_links = [:show] if 
you want to disable new link too.
-- 
Sergio Cambra .:: entreCables S.L. ::.
Nicolás Guillén 6, locales 2 y 3. 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
-~----------~----~----~----~------~----~------~--~---

  • Sh... Kumala
    • ... Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.

Reply via email to