On Tue, Sep 22, 2009 at 8:51 PM, Saurabh Peshkar <
[email protected]> wrote:

>
>
> hi Subashini,
>
> I think you can use @quiz variable by making it a class variable as
> @@quiz or a global variable $quiz.
>
> Certainly, a wrong way to do it. Don't do it (at least in rails controller)


As suggested earlier, you should pass ids in params or store in session to
retrieve in your check_answer method.


> might help,
>
> Saurabh
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>

--
अभिनव
http://twitter.com/abhinav

--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to