--To view this discussion on the web visit https://groups.google.com/d/msg/rails_admin/-/cPcZg-5awnwJ.
You received this message because you are subscribed to the Google Groups "rails_admin" group.
To post to this group, send email to rails...@googlegroups.com.
To unsubscribe from this group, send email to rails_admin...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rails_admin?hl=en.
config.model Library do
 edit do
  field :user_id do
   # This hides the field label
   label :hidden => true
   def value
    bindings[:view]._current_user.id
   end
   # This hides the field input and helper text but lose _current_user.id value
   def render
    bindings[:view].tag(:div, {:hidden => true})
config.model Library do
 edit do
  field :user_id do
   label :hidden => true
   value do
    bindings[:view]._current_user.id
   end
   view_helper do
    :hidden_field
--
You received this message because you are subscribed to the Google Groups "rails_admin" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rails_admin/-/xB1A5AKCWP4J.
config.model Library do
 edit do
  field :user_id do
   # This hides the field label
   label :hidden => true
   # This hides the help field *yuk*
   help ""
   def value
    bindings[:view]._current_user.id
   end
   # This hides the field input
--
You received this message because you are subscribed to the Google Groups "rails_admin" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rails_admin/-/JCnXyF7FIFMJ.