Rails rabl - returning ALL attributes, not just named ones
If you want to get rid of some columns, like "created_at" and "updated_at":
attributes *User.column_names - ["created_at", "updated_at"]
If you want to get rid of some columns, like "created_at" and "updated_at":
attributes *User.column_names - ["created_at", "updated_at"]