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? Kind regards, Smok -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Thu, May 20, 2010 at 2:46 PM, Smok <mariusz_waszczyk-wYtBgQxc//8@public.gmane.org> wrote:> 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? Or am I misunderstanding your goal? -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org twitter: @hassan -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 21 Maj, 00:19, Hassan Schroeder <hassan.schroe...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Thu, May 20, 2010 at 2:46 PM, Smok <mariusz_waszc...-wYtBgQxc//8@public.gmane.org> wrote: > > I need to create in RoR 2.3.5 alistof 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? > > Or am I misunderstanding your goal? > > -- > Hassan Schroeder ------------------------ hassan.schroe...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > twitter: @hassan >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? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Smok wrote:> On 21 Maj, 00:19, Hassan Schroeder <hassan.schroe...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> need JavaScript to submit it and process the data? >> >> Or am I misunderstanding your goal? >> >> -- >> Hassan Schroeder ------------------------ hassan.schroe...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org >> twitter: @hassan >> > 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. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Fri, May 21, 2010 at 8:25 AM, Marnen Laibow-Koser <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> No, first learn about HTML form syntax (hint: the "name" attribute is > significant here)Heh. Beat me by a minute :-) I was going to suggest that the OP has apparently never read this <http://www.w3.org/TR/html401/interact/forms.html> and that it''d be an excellent place to start... -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org twitter: @hassan -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 21 Maj, 17:28, Hassan Schroeder <hassan.schroe...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Fri, May 21, 2010 at 8:25 AM, Marnen Laibow-Koser > > <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: > > No, first learn about HTML form syntax (hint: the "name" attribute is > > significant here) > > Heh. Beat me by a minute :-) > > I was going to suggest that the OP has apparently never read this > <http://www.w3.org/TR/html401/interact/forms.html> and that it''d be > an excellent place to start... > > -- > Hassan Schroeder ------------------------ hassan.schroe...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > twitter: @hassan > > -- > You received this message because you are subscribed to the Google Groups "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 ! -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Sun, May 23, 2010 at 7:13 AM, Smok <mariusz_waszczyk-wYtBgQxc//8@public.gmane.org> wrote:> On 21 Maj, 17:28, Hassan Schroeder <hassan.schroe...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:>> I was going to suggest that the OP has apparently never read this >> <http://www.w3.org/TR/html401/interact/forms.html> and that it''d be >> an excellent place to start...> 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 !Uh, isn''t that exactly what I did? :-) -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org twitter: @hassan -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.