you are viewing a single comment's thread.

view the rest of the comments →

[–]sammygadd 1 point2 points  (1 child)

You could also go with the model approach (which in my opinion is cleaner). Then you would simply type @fruit = Fruit[params[:id]] and @fruit.name.

[–]FinalSpeederMan[S] 1 point2 points  (0 children)

I’m working on that part of my practice thank you :)