I create controller with InherritedResource
class AppsController < InheritedResources::Base belongs_to :company # Devise before_filter :login_or_oauth_
I found solution :-P
What I did was just to change from
get :index
to
get :index, :company_id => @company_1.id