That looks like it's a Rails issue. Does it work if shared_view.html.erb actually exists?
On Wed, Apr 30, 2008 at 1:41 PM, Andy <[EMAIL PROTECTED]> wrote: > > Ok, I finally managed to stop freaking out and spent a minute actually > looking at my code and I've found the bit that's causing the failure. > I have an action that is rendering a different template: > > So I've got a controller file named my_controller.rb containing: > ---------------------------------------- > class MyController < ApplicationController > def action1 > do_some_stuff > render :template => 'shared_view' > end > > ... other actions that also use shared_view ... > > end > ---------------------------------------- > > and a view file named shared_view.html.haml > > So when I go to /my_controller/action1 it dies saying it can't find > shared_view.html.erb. If I change 'render :template' to > 'render :action' it does find shared_view.html.haml. Is this a bug or > a feature, i.e., is the fact that this doesn't work a hint that I'm > doing things the wrong way? :) > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/haml?hl=en -~----------~----~----~----~------~----~------~--~---
