When using an :update in a remote function it does work without
problems. Removing it and adding instead a .rjs file to modify a part of
the HTML doesn’t work.
Well, I continue fighting against this issue. As far as I can tell from
everything I’ve googled, you can’t use remote_function with a RJS due to
the JS implementation. A link_to_remote will do (I’ll try that this
night at home)
Anyway, I’d need to use it in a collection_select context, where the
onchange event must run a RJS template, so the link_to_remote doesn’t
seem to be the best idea.
Do you know if is there any alternative to run RJS templates to be used
with events ?
This will automatically submit to the given URL and pass the selects
value in parasm[:user][:id]
and it works with RJS from what i know an experienced.
In fact i wonder why remote_function doesn’t, as the API states it can
have the same options as link_to_remote, which sounds like “you can
leave out :udpate and use RJS”
… might have a look at it’s source to see what’s the reason.