I need to create in RoR 2.3.5 a list of questions ( the number of
questions will be changing). The answers will be near to each of the
these questions in radiobuttons (let’s say 3 radios near each of
thequestions). After having compleated all of these questions I would
like to read all the answers and using ONE update insert them to the
database(mySQL). Is it possible to create this functionality without
js?
I need to create in RoR 2.3.5 a list of questions ( the number of
questions will be changing). The answers will be near to each of the
these questions in radiobuttons (let’s say 3 radios near each of
thequestions). After having compleated all of these questions I would
like to read all the answers and using ONE update insert them to the
database(mySQL). Is it possible to create this functionality without
js?
Of course. You’re describing a basic form. Why would you think you
need JavaScript to submit it and process the data?
Thanks Hassan for your answer. However I don’t know how to define the
radiobuttons (in such a way that a different answer can be checked for
different questions). And I don’t know how to read all the user’s
answers. Could you try to paste a bit of code?
Thanks Hassan for your answer. However I don’t know how to define the
radiobuttons (in such a way that a different answer can be checked for
different questions). And I don’t know how to read all the user’s
answers. Could you try to paste a bit of code?
No, first learn about HTML form syntax (hint: the “name” attribute is
significant here) and read the Rails documentation. If that doesn’t
work, show us what you’ve done so far and what problems you’re having.
Asking for code without “doing your homework” first will usually get you
ignored here.
–
You received this message because you are subscribed to the Google G. “Ruby on Rails: Talk” group.
Thanks guys for your responses. For the future - it would be great if
you could to give some kind of hint or high level description how to
approach soloving the problem. Such as reading about FORM, some links
would be great. Thanks !
Thanks guys for your responses. For the future - it would be great if
you could to give some kind of hint or high level description how to
approach soloving the problem. Such as reading about FORM, some links
would be great. Thanks !