Skip to content
This repository has been archived by the owner on Jun 13, 2018. It is now read-only.

display html error if no scap_content_profile #21

Closed
wants to merge 1 commit into from

Conversation

shlomizadok
Copy link
Contributor

On policies, if no scap_content_profile is chosen, View guide page will raise an error:

ActionView::MissingTemplate (Missing template scaptimony_policies/parse, application/parse with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :rabl]}. Searched in:
  * "/home/szadok/dev/repos/foreman/app/views"
  * "/home/szadok/dev/repos/foreman-docker/app/views"
  * "/home/szadok/dev/repos/foreman_openscap/app/views"
  * "/home/szadok/dev/repos/scaptimony/app/views"
  * "/home/szadok/.rvm/gems/ruby-2.0.0-p481/gems/apipie-rails-0.2.6/app/views"
):

We can not use warn method.

@isimluk
Copy link
Member

isimluk commented Mar 1, 2015

Weird. We should be able to generate guide for 'empty' profile. OpenSCAP should be able to generate such guide.

@isimluk
Copy link
Member

isimluk commented Mar 1, 2015

The patch is good.

But the guide button should work as well.

@isimluk
Copy link
Member

isimluk commented Mar 1, 2015

Merged as a833d0f.

Also created final fix in c1cef82.

@isimluk isimluk closed this Mar 1, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants