On 27 October 2015 at 01:56, Gerardo Abregu <
li...@ruby-forum.com> wrote:
> Can i have two versions of show.html.erb for the same model.Is it
> possible.
First note that views do not relate directly to models, they relate to
controllers. A controller does not necessarily map directly to a
model. So more correctly you should have asked whether you can have
two show views for the same controller.
The strict answer is no, but in order to suggest the best alternative
let us know
1. Under what circumstances do you want to show the different view?
2. How different are the views?
By the way, I notice that the last time you asked a question here
several people made suggestions but you did not reply. It is not good
manners to ask for help and then not offer thanks when it is provided.
Colin