I have a few in place edit fields in a table. but when i enter a null
value it now, promts me with the alert. ~BUT then enters the returned
rjs into the editable field: ~??
Most times whenever you see javascript being displayed from your rjs
template it’s
more often than not because you’re also using the :update option on
the AJAX call.
I haven’t looked at what the in place editor creates but I’d be
willing to bet that it’s using
:update by default so if you want to use rjs you’ll have to create
your own action to do
the update.
Most times whenever you see javascript being displayed from your rjs
template it’s
more often than not because you’re also using the :update option on
the AJAX call.
I haven’t looked at what the in place editor creates but I’d be
willing to bet that it’s using
:update by default so if you want to use rjs you’ll have to create
your own action to do
the update.
The default method called from an in_place_edit field is
set_track_
So in my case its: set_track_title. I have added a few puts in there to
check that it get the params[:id] value and it seems to be fine.
One thing to note, while the logs and above puts suggest that i am
sending and receiving the params[:id]. When i view the action in firebug
the posted value is ‘value=’???
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.