diff --git a/app/controllers/translations_controller.rb b/app/controllers/translations_controller.rb index 5436b33..7d63d70 100644 --- a/app/controllers/translations_controller.rb +++ b/app/controllers/translations_controller.rb @@ -1,5 +1,5 @@ class TranslationsController < ApplicationController - before_action :set_translation, only: [:show, :edit, :update, :destroy] + before_action :set_translation, only: :show # GET /translations # GET /translations.json @@ -17,10 +17,6 @@ class TranslationsController < ApplicationController @translation = Translation.new end - # GET /translations/1/edit - def edit - end - # POST /translations # POST /translations.json def create @@ -37,30 +33,6 @@ class TranslationsController < ApplicationController end end - # PATCH/PUT /translations/1 - # PATCH/PUT /translations/1.json - def update - respond_to do |format| - if @translation.update(translation_params) - format.html { redirect_to @translation, notice: 'Translation was successfully updated.' } - format.json { render :show, status: :ok, location: @translation } - else - format.html { render :edit } - format.json { render json: @translation.errors, status: :unprocessable_entity } - end - end - end - - # DELETE /translations/1 - # DELETE /translations/1.json - def destroy - @translation.destroy - respond_to do |format| - format.html { redirect_to translations_url, notice: 'Translation was successfully destroyed.' } - format.json { head :no_content } - end - end - private # Use callbacks to share common setup or constraints between actions. def set_translation diff --git a/app/views/translations/show.html.erb b/app/views/translations/show.html.erb index c7fb342..8b01959 100644 --- a/app/views/translations/show.html.erb +++ b/app/views/translations/show.html.erb @@ -14,4 +14,3 @@