Skip to content

Instantly share code, notes, and snippets.

@knowuh
Created May 21, 2010 18:58
Show Gist options
  • Save knowuh/409272 to your computer and use it in GitHub Desktop.
Save knowuh/409272 to your computer and use it in GitHub Desktop.
2)
ActionView::TemplateError in 'Embeddable::SoundGraphersController GET index runs without error'
Mock "User_1104" received unexpected message :has_role? with ("admin", "manager", "teacher", "researcher", "author", "member")
On line #83 of app/views/layouts/application.html.haml
80: %li#pop_out_link{:style => "display: none;"}= link_to "pop-out", '', :target=>'new'
81: %li.trail= link_to 'Home', home_path
82: %li.trail= link_to 'About', about_path
83: - if current_user.has_role?('admin', 'manager', 'teacher', 'researcher', 'author', 'member')
84: %li.trail=link_to(top_level_container_name.humanize.pluralize, investigations_path)
85:
86: %ul.menu_h_right
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment