Open pkemble opened 8 years ago
moved to enhancement - this works, but not in the best way - very weakly typed and should be looked at again in the future:
if params[:commit] == "Save and start next flight"
adding params: { commit_type: :next } to the button signature should work according to http://stackoverflow.com/questions/4886963/how-to-add-additional-params-to-a-button-to-form
also in entries controller: if params[:commit] == "Create entry and add flights"
if params[:commit] == "Create entry and add flights"
moved to enhancement - this works, but not in the best way - very weakly typed and should be looked at again in the future:
if params[:commit] == "Save and start next flight"
adding params: { commit_type: :next } to the button signature should work according to http://stackoverflow.com/questions/4886963/how-to-add-additional-params-to-a-button-to-form