Sha256: 0217bf562c7c091e39f59f7f2c382a1c91ac4564cc4fd25771ce56ab966c0d21

Contents?: true

Size: 493 Bytes

Versions: 1

Compression:

Stored size: 493 Bytes

Contents

class TipoExamesController < ApplicationController
  def new
  end

  def create
    tipo_exame = TipoExame.create(:nome => params[:nome], :especialidade_id => params[:especialidade_id])
    especialidade = Especialidade.find(params[:especialidade_id])
    render :text => TipoExame.select(especialidade, tipo_exame.id)
  end

  def get_nome
    tipo_exame = TipoExame.find(params[:id].to_i)
    render :text => tipo_exame.nome
  end

  def index
  end

  def edit
  end

  def show
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
omniauth-sabia-1.0.1 app/controllers/tipo_exames_controller.rb