In the controller, I'd like to do:
@options = { :obj_id => @obj.id, :obj2_id => @obj2.id }
And in the view:
<%=
remote_form_for(:model_object, :url => { :action => 'some_action' }) do |f|
@options.each { |k, v|
f.hidden_field(k, { :value => v })
}
}
%>
The code above currently will just output the string values of each key/value and not a hidden input field.
My experience tells me I'm missing something simple... What am I missing?
Thanks for the help.