Misc Flashcards

1
Q

rails c

A

Opens rails console to the specified environment

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

rails g rspec:view index

A

Generates the rspec file for view index

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

time.localtime

A

Converts time to local time (using the local time zone in effect for this process) modifying the receiver.

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

Time.utc(2000,”jan”,1,20,15,1)

A

Creates a Time object based on given values, interpreted as UTC (GMT)

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

Delayed::Worker.delay_jobs = false

A

Bypass delayed jobs for a given env

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

content_tag(:p, “Hello world!”)

A

Returns an HTML block tag of type name surrounding the content. Add HTML attributes by passing an attributes hash to options

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