blueHandTalking wrote:
> I have tried a couple of variations of using the tags <signup-form>
> and <activate-form> generated in taglibs/auto/rapid, but nothing seems
> to work. From my understanding of a polymorphic tag, it needs an
> implicit context.
> 
> In UsersController I do have
> 
> def activate
>     this = User.create(params[:user])

You've run into a quirk of Ruby.  It cannot tell whether this is a local 
or a class member, and it guessed wrong.  Use:

     self.this = User.create(params[:user])

> 
> which I thought would give the correct context.
> 
> I do not have anything similar  for
> 
> def do_signup
> 
> but I was not sure if it was necessary, since it is the
> UsersController that is handling the request.
> Do I need to establish a 'User' context for 'this' in the controller?
> 
> So if there is an example somewhere of how I can use these tags to get
> the basic user model setup, it would get me propelled in the right
> direction.
> 
> I did search through all the hobo files on my installation, but they
> are not defined anywhere but in the taglibs.
> 
> Currently I am using
> 
> <% form_remote_tag  :url => '/users/signup',  :success => "$
> ('archsignup').style.visibility = 'hidden'; $
> ('confirmation').style.visibility = 'visible';", :method => :post do
> %>
> 
> which is posting to the db, sending out an email. But I know I am not
> getting lifecycle set up properly, and permissions correctly
> configured, login state.
> 
> jet
> > 
> 


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to