rails Flashcards

1
Q

rails: The less than symbol means

A

inherits from

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

rails: Template filters are called

A

helpers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

rails: The rails asset pipeline

A

takes your static files from the assets folder and gets the ready to be served in production

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

rails: To skip a before_action function from the ApplicationController in a specific controller, type

A

skip_before_action :function_name in the specific controller

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

rails: Looping through an empty collection in the template will

A

not cause an error, but just render nothing.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

rails: when doing ajax calls from app

A

add .json to the end of the url endpoint so I can still use the respond_to block

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

rails: If the database table is called posts, then the foreign key in a child table would be

A

post_id

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

rails: The database table for a Post model will be

A

posts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly