I am having a hard time understanding updating a partial resource.
This was talked about at railsconf here on page 29.
http://www.web2expo.com/presentations/r ... _scott.pdf . The problem i
am specifically referring to is having a user resource with attributes
such as name, email, password, created_at, etc. Following rest, when
creating a user, all these attributes are created. But the same goes
with updating a user. All of these attributes must be updated.
But what about the scenario when i want to update only a single
resources attribute and in this case the users email, as well as still
be able to validate this attribute with the model? Is it possible to
do this with the restful code supplied with scaffold_resource?
To do a partial update, the convention explained in the article,
unless I am not understanding, would be to update via a URL /user/1/
It also talks about scope. But how? I am lost on this. How would the
route be defined for this? Would this require a new method? What would
this new method look like? Thanks in advance to anyone who would find
this topic useful to contribute too.