Thanks a lot for the detailed explanations. Two remarks for this:
As for the naming, my application evolves a dictionary of foreign
language idioms, and the main purpose it to train the user in the usage
of these idioms. From the perspective of the user, there are 3 types of
"screens" (HTML pages):
- The login page (where he identifies himself, chooses (or create) a
dictionary)
- The Management page (where he can import/export dictionaries to/from
database, merge other dictionaries into the existing ones, add new
idioms (this is really an "edit" action) and, most important of all,
select one of several training plans and start trainig).
- The Training page, where an idiom training is performed on the fly.
This page also allows, for convenience, editing vocabulary on the fly
(but only the one which is presented right now).
From this setup, I found that the usual CRUD actions don't go that well
with the application, and that's why I invented the action "manage" in
dict, and in the meanwhile the action "start" in the (new)
training_controller. However I am flexible with names, and if an
experienced Rails developer strongly suggests going with standard action
names, I certainly don't object. After all, I can still keep the "meat"
of my code in my "manage" routine, and just have the "edit" method call
"manage()".
As for "generate scaffold", I have used this when doing exercises back
with good old Rails 1, but now with Rails 4, the tutorial doesn't use
"generate scaffold" anymore, but always "generate model" and "generate
controller". Do you recommend me to investigate into "generate scaffold"
too?
Thanks a lot for your detailed comment. It really helps a lot!
One final question: I have read various tutorials, but when it comes to
look up the API, I found the documentation a bit confusing, and
difficult to find what I am looking for. You gave for example a
suggestion to use the "resources" method with the path_names: parameter.
Though I have stumbled several times over the usage of 'resources', I
haven't found a single place, which would explain the usage of all
parameters (such as path_names:) and examples of usage. Right now, when
I really want to know how something is done in Rails, I google for it,
hoping that someone else had the same problem. This often works out, but
I would be more happy if I had a documentation of the Rails classes and
methods, in a similar way as it is for Ruby and the standard functions
and -classes. Is this available, or is Rails in the flux so much that we
can't expect this yet?