Continuing my previous question, I think I could work my way around it
if I could just figure out how to pass an object in an url, more or
less like this (this is a view):
<% my_preset_model = MyModel.new(:preset_value => ''this needs to
be
set to this'') %>
<%= link_to_remote icon_for_backend_list_create,
:url => {
:controller => :my_models,
:action => :create,
:preset_to_base_new_model_on =>
my_preset_model, # <<<< RIGHT THERE
:update =>
"#{content_element_id}_body"
},
:before =>
"Element.show(''#{content_element_id}_activity_indicator'')",
:complete =>
"Element.hide(''#{content_element_id}_activity_indicator'')"
%>
I can''t do this - I was hoping to see something like,
:preset_to_base_new_model_on => { :preset_value => ''this needs to
be
set to this'' }
among the sent parameters, but nothing goes there.
Anyone know how I could do that?
Thanks :)
Daniel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---