E
E
eldar_web2015-09-23 14:16:20
Ruby on Rails
eldar_web, 2015-09-23 14:16:20

How to create a REST controller without a scaffold in Ruby on Rails?

How to create a REST controller in the console (rails generate) without using scaffold (there are just models)?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton Radushevsky, 2015-09-23
@eldar_web

rails g controller CONTROLLER_NAME
or
rails g scaffold_controller CONTROLLER_NAME

R
Roman Vakulchik, 2015-09-23
@rvakulchik

rails generate scaffold_controller ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question