Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class SearchController < ApplicationController
- def index
- search_word = params[:text]
- if search_word.present?
- signal, (search_word, flow_options) = Dev.wtf?(Search::Operation::Show, [params: search_word, {}])
- render html: cell(Search::Cell::Show, signal)
- else
- render html: cell(Search::Cell::Index, result)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement