You *need* to set self.this correctly for the form to render. Try
adding 'self.this = User.new' to your controller before the call to
render.
--Matt Jones
On Jul 11, 2009, at 4:16 PM, blueHandTalking wrote:
>
> I still can not trace down where the sign-up form is generated.
>
> /users/signup works great, I can apply my own style and location of
> form by using <signup-form />,
> however what I would like to do is use <link_to_remote> so I can use
> AJAX to load the signup
> form into my current document (which is front/index.dryml).
>
> 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 gives me nothing in <div id="archsignup">
>
> If I replace <signup-form /> with "Here I am!" in _signup.dryml,
> <div id="archsignup"> gives me:
>
> "Here I am!"
>
> If there is any way that I can use AJAX to load the <signup-form />
> or /users/signup into a location other than the default, I would
> really like to hear about it.
>
> Thank you.
>
> Eric
>
>
>
>
>
>
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Hobo
Users" 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/hobousers?hl=en
-~----------~----~----~----~------~----~------~--~---