in a partial. params[:obj] and params[:obj_method] are strings like
TrstSysPage, title. params[:obj_id] is number and is only working for
the rest I got
But you should know that this is potentially disastrous, say if params
has {:obj => “ImportantModel”, :obj_id => “1”, :obj_method =>
“destroy”}. (Repeat with all other values for :obj_id
Note also that you don’t check for any exceptions (such as
ActiveRecord::RecordNotFound or NoMethodError)
But you should know that this is potentially disastrous, say if params
has {:obj => “ImportantModel”, :obj_id => “1”, :obj_method =>
“destroy”}. (Repeat with all other values for :obj_id
Note also that you don’t check for any exceptions (such as
ActiveRecord::RecordNotFound or NoMethodError)
Thanks!
I use this just for edit some html data with mceEdit. All params comes
from regularly checked edit form, but I needed a new screen/window for
those text fields
Thanks again I’ll try tomorrow . Here is already tomorrow