-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Views overlaying over one another #2
Comments
@ornerymoose and @Katagena are you experiencing similar issues? |
Hey @mt-davis - thanks for resolving issue 1 and apologies for the delay it was a very busy week. I used devise as well and I have a created a gist of the login page for you - https://gist.github.com/iogbole/a2f1ddf330cb5194967a1996369619e8. * The trick is to create a second application layout and use that for 'external facing' views, i.e views that don't require login. Ref - http://stackoverflow.com/questions/15228228/multiple-layouts-in-ror For all other controllers and views, you'd need to copy all the contents between and and modify them manually. I will try to add some scaffold automation to the template when time permits. Hope the helps?
|
Hi @iogbole .. |
@TheAshwanik did you define the layout in the controller or method? For example:
here, about_us and team will render using the external_pages layout, not the default application layout. See details here - http://guides.rubyonrails.org/layouts_and_rendering.html |
ohk.. This is good to know.But I did not try that. |
When I installed devise, it's over laying the login screen for devise over the main page view 'plainpage#index'. It also happens when a create a controller and view for a model.
The text was updated successfully, but these errors were encountered: