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 />
<input:contact_You for='boolean' param="pleasecontact" /><br /><br />
<textarea:contact_About param="about" />
<div param="actions">
<submit label="Save" param/>
<or-cancel param="cancel"/>
</div>
</form>
</div>
</def>
I don't know if it makes a difference, but I have MySQL setup using
utf8-swedish-ci
This is probably some real basic thing that I am missing. I have a
pretty basic knowledge of rails
and hobo.
any help would be really appreciated.
Thanks,
jet
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
-~----------~----~----~----~------~----~------~--~---