Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

model name is diffrent of table name an error

Abierto
#261 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
18/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
ruby
Área
api

Línea de trabajo

Start with the present :data, TxhimsPatientInfo.all, :with => TxhimsPatientInfoEntity call and the TxhimsPatientInfoEntity definition shown in the issue. Reproduce the reported ArgumentError in the project context, then inspect the surrounding V1::ExamineReportsAPI loading and removal behavior. Done means identifying a reproducible cause and documenting or testing the supported model/entity usage.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

hi my project model name is TxhimsPatientInfo ,but my databse table name is patient_infos

class TxhimsPatientInfo < TxhimsModel
     self.table_name = "patient_infos"
end

entity name is TxhimsPatientInfoEntity

class TxhimsPatientInfoEntity < Grape::Entity
  expose :id, :patient_name
  expose :body_description
end

I m used the bottom code has a misstake error ArgumentError (A copy of V1::ExamineReportsAPI has been removed from the module tree but is still active!):

present :data, TxhimsPatientInfo.all, :with => TxhimsPatientInfoEntity

Lenguaje dominante
Ruby
Estrellas
730
Forks
154
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ruby-grape/grape-entity

Todos los issues de ruby-grape/grape-entity

Issues similares

Más issues de Ruby

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.