Ruby on Rails Command Line Flashcards

1
Q

Name the rails command that creates a new application

A

rails new Name_of_Application

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

List all items in the rakefile.

A

rake -T

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

How to find out what version of Ruby you are using?

A

ruby -v

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

How to find out what gems version you are using?

A

gems -v

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

See a list of what gemsets you have installed.

A

rvm gemset list

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

How do you make a new directory from the command line?

A

mkdir directory_name

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

Undo a Rails generate controller

A

rails destroy controller

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

rails new -h

A

To see all of the command line options that the Rails application builder accepts.

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

bundle

A

Compiles and updates all gems in the gemfile

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

rake routesCONTROLLER=products

A

would only lists the routes related to ProductsController.

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

How to work in production environment console.

A

RAILS_ENV=production rails console

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