blueHandTalking wrote:
>> <signup-form with="&User.new">
>>        <field-list fields="name, email_address, password,
>> password_confirmation" />
>> </signup-form>
>>
>> Note the ":" after field-list. That means that we're specifying it as a
>> parameter to the tag.
> 
> Thanks Ritchie.
> 
> I did try with the (missing) :
> but that did not completely work either. I get the following error:
> 
> Routing Error
> 
> user_activate_url failed to generate from
> {:controller=>"users", :action=>"activate", :id=>nil, 
> :key=>"29225184fa4f1f0ef760a7f2a5a5f9d5f809c721"},
> expected: {:controller=>"users", :action=>"activate"}, diff:
> {:id=>nil, :key=>"29225184fa4f1f0ef760a7f2a5a5f9d5f809c721"}

It's saying that Rails cannot create a route to the activate transition 
without an id.  You probably have a reference to user_activate_url in 
your mailer.  This probably means that your user had validation errors. 
   I recently updated the creator in agility with this code:

      create :signup, :available_to => "Guest",
             :params => [:name, :email_address, :password, 
:password_confirmation],
            :become => :inactive, :new_key => true do
       UserMailer.deliver_activation(self, lifecycle.key) if user.blank?
     end

> 
> Actually tried this with:
> 
> <% newuser=User.new %>
>       <signup-form with="&newuser">
> 
> just to make sure it was not a problem with a nil object.
> 
> What I am really trying to do is get the signup form into a partial so
> I can load the signup form into a
> <div> on my site, which is revealed after a javascript action is run
> locally to hide my menu. I do not know if
> I can get there from where I am starting here. I was hoping to be able
> to create a view  'signup.html.erb' in
> views/users but that did not work either. I am also new to rails, but
> I thought that the controller would automatically associate an action
> to a view of the same name.
> 
> 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