I have a rails 4.1.8, both on ruby 2.0, and migrated activescaffold from
3.3.3 to 3.4.10.

I had a working field_attributes method in a helper (as stated here:
https://github.com/activescaffold/active_scaffold/wiki/form-overrides) to
hide some fields given some conditions as the following:

  def field_attributes(column, record)
    raise 'error!'
    if !current_user
      if column.name == :legal_guardian_name &&
!Exam.find(session[:exam_id]).is_school
        {:style => "display:none;"}
       end
    else
      super
    end
  end

I even put a raise 'error' at the first line to test if field_attributes is
being called on create/update, which isn't. Is it a bug or was it dropped?
Thanks in advance.

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