haml rjs r_c

2 views
Skip to first unread message

David Beckwith

unread,
Mar 22, 2009, 1:26:38 PM3/22/09
to resource_controller
Has anybody seen this one?

ActionView::MissingTemplate (Missing template show.rjs in view path
app/views):

#invitations_controller.rb
class InvitationsController < ResourceController::Base
create.wants.js { render :template => "show.rjs" }
end

#show.rjs
page.insert_html :bottom, :invited_list, "stuff"

Rendering template within layouts/application
Rendering show.rjs

ActionView::MissingTemplate (Missing template show.rjs in view path
app/views):
haml (2.0.9) lib/haml/helpers/action_view_mods.rb:14:in `render'
haml (2.0.9) lib/haml/helpers/action_view_mods.rb:14:in `render'
app/controllers/invitations_controller.rb:2
haml (2.0.9) lib/sass/plugin/rails.rb:19:in `process'

David Beckwith

unread,
Mar 22, 2009, 1:31:32 PM3/22/09
to resource_controller
This solved it:

create.wants.js { render :template => "/invitations/show.rjs" }

Sorry for the false alarm.

D :)
Reply all
Reply to author
Forward
0 new messages