Sha256: 8b89c2b74ac951f18650ae93bf3a892a64e767ae09953f7f4e22a6dce923835e

Contents?: true

Size: 320 Bytes

Versions: 1

Compression:

Stored size: 320 Bytes

Contents

class Interpreter::TranslationsController < ApplicationController

  def index
    @translations = Interpreter::Translation.all
  end

  def create
    Interpreter::Translation.create(params[:locale], params[:key], params[:value])
    redirect_to interpreter_translations_url, :notice => "Translation added."
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
interpreter-0.0.2 app/controllers/interpreter/translations_controller.rb