Rails3: include field from one database into another model?

In the controller for that action you need to set venues before you can use it in the view.

In the controller for that action you need to set @venues before you can use it in the view. @venues = Venue.all.

Does it need to go in the Event controller, def index or in the specific route helper (AKA def new ... end). I can't seem to be able to call it either way. – Yannick Schall Oct 20 at 23:35 1 Inside def index would allow you to use it on the index.html.

Erb template. Def new would allow you to use it on the new.html. Erb template.

Depends on what you need. – ctcherry Oct 21 at 0:37.

Looks like this what I need railscasts.com/episodes/196-nested-model....

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions