I've been having a problem. I have an application layout and a users controller. All the methods, but forgot_password, must use the application layout. So, I added below the class declaration the following line:
class UsersController < ApplicationController layout 'login', :only => [:forgot_password] The problem is: if I write down that layout line, all methods but forgot_password will have no layout. I cannot use render :layout => 'forgot_password' into the forgot_password method because it already has a render call. I tried the following code it also didn't work. class UsersController < ApplicationController layout 'login', :only => [:forgot_password] layout 'application', :except => [:forgot_password] Does anybody have any suggestion to apply the login layout to the forgot_password method and the application to the other ones? Thanks in advance. -- *Rodrigo Felix* Web Developer SCJP --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---