Re: [Rails] Re: Re: You have a nil object when you didn't expect it!

2016-04-08 Thread Colin Law
On 8 April 2016 at 12:51, Naveed Alam wrote: >> >> Colin > > I get the following error when I goto the privilege page. > > NoMethodError in Employee#edit_privilege > > Showing app/views/employee/edit_privilege.html.erb where line #82 > raised: > > You have a nil object when you didn't expect it! >

[Rails] Re: Re: You have a nil object when you didn't expect it!

2016-04-08 Thread Naveed Alam
> > Colin I get the following error when I goto the privilege page. NoMethodError in Employee#edit_privilege Showing app/views/employee/edit_privilege.html.erb where line #82 raised: You have a nil object when you didn't expect it! You might have expected an instance of ActiveRecord::Base. The

Re: [Rails] Re: Re: You have a nil object when you didn't expect it!

2016-03-26 Thread Colin Law
On 26 March 2016 at 10:15, Naveed Alam wrote: > Colin > > Sorry below is line 24 > > role_plugin_hash = > Authorization::Engine.instance.roles_plugin_hash[self.name.underscore.to_sym] So Authorization::Engine.instance.roles_plugin_hash is nil. Colin -- You received this message because you a

[Rails] Re: Re: You have a nil object when you didn't expect it!

2016-03-26 Thread Naveed Alam
Colin Sorry below is line 24 role_plugin_hash = Authorization::Engine.instance.roles_plugin_hash[self.name.underscore.to_sym] -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe