Rails, Controller Inheritance w Routes

I'm using devise invitable: gem on github

I want to implement controller inheritance, so I added a controller:

class InvitationsController < Devise::InvitationsController
  include Devise::Controllers::InternalHelpers

  before_filter :authenticate_inviter!, :only => [:new, :create]
  before_filter :require_no_authentication, :only => [:edit, :update]
  helper_method :after_sign_in_path_for

  # GET /resource/invitation/new
  def new
    render_with_scope :new

And updated my routes to:

  devise_for :users, :controllers => {:invitations => "invitations"}

But I'm getting an error:

"Template is missing
Missing template invitations/new with {:formats=>[:html], :locale=>[:en, :en], :handlers=>[:rjs, :builder, :rhtml, :erb, :rxml]} in view paths "/Users/bhellman/Sites/cline/app/views", "/Library/Ruby/Gems/1.8/gems/devise_invitable-0.3.5/app/views", "/Library/Ruby/Gems/1.8/gems/devise-1.1.3/app/views""

Can you help me understand what I did wrong with the routes?


As I know you have already had the right route and what you missed is the views/invitations/new.html.erb file.

Need Your Help

Testing without affected certain tables

mysql cakephp testing

At the moment I'm stuck with the need to debug several functions in our system to determine if they're working or not.

Ajax Error, get request param appending in same link

jquery ajax html5

I don't know why ajax instead of sending request to specified url, it makes request to the same link.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.