Skip to content

Conversation

@SesameSeeds
Copy link

Task List

Congratulations! You're submitting your assignment!

Comprehension Questions

Question Answer
Describe in your own words what the Model is doing in Rails The model essentially is representative of the data for the app, often linked in a database. It contains the state of the app, but has no knowledge of user interfaces so it can be reused.
Describe in your own words what the Controller is doing in Rails The controller receives events from the outside world (usually from views) and it interacts with the model. It also determines the next step in the process flow and often is responsible for notifying the view of state changes.
Describe in your own words what the View is doing in Rails The view generates the interface which is presented to the user. It doesn't process as it is passive. It is such that the views work is considered 'done' once the data is displayed to the user. Many views can access the same model for different reasons.
What is the purpose of using strong params? (i.e. the params method in the controller) Strong params provide an interface that protects attributes from end-user assignment. Basically it chooses what can be updated, marks things as 'safe', and prevents potential updates by a user of model attributes of a more sensitive nature.
How are Rails migrations related to Rails models? Rails migrations provide update to the structure of the database which is contained in a Rails model.
Describe one area of Rails that are still unclear on I'm feeling much more confident about Rails, however, though I did not have time to dedicate to designing it, I do feel like I would like better understanding of how to best create HTML in rails, the interface is important for the user and when I had started to do some design initially, I did come across some confusion where I 'broke' things so getting a better understanding of that meshing is what I need to become more clear on. I'm sure there is something else, but as I'm still learning, we will see how this changes.

@tildeee
Copy link

tildeee commented Oct 6, 2017

Task List

What We're Looking For

Feature Feedback
Baseline
Appropriate Git Usage with no extraneous files checked in x
Answered comprehension questions excellent comprehension question answers
Successfully handles: Index, Show x
Successfully handles: New, Create x
Successfully handles: Edit, Update x
Successfully handles: Destroy, Task Complete x
Routes follow RESTful conventions x
Uses named routes (like _path) x
Overall

<p id="copyright">
&copy; 2017 - Stefanie Gunderson, keeping it simple.
</p>
</div>
Copy link

@tildeee tildeee Oct 6, 2017

Choose a reason for hiding this comment

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

don't forget to end your footer with a </footer>, this affects a bunch of pages

end

def create
@task = Task.new(name: params[:task][:name], description: params[:task][:description])
Copy link

Choose a reason for hiding this comment

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

You didn't make a strong params method in the controller, but you mentioned in the comprehension question answers exactly what strong params are! You can use them here.

@tildeee
Copy link

tildeee commented Oct 6, 2017

Works well! Good job overall, just left a few comments for you.

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