I'm using rails and learning Backbone.
Help me please. Is there any way to set right model on save? When I create, for example, new user with some params and trying save it into the database, - on server side I have not user as object, but user fields in params. And only way to save user - is to set properties manually:
user = User.new(:login => params[:login], :password => params[:password]).save!
Is there any way which will generate real user model object (like a form_for generates)? I think actions described below I will need to use when I will update user and so on.
Thanks!