Passing non-model members through remote form


#1

Hello,

I have the following remote form:

<% remote_form_for :sms_message, @the_message,
:loading => “”,
:complete => “”,
:html => { :method => :post},
:before => "if (!validate_submit_msg_form()) {return false;} ",
:url => {:controller => “sms”,
:action => ‘send_the_message’,
:recipients_session_id => @recipientSessionID} do |f| %>
<%= f.radio_button :now_or_later, “now”, :onclick =>
“enable_or_disable_date_select(false);”, :checked => true %>

<%= f.text_area :body, :size => “38x5”, :class => “textAreaStyle”,
:onkeyup => “calculate_msg_char_counter();”, :id =>
“the_message_textarea” %>

<% end %>

The text area value gets passed correctly but not the radio button.
Knowing that :body is part of :sms_message model and :now_or_later is
not?
how can I pass non members through remote form?

Thanks,

Tam


#2

I resolved the issue. It was something I was doing wrong with nesting.
The form beginning tag was at the beginning of

tag and the form end
tag was after end of the table . so for some reason the
resulting HTML had tag right before the of the same
the form started on! I moved the form beginning tag to before the tag so it included the other fields. Thanks, Tam