On 27 October 2015 at 01:56, Gerardo Abregu <[email protected]> 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 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLvAW5u-yXx93_vM6hK9TcDmvYd%3DKJwYO8GtuL3-von1Wg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

