Newbie: I just want to exclude two attributes when I call update_attributes

What do you mean it bombs? Show us what is in params[:foo] and the
error you get.

Colin

Colin –

I ended up using

.slice(:field1, :field2, :field4)

in my update. Works fine.

– Don

And in the Create method as well.

This FEELS wrong, but it works.

You still haven’t shown us what’s in params[:foo] and the exact error you get.

You still haven't shown us what's in params[:foo] and the exact error you
get.

--
Dheeraj Kumar

And in the Create method as well.

This FEELS wrong, but it works.

You may want to look at strong_parameters

https://github.com/rails/strong_parameters