Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Populate user subjects based on documents #634

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

frankete333
Copy link
Member

Screen.Recording.2025-01-21.at.9.56.23.PM.mov

end

def index
redirect_to new_academic_history_path
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Por que definis el index si el boton en el menu lleva al new? Se podria sacar?

@frankete333 frankete333 marked this pull request as ready for review February 13, 2025 23:18
class PdfProcessor
include Enumerable

AcademicEntry = Struct.new(:name, :credits, :number_of_failures, :date_of_completion, :grade) do
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Creo que deberias mover esto a una clase AcademicHistory::AcademicEntry luego en esa clase podes definir un metodo como save_academic_entry_to_user(user) y moves el codigo que dejaste en el controller para ahi.

Además, asi podemos hacer test sobre esa clase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants