Advertisement
Guest User

Untitled

a guest
Dec 6th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.36 KB | None | 0 0
  1. class SearchController < ApplicationController
  2.   def index
  3.     search_word = params[:text]
  4.     if search_word.present?
  5.       signal, (search_word, flow_options) = Dev.wtf?(Search::Operation::Show, [params: search_word, {}])
  6.       render html: cell(Search::Cell::Show, signal)
  7.     else
  8.       render html: cell(Search::Cell::Index, result)
  9.     end
  10.   end
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement