A
A
Arsenikum2016-02-29 00:15:43
Ruby on Rails
Arsenikum, 2016-02-29 00:15:43

What routes are needed to work with the data entry form in RoR applications?

What routes are needed to work with the data entry form in RoR applications?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
K
Konstantin Kozhin, 2016-02-29
@kkzhn

The question is not very clear. What is the task? For a normal form, the minimum is to specify a controller action and a call method (for example, POST). If it is CRUD, then you do not need to specify anything separately.

V
Vasily Shakhunov, 2016-02-29
@inf

config/routes.rb

Awesomeapp::Application.routes.draw do
    resources :modelname
end

E
Evgeny Danilov, 2016-02-29
@jmelkor

It looks like a question from some kind of test :) e
But why do you need an answer if you don’t want to figure it out yourself? As they say: "If you don't like women, don't torture your organ."

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question