Skip to content

Instantly share code, notes, and snippets.

@goyox86
Created May 2, 2011 16:35
Show Gist options
  • Save goyox86/951887 to your computer and use it in GitHub Desktop.
Save goyox86/951887 to your computer and use it in GitHub Desktop.
ActionView::TemplateError (Illegal nesting: nesting within plain text is illegal.) on line #31 of app/views/mailer/send_exhisting_user_invitation.html.haml:
28:
29: case @atype
30: when "patient"
31: = render "patient_invite"
32: when "doctor"
33: = render "doctor_invite"
34: when "staff"
app/views/mailer/send_exhisting_user_invitation.html.haml:31
haml (3.0.25) lib/haml/precompiler.rb:356:in `push_plain'
haml (3.0.25) lib/haml/precompiler.rb:278:in `process_line'
haml (3.0.25) lib/haml/precompiler.rb:178:in `precompile'
haml (3.0.25) lib/haml/engine.rb:121:in `initialize'
haml (3.0.25) rails/./lib/haml/template/plugin.rb:34:in `new'
haml (3.0.25) rails/./lib/haml/template/plugin.rb:34:in `compile'
haml (3.0.25) rails/./lib/haml/template/plugin.rb:39:in `call'
haml (3.0.25) rails/./lib/haml/helpers/action_view_mods.rb:13:in `render'
app/models/membership.rb:14:in `send'
app/models/membership.rb:14:in `send_invitation_email'
app/models/organization.rb:93:in `create_member'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/aws-s3-0.6.2/lib/aws/s3/extensions.rb:166:in `returning'
app/models/organization.rb:90:in `create_member'
/Users/goyox86/.rvm/gems/ruby-1.8.7-p334@care/gems/after_commit-1.0.8/lib/after_commit/connection_adapters.rb:12:in `transaction'
app/models/organization.rb:83:in `create_member'
app/controllers/organizations_controller.rb:63:in `create_member'
compass (0.11.1) lib/compass/app_integration/rails/actionpack2/action_controller.rb:7:in `process'
warden (0.10.7) lib/warden/manager.rb:35:in `call'
warden (0.10.7) lib/warden/manager.rb:35:in `call'
warden (0.10.7) lib/warden/manager.rb:34:in `catch'
warden (0.10.7) lib/warden/manager.rb:34:in `call'
haml (3.0.25) rails/./lib/sass/plugin/rack.rb:41:in `call'
middleware/flash_session_cookie_middleware.rb:21:in `call'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment