Nick Parkin
2011-Aug-11 13:16 UTC
Basic Quiz, Answer The Question Correct Next Page, in Ruby
Hi Guys. For my girlfriend''s birthday I want to give her an iPid touch but coupled with that I want to build a treasure hunt using it. Basically the plan is; give it to her and she logs onto the page I''ve setup, it shows the first question and she enters the answer; if the answer is correct it continues to the next page showing a clue to the next destination which we drive to, solve the question, enter the answer and so on. I have basic Ruby knowledge (still learning and currently building scaffolded applications) but assuming I was able to make the various question pages how would I: - Check if the answer was correct (comparing it to a simple string) - If correct, send her to another page (the next question) or alternatively show an error message. So struggling with If statements and also transitions between pages. My primary experience is in Java and am currently learning C# as part of a course but realised how easy it would be to just roll a Ruby script on Heroku that she could connect to. Any help would be appreciated? -- 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.