title: 2 render templates (from devise) on one page (rails 3)
body: <p>I've installed devise for my rails app, i can go to the sign in page or the sign up page. But I want them both on a welcome page...</p>
  
  <p>So I've made a welcome_page_controller.rb with the following function:</p>
  
  <pre><code>    class WelcomePageController &lt; ApplicationController
    def index
      render :template =&gt; '/devise/sessions/new'
      render :template =&gt; '/devise/registration/new'
  
    end
  end
  </code></pre>
  
  <p>But when i go to the welcome page i get this error:</p>
  
  <pre><code>NameError in Welcome_page#index
  
  Showing /Users/tboeree/Dropbox/rails_projects/rebasev4/app/views/devise/sessions/new.html.erb where line #5 raised:
  
  undefined local variable or method `resource' for #&lt;#&lt;Class:0x104931c&gt;:0x102749c&gt;
  Extracted source (around line #5):
  
  2: &lt;% @header_title = "Login" %&gt;
  3: 
  4: 
  5: &lt;%= form_for(resource, :as =&gt; resource_name, :url =&gt; session_path(resource_name)) do |f| %&gt;
  6:   &lt;p&gt;&lt;%= f.label :email %&gt;&lt;br /&gt;
  7:   &lt;%= f.email_field :email %&gt;&lt;/p&gt;
  8: 
  </code></pre>
  
  <p>Does anybody knows a solution for this problem? Thanks in advance!</p>
  
  <p>Does it have to do with the fact that it is missing the resource function? in the welcome_page controller? It's probably somewhere in the devise controller...?</p>
  
  <p>Regards,
  Thijs</p>