be able to do this with Hashes We were apparently missing this feature But it wasn't implemented because a good feature needs Proper use case Good API Good implementation
far like/not_like are very rare cases and they just open the door to the monstrocities of gte they're also weird because you need % so it's this bastard version of half sql in the statement, half sql in the parameter Any counter arguments?
User.find(id) end def create(user) @user = User.new(user) if @user.save ... end end def update(id, user) @user = User.find(id) if @user.update_attributes(user) ... end end end end
the action_args approach is that it doesn't deal with the preload pattern very gracefully You're passing in a parameter that just says "user", but it's not a user object, like the one assigned to @user, it's a set of parameters for the user. params[:user] is much more clear about what this variable actually contains