I have the Client and Exam models:

class Client < ActiveRecord::Base
  has_many :exams, dependent: :destroy
end


class Exam < ActiveRecord::Base
  belongs_to :client
end


in clients controller:

class ClientsController < ApplicationController
  active_scaffold :client do |config|
    config.nested.add_link(:exams)
  end
end


How do I restrict access to exam link only for those who have permissions 
to exam via cancan ?

-- 
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails Gem" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/activescaffold.
For more options, visit https://groups.google.com/d/optout.

Reply via email to