Rails handles all the routing and template-finding; I'd recommend asking on a Rails list.
On Fri, Aug 14, 2009 at 10:25 AM, Doug Hall <[email protected]> wrote: > > I have this private helper method in my Application controller: > > def validate_user > if !User.exists? > render :user, :action => 'new' > elsif !current_user > redirect_to new_user_session_path > end > end > > If no user exists, it gives me an erb template missing error. Why is > it looking for an erb template? How do I fix this? > > Thanks! > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
