# Bug OP-563 - [News] Add news: Preview button does not work

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-563

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 4.0.0 |
| Observed in versions |  |
| Sprint | 4.0.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

**Actual behavior**

  - Preview section is not loaded when Preview button is clicked in “Add news” section (“News” -\> “Add news”).

**Expected behavior**

  - Preview is displayed.

**Precondition**

  - Module “News” is activated.

**Steps to reproduce**

1.  Click on “Add news”.
2.  Enter text in description field.
3.  Click “Preview”.

**Solution Propositions**

  - Console output suggests that the correct route is missing

<!-- end list -->

    Started PUT "/projects/seeded_project/news/preview" for 127.0.0.1 at 2013-12-18 16:36:53 +0100
    RailsDevTweaks: Skipping ActionDispatch::Reloader hooks for this request.
    ActionController::RoutingError (No route matches [PUT] "/projects/seeded_project/news/preview"):

  - PreviewsController\#create expects the method to be POST but the Preview link generates PUT requests. This change to PUT was made here: https://github.com/opf/openproject/commit/bba42a46516e101d73afa30cea876c54a5d5274b\#diff-a9c3bd311eab80c9ebe6a69830f9ad02L1402
