realize this question is similar to this one.
Pass URL parameters to a redirect_to :root
However, I'm wondering to start the application with parameters passed at the outset. Perhaps root :to in the routes.rb file is not exactly the correct way to go?
Was basically hoping that it would start like this.
http://localhost:3000/controller?hello_id=1&finder_id=1&laser_id=1&sharks_id=4
Any thoughts would be really appreciated!
Perhaps it has changed in the last couple years, but this is definitely possible now:
root to: 'controller#action', hello_id: 1, finder_id: 1, laser_id: 1, sharks_id: 4
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With