On Apr 15, 2015, at 6:44 AM, Philippe Demaria <[email protected]> 
wrote:
> 
> Bonjour à tous,
> je suis tout nouveau, français et prof de maths... Je débute donc avec ROR.
> 
> Je génère aléatoirement des exercices de maths avec des variables dans mon 
> controller show, puis à l'aide d'un helper, je les affiche dans ma vue show.
> 
> Mais comme il y a plusieurs exercices générés comme cela ( exo1, exo2, exo3), 
> cela me donne les variables @exo1, @exo2, @exo3. et donc 3 vues, 3 
> controller, et 3 modèls !
> 
> Comment dois je m'y prendre pour n'utiliser qu'une seule vue show ? Je pense 
> qu'il faut quand même 3 helper et 3 controller ?
> Pour les model, ils sont identiques. Puis je n'en avoir qu'un seul ?
> 
> Merci pour votre aide.

I hope you can read English, since I can still read French but writing it is 
very slow for me.

I am unclear: do you want 3 exercises shown together on a single page, or 
separate pages which the user accesses one after the other but using the same 
controller?

-- 
Scott Ribe
[email protected]
http://www.elevated-dev.com/
https://www.linkedin.com/in/scottribe/
(303) 722-0567 voice





-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/A0CFA834-B08F-4D07-AB86-3A5923C4A8A5%40elevated-dev.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to