Heroku not running Ransack

heroku[router]: at=info method=GET path="/search?search

Hi everyone, am having issue when trying to search by location on Heroku, using ransack gem, it doesn’t display the results in the redirected page but in my localhost everything works perfectly.

I checked my heroku logs and this is the error:

2023-01-10T20:05:32.136098+00:00 heroku[router]: at=info method=GET path="/search?search=cascais" host=yourent.herokuapp.com request_id=5539ed89-8864-4a3c-91bc-6407cae3c53b fwd="" dyno=web.1 connect=0ms service=86ms status=200 bytes=8638 protocol=https
2023-01-10T20:05:45.566158+00:00 heroku[router]: at=info method=GET path="/" host=yourent.herokuapp.com request_id=65258d63-7299-4687-ac5b-9b041a702ffd fwd="" dyno=web.1 connect=0ms service=15ms status=200 bytes=9174 protocol=https

Hey @pjgomes85,

Welcome to the community :cake:

What is Ransack? Where are you doing the search to trigger the error? It would also be very useful if you can fill out the template we provide so that we can see what version you are running.

Hi Jon
Thanks for the reply

I just fixed the issue
I used a cleaner method on my controller to search queries from the Database.

def search
    @movies = Room.all
    if params[:query].present?
      @movies = Room.where("address ILIKE ?", "%#{params[:query]}%")
      @movies = Room.all


Thanks :wink:

Hey @pjgomes85,

That is good to hear although I still have no idea what is going on here :joy: is it even related to n8n.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.