#545 ✓invalid
Iain

New invite-only front page has missing tag

Reported by Iain | November 18th, 2009 @ 11:36 PM

I've just been testing 0.9.0 and I've found a bug for invite-only sites. I've created a simple invite-only app, but on the front page I get the following error:

undefined method `signup_form' for #<ActionView::Base:0x102eebb48>

Extracted source (around line [#17](/projects/8324/tickets/17 "Ticket #17")):

14:         <% if User.count == 0 -%>
15:           <h3 style="margin-top: 20px;">There are no user accounts - please provide the details of the site administrator</h3>
16:           <do with="&User.new"><% this.exempt_from_edit_checks = true %>
17:             <signup-form/>
18:           </do>
19:         <% end -%>
20:

I haven't changed anything about the site that I can remember, it's straight from the generators. (It seems like the signup-form tag isn't being generated?

Comments and changes to this ticket

  • Bryan Larsen

    Bryan Larsen November 19th, 2009 @ 09:23 PM

    The current generator index-only generates:

        <% if User.count == 0 -%>
          <h3 style="margin-top: 20px;">There are no user accounts - please provide the details of the site administrator</h3>
    
          <form with="&this || User.new" without-cancel>
            <field-list: fields="name, email_address, password, password_confirmation"/>
            <submit: label="Register Administrator"/>
          </form>
        <% end -%>
    

    It's the standard generator that generates the code you cut and pasted.

    signup-form should exist in your auto/rapid/forms.dryml. The form is a lifecycle form that is autogenerated, so if you've removed or modified your signup transition in your user model, you may encounter this problem

  • Bryan Larsen

    Bryan Larsen November 25th, 2009 @ 01:01 PM

    • State changed from “new” to “invalid”

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket

Tags

Pages