Rails polymorphic association call model that doesn't exist -
i've problem call model doesn't exist. have model commandset
on polymorphic association model recordlevelsecurity
has securable
field can contains ibmicommandset
or commandset
. i've 1 model ibmicommandset
, commandset
, it's of course commandset
.so have tried find role
recordlevelpermission
that contains recordlevelsecurity
's id.rails gives following error after attempt find role.
def edit @system_settings = @@system_settings @role = role.find(params[:id], :include => {:record_level_permissions => {:record_level_security => :securable}}) set_view_only if !params[:page] && !params[:list] show_role elsif params[:list] render_list_partial else render_edit_partial end end nameerror (uninitialized constant ibmicommandset): org/jruby/rubyarray.java:1612:in `each' org/jruby/rubyarray.java:1612:in `each' org/jruby/rubykernel.java:2105:in `send' org/jruby/rubyarray.java:1612:in `each' org/jruby/rubyhash.java:1170:in `each' org/jruby/rubyhash.java:1170:in `each' org/jruby/rubyarray.java:1612:in `each' app/controllers/roles_controller.rb:56:in `edit' org/jruby/rubykernel.java:2093:in `send' org/jruby/rubyproc.java:270:in `call' org/jruby/rubyproc.java:220:in `call' org/jruby/rubyproc.java:270:in `call' org/jruby/rubyproc.java:220:in `call' org/jruby/rubyproc.java:270:in `call' org/jruby/rubyproc.java:220:in `call' org/jruby/rubyproc.java:270:in `call' org/jruby/rubyproc.java:220:in `call' org/jruby/rubyproc.java:270:in `call' org/jruby/rubyproc.java:220:in `call' org/jruby/rubyproc.java:270:in `call' org/jruby/rubyproc.java:220:in `call' org/jruby/rubyproc.java:270:in `call' org/jruby/rubyproc.java:220:in `call' org/jruby/rubyproc.java:270:in `call' org/jruby/rubyproc.java:220:in `call' org/jruby/rubyproc.java:270:in `call' org/jruby/rubyproc.java:220:in `call' org/jruby/rubyproc.java:270:in `call' org/jruby/rubyproc.java:220:in `call' org/jruby/rubyproc.java:270:in `call' org/jruby/rubyproc.java:220:in `call' org/jruby/rubyproc.java:270:in `call' org/jruby/rubyproc.java:220:in `call' org/jruby/rubyproc.java:270:in `call' org/jruby/rubyproc.java:220:in `call' org/jruby/rubyproc.java:270:in `call' org/jruby/rubyproc.java:220:in `call' org/jruby/rubyproc.java:270:in `call' org/jruby/rubyproc.java:220:in `call' org/jruby/rubyproc.java:270:in `call' org/jruby/rubyproc.java:220:in `call' org/jruby/rubyproc.java:270:in `call' org/jruby/rubyproc.java:220:in `call' org/jruby/rubyproc.java:270:in `call' org/jruby/rubyproc.java:220:in `call' org/jruby/rubyproc.java:270:in `call' org/jruby/rubyproc.java:220:in `call' org/jruby/rubyproc.java:270:in `call' org/jruby/rubyproc.java:220:in `call' org/jruby/rubyproc.java:270:in `call' org/jruby/rubyproc.java:220:in `call' org/jruby/rubyproc.java:270:in `call' org/jruby/rubyproc.java:220:in `call' org/jruby/rubyproc.java:270:in `call' org/jruby/rubyproc.java:220:in `call' org/jruby/rubyproc.java:270:in `call' org/jruby/rubyproc.java:220:in `call' org/jruby/rubyproc.java:270:in `call' org/jruby/rubyproc.java:220:in `call' org/jruby/rubyproc.java:270:in `call' org/jruby/rubyproc.java:220:in `call' org/jruby/rubyproc.java:270:in `call' org/jruby/rubyproc.java:220:in `call' org/jruby/rubyproc.java:270:in `call' org/jruby/rubyproc.java:220:in `call' org/jruby/rubyproc.java:270:in `call' org/jruby/rubyproc.java:220:in `call' org/jruby/rubyproc.java:270:in `call' org/jruby/rubyproc.java:220:in `call' org/jruby/rubyproc.java:270:in `call' org/jruby/rubyproc.java:220:in `call' org/jruby/rubyproc.java:270:in `call' org/jruby/rubyproc.java:220:in `call'
Comments
Post a Comment