Fix bug when previewing with empty string#6
Merged
tomasc merged 1 commit intotomasc:masterfrom Apr 15, 2017
jankeesvw:fix-bug-with-empty-content
Merged
Fix bug when previewing with empty string#6tomasc merged 1 commit intotomasc:masterfrom jankeesvw:fix-bug-with-empty-content
tomasc merged 1 commit intotomasc:masterfrom
jankeesvw:fix-bug-with-empty-content
Conversation
I noticed an error on our production site when people where clicking preview without filling out text. The problem can be fixed by making this small change to the `previews_controller.rb`. This was the exception stack trace: ``` ActionController::ParameterMissing (param is missing or the value is empty: text): actionpack (4.2.8) lib/action_controller/metal/strong_parameters.rb:251:in `require' simple_form_markdown_editor (0.0.9) app/controllers/simple_form_markdown_editor/previews_controller.rb:20:in `text' simple_form_markdown_editor (0.0.9) app/controllers/simple_form_markdown_editor/previews_controller.rb:16:in `text_preview' simple_form_markdown_editor (0.0.9) app/controllers/simple_form_markdown_editor/previews_controller.rb:8:in `block (2 levels) in preview' actionpack (4.2.8) lib/action_controller/metal/mime_responds.rb:217:in `respond_to' simple_form_markdown_editor (0.0.9) app/controllers/simple_form_markdown_editor/previews_controller.rb:7:in `preview'
Owner
|
@jankeesvw thanks for this. I will merge and release as 0.0.10. Please note a 1.0 with refactored markup is coming soon (see the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I noticed an error on our production site when people where clicking preview without filling out text. The problem can be fixed by making this small change to the
previews_controller.rb.This is the exception stack trace: