#459 ✓wontfix
jet

<signup-form /> does not generate in an AJAX call to location other than default

Reported by jet | July 11th, 2009 @ 11:47 PM

At this time I have:

<%= link_to_remote('ARCHITECT SIGNUP',
:update => 'archsignup', :url => {:controller => 'front', :action => 'loadpadsignup'}, :success => "$('archsignup').style.visibility ='visible'; $('archsignupbkgrnd').style.visibility = 'visible';") %>

in application.dryml

In front_controller:

  def loadpadsignup
     render :partial => '/users/signup', :layout => false
  end

And in users/_signup.dryml:

 <signup-form />

This is from front/index.dryml

This gives me nothing in

If I replace with "Here I am!" in _signup.dryml,

gives me:
   "Here I am!"

I have also tried this in the users_controller.rb,

and by adding 'self.this = User.new'

to the front_controller.rb, or in users_controller.rb

But that generated the following error:

/***********************************/

NoMethodError

in FrontController#loadpadsignup


undefined method `this=' for #<FrontController:0xab5ae3c></
pre>
Perhaps I am not calling correctly, or need to be setting the context,
but it seems this should work----somehow.
jet

Comments and changes to this ticket

  • Tom Locke

    Tom Locke October 24th, 2009 @ 06:14 PM

    • State changed from “new” to “wontfix”

    Can't really follow but I don't think this is supported

  • Matt Jones

    Matt Jones October 24th, 2009 @ 06:26 PM

    @jet: the Markdown formatting ate your post a bit, but I've seen a similar thing happen before. The issue most likely is that signup-form is a polymorphic tag, and the partial doesn't provide any of the context support it's expecting. You may want to try

    <signup-form for-type="User" />
    

    and see if that works correctly.

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

Pages