RailsCasts Pro episodes are now free!

Learn more or hide this

Ratnakar's Profile

GitHub User: ratnakarrao-nyros

Comments by Ratnakar

Avatar

Having conflicts between current controllers and active admin controllers.. when I sing in both admin section and normal sections, public activity is taking normal section current user though I updated through admin section.

How to fix this

Avatar

I configured my model with tracke like the following ..

tracked owner: ->(controller, model) { controller && controller.current_user}

and when I try to update my model from admin section (I am using active admin) , it does not update current user as owner in the database .

I found the issues is controller is having nil value. how to fix this issue

Avatar

Can I use render_activities(@activities) in rabl to display json content, otherwise any approach of rendering activities in json format