Closed ECIson closed 9 years ago
Hey @ECIson! Nice job on this :smiley: a few small things:
show
method of categories_controller, I think you meant to have it respond_with(@category)
set_category
method private? category_name
method of the workshift model, you can condense the first three lines into return category.name unless category.nil?
Other than that, it looks awesome! Great work :+1:
I made some UI changes to the navbar and workshift edit page in order to display and modify categories. You can add workshifts to categories and remove from them in their edit page (so there is some basic functionality). When a category is deleted the workshift is not deleted, btw (and by default its category name is Uncategorized) I am somewhat of a novice at these kind of things so any suggestions will be helpful.