There are 2 "actions" in Sinatra
get '/default1' do
haml :"default1_view"
end
post '/default1' do
if params[:button_name] = "clear_filter"
#how do I return "get '/default1'" view from here?
end
#filtering the result
haml :"default1_view"
end
How do I call another "action" from post '/default1'
without redirect?
Note that I need to retrieve only the result from "get '/default1'"
to show it as a result at post '/default1'