def update
    @state = State.find(params[:id])

    respond_to do |format|
      if @state.update_attributes(params[:state])