How we can show the action of different model

Actually i am doing with one login form.
i verify it with the database value.
def valid
@user =[:login])
@logins= Login.find_all
now i write in valid.rhtml

  "Recipetest/list"  %>

I have two tables logins and recipetests.
so if in the valid.rhtml page if condition get true means in if block
i want to show
how i can i do that.
plese help me

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs