Created
June 7, 2012 20:48
-
-
Save royzinn/2891448 to your computer and use it in GitHub Desktop.
rendering haml problem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def new | |
... | |
... | |
if params[:embed] | |
render_embedded :template => 'reservations/embedded/new' | |
elsif params[:popup] | |
render :layout => 'standalone', :template => 'reservations/new_popup' # this cause an error: Missing template reservations/new_popup.erb in view path app/views:vendor/plugins/devise/app/views | |
else | |
render :layout => 'standalone' | |
end | |
end | |
# error trace | |
Processing ReservationsController#new (for 93.172.57.209 at 2012-06-07 13:22:38) [GET] | |
Parameters: {"popup"=>"true", "action"=>"new", "protocol"=>"https", "url"=>"some_url", "controller"=>"reservations", "offer_id"=>"603"} | |
Rendering template within layouts/standalone | |
Rendering reservations/new_popup | |
ActionView::MissingTemplate (Missing template reservations/new_popup.erb in view path app/views:vendor/plugins/devise/app/views): | |
.gems/gems/actionpack-2.3.11/lib/action_view/paths.rb:74:in `find_template' | |
.gems/gems/actionpack-2.3.11/lib/action_view/base.rb:264:in `render_without_haml' | |
.gems/gems/haml-3.1.4/rails/./lib/haml/helpers/action_view_mods.rb:13:in `render' | |
.gems/gems/actionpack-2.3.11/lib/action_view/base.rb:348:in `_render_with_layout' | |
# views tree (compressed) | |
├── layouts | |
│ ├── admin | |
│ │ ├── _footer.haml | |
│ │ └── _header.haml | |
│ ├── admin.haml | |
│ ├── application | |
│ │ ├── _footer.haml | |
│ │ └── _header.haml | |
│ ├── application.haml | |
│ ├── common | |
│ │ ├── _account_info.haml | |
│ │ ├── _api_key.haml | |
│ │ ├── _errors.haml | |
│ │ ├── _flashes.haml | |
│ │ ├── _sharing.haml | |
│ │ └── _support_box.haml | |
├── reservations | |
│ ├── common | |
│ │ └── _merchant_info.haml | |
│ ├── embedded | |
│ │ ├── 3d_secure_redirect.haml | |
│ │ ├── new.haml | |
│ │ └── show.haml | |
│ ├── new.haml | |
│ ├── new_popup.haml | |
│ └── show.haml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment