Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pundit policy errors on creating new remixes #45

Open
raincrash opened this issue Feb 5, 2018 · 0 comments
Open

Pundit policy errors on creating new remixes #45

raincrash opened this issue Feb 5, 2018 · 0 comments

Comments

@raincrash
Copy link

When creating the first remix for a Hub, an unable to find policy of nil error occurs. This happens when authorize @republished_feed is called (Pundit::NotDefinedError in RepublishedFeedsController#create). Weirdly, this happens with "republished_feed"=>{"hub_id"=>"1", "title"=>"MainRemix", "url_key"=>"mainRemix", "description"=>"", "limit"=>"50"}, "commit"=>"Create new remix feed", "hub_id"=>"mainhub"}. The remix is created successfully when the title and url_key are test and test. I coun't trace why this is happening.

Also, when "Create a new Remix record" is clicked from an items list, a Couldn't find RepublishedFeed with 'id'=0 error is triggered. The sent parameters are {"hub_id"=>"mainhub", "id"=>"0"}.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant