Y
Y
Yauheni Dakuka2015-08-05 23:42:47
Ruby on Rails
Yauheni Dakuka, 2015-08-05 23:42:47

How to open the same object from different methods in controller?

After clicking on 1, a new @result object is created.
After clicking on 2, the same @result object must update some of its parameters.
Click on 3 - the object is saved, go to the results.
Question: how can I open (find) the same object if different methods in the controller are responsible for actions 1, 2, 3?
5e829017f6f44e4dab671edca0e3e59a.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
T
TyzhSysAdmin, 2015-08-06
@ydakuka

Sessions

P
Pavel Kononenko, 2015-08-06
@premas

Get familiar with JavaScript.

M
Maxim, 2015-08-07
@1kachan

Follow this path (it's not perfect, but you need something like this): html+css -> js -> ruby ​​-> ROR.
Only after a normal understanding of the previous step, you can proceed to the next one.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question