```ruby
# coding: utf-8

class Channels::ProjectsController < ProjectsController
  belongs_to :channel, finder: :find_by_permalink!, param: :profile_id, polymorphic: true
  after_filter only: [:create] { @project.channels << @channel }

end


```

Remove polymorphic flag from channels projects
user
```ruby
# coding: utf-8

class Channels::ProjectsController < ProjectsController
  belongs_to :channel, finder: :find_by_permalink!, param: :profile_id
  after_filter only: [:create] { @project.channels << @channel }

end


```
assistant