Methods inheriting from applicationcontroller

i have a method called def signin defined in the
applicationcontroller.

All controllers inherit this method.This method needs a corresponding
signin.rhtml page in the respective controller folder. So if i call
signin from “car” controller, it expects a signin.rhtml in the car view
folder.

How can I avoid copying and pasting the same signin.rhtml page into
each controller’s view folder?

Sounds like you need render :template.

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