Guest User

Untitled

a guest
Apr 20th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. ActionController::UnknownFormat (SearchsController#index is missing a template for this request format and variant.
  2.  
  3. request.formats: ["text/html"]
  4. request.variant: []
  5.  
  6. NOTE! For XHR/Ajax or API requests, this action would normally respond with 204 No Content: an empty white screen. Since you're loading it in a web browser, we assume that you expected to actually render a template, not nothing, so we're showing an error to be extra-clear. If you expect 204 No Content, carry on. That's what you'll get from an XHR or API request. Give it a shot.):
  7.  
  8. def index
  9. #ViewのFormで取得したパラメータをモデルに渡す
  10. @projects = Search.search(params[:search])
  11. end
Add Comment
Please, Sign In to add comment