skip to Main Content

Javascript – In my controller's update action, when update_attributes fails due to the validator, I lose the /edit suffix in my URL

Description of my work environment: Rails 4.2.4, Ruby 2.3.1, SQL Server database, javascript on object html views My controller that content an update action: if @cs.update_attributes(cs_params_update) flash[:notice] = "Centro de Saúde #{t(:record_successfully_updated)}" # format.html { render :action => 'edit', :cs_id…

VIEW QUESTION
Back To Top
Search