railsnoobquestion: I am trying to develop a feature where a user can save an object in rails and is then forwarded to the form again, to create another object.
I could think of two options:
-Create a fully new route
-Add data to the restaurant post object, check for that data in the controller?
Has anyone built a similar feature?
thx
The solution was to create a hidden form field with another submit button:
Then use javascript to submit the form:
Inside the respective controller, in my case, category controller: