On Jul 19, 2009, at 6:43 PM, blueHandTalking wrote:
>
> This may not even be a hobo issue, but my first form effort is posting
> to db,
>
> but with null field content.
>
> I am assuming my model is O.K., since it is posting, except perhaps
> the following line:
>
> belongs_to :user, :class_name => "User"
>
> I have noticed in other places instead of :user, :owner was used. Not
> sure if that is preference or
> necessity---is :owner a built in symbol?
>
> This is the <form> that is posting but with null values. I used both
> the Hobo rapid method
> and normal way for textarea, both seemed to come up O.K.
>
> Here it is preceded with the set-up call:
>
> <% o=ArchitectAgentComment.new(params[:architect_agent_comment]) %>
> <padconnectform with="&o" />
>
>
> <def tag="padconnectform" for="ArchitectAgentComment">
>
> <div id="padcomment">
>
> <form merge param="default"
> update="architect_agent_comments"success="Event.onReady(function() {$
> ('padcomment').style.visibility='hidden';$
> ('padconnect_confirm').style.visibility='visible';});">
>
> <error-messages param/>
> <input id="architect_agent_comments[user_id]"
> name="architect_agent_comments[user_id]" value="current_user.id"
> type="hidden" />
>
> <textarea id="architect_agent_comments[comment]"
> name="architect_agent_comments[comment]" param="ideas" /><br /><br />
Are these posting to the right place? The generated form elements will
typically have a singular name, not plural...
--Matt Jones
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---