How to redirect to list properly?


There’s a ‘list’ page with filtering and sorting options.
You can go to ‘new’ page by clicking ‘new’ link on the ‘list’ page.
When an item is created with the data the user submit, he/she will be
redirected to the ‘list’ page with the original filtering and sorting

To do that, you can

  1. remember the options in the session (this is not a perfect solution)
  2. pass the options to the ‘new’ page. (this works but parameter-passing
    bothers me.)

Is there a better(or more elegant) solution?



This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs